D
Dokploy7mo ago
vadzim

directus template: file upload error

I tried to use directus template with default configuration. When I tried to upload file getting the error:
No description
No description
5 Replies
Sang Dang
Sang Dang6mo ago
I'm trying to use npx directus-template-cli@latest apply and face the similar issue
Loading 76 collections and 700 fields... done
Loading 176 relations... done
Loading 4 roles... done
› Warning: Unknown error: "File not found:
› /home/node/.npm/_npx/623fa71c079d6ec8/node_modules/directus-template-cli/d
› ist/lib/downloads/official/agencyos/src/policies.json"
Error: ENOENT: no such file or directory, open
'/home/node/.npm/_npx/623fa71c079d6ec8/node_modules/directus-template-cli/
dist/lib/downloads/official/agencyos/src/policies.json'
Code: ENOENT
Loading 76 collections and 700 fields... done
Loading 176 relations... done
Loading 4 roles... done
› Warning: Unknown error: "File not found:
› /home/node/.npm/_npx/623fa71c079d6ec8/node_modules/directus-template-cli/d
› ist/lib/downloads/official/agencyos/src/policies.json"
Error: ENOENT: no such file or directory, open
'/home/node/.npm/_npx/623fa71c079d6ec8/node_modules/directus-template-cli/
dist/lib/downloads/official/agencyos/src/policies.json'
Code: ENOENT
Sang Dang
Sang Dang6mo ago
GitHub
GitHub - directus-labs/agency-os: The open source operating system ...
The open source operating system for digital agencies. Built with Directus and Nuxt. - directus-labs/agency-os
Sang Dang
Sang Dang6mo ago
I think I can install this successfully on Dokploy 12, today I upgraded to v13 and it failed.
Sang Dang
Sang Dang6mo ago
I found out the cause, the CLI still do not upgrade AgencyOS with Directus v11 https://github.com/directus-labs/directus-template-cli/pull/63
GitHub
Add V11 Support by bryantgillespie · Pull Request #63 · directus-la...
Updated to work with V11 access policies Better error handling and write logs to files for easier sharing Programmatic mode for apply and extract commands Partial template application through flags...
Sang Dang
Sang Dang6mo ago
For now, while waiting for the fix, using the old version work well

Did you find this page helpful?