
I am developing an Appwrite function locally. Up until now, the process has been as smooth as butter: I edit my files, save them, and this triggers a rebuild of the local function deployment. All as expected.
However, as of today, I randomly receive the error below. When it happens, the local function server stops, and I have to Ctrl-C the process and rerun appwrite run functions --port 3001 --function-id="api"
The error does not happen all the time and sometimes I get a whole 5 minutes or so of editing and switching contexts between Insomnia and VS Code before it happens.
What's more curious is that I don't even have to edit and save anything. Sometimes it's enough to click out into Insomnia or Postman, trigger the function with a few REST calls and then when I click back into VS Code, some or other "change" is detected and everything rebuilds, throwing the error.
The only difference in my environment is that I recently activated CoPilot in VS Code. Is anyone else developing Appwrite functions locally in conjunction with VS Code and Copilot? Anyone else have this problem?
ℹ Info: Cancelling build ...
ℹ Info: Rebuilding the function due to file changes ...
Error: EACCES: permission denied, copyfile '/Development/limetrack/cli/functions/limetrack_api/.git/modules/packages/lt_collections_appwrite/objects/pack/pack-0550a30ac4f7fbdeef0c1a57750334087627035c.idx' -> '/Development/limetrack/cli/functions/limetrack_api/.appwrite/tmp-build/.git/modules/packages/lt_collections_appwrite/objects/pack/pack-0550a30ac4f7fbdeef0c1a57750334087627035c.idx'
at Object.copyFileSync (node:fs:3087:11)
at dockerBuild (/opt/homebrew/Cellar/appwrite/6.2.3/libexec/lib/node_modules/appwrite-cli/lib/emulation/docker.js:76:12)
at EventEmitter.<anonymous> (/opt/homebrew/Cellar/appwrite/6.2.3/libexec/lib/node_modules/appwrite-cli/lib/commands/run.js:219:23) {
errno: -13,
code: 'EACCES',
syscall: 'copyfile',
path: '/Development/limetrack/cli/functions/limetrack_api/.git/modules/packages/lt_collections_appwrite/objects/pack/pack-0550a30ac4f7fbdeef0c1a57750334087627035c.idx',
dest: '/Development/limetrack/cli/functions/limetrack_api/.appwrite/tmp-build/.git/modules/packages/lt_collections_appwrite/objects/pack/pack-0550a30ac4f7fbdeef0c1a57750334087627035c.idx'
}
Recommended threads
- Properly contained appwrite main app can...
Hello! We tried to reinstall our main self-hosted appwrite with a new method but the main app 2 mins after launch throw this error: ```2025/06/22 16:16:14 s...
- Broken message
https://github.com/appwrite/appwrite/issues/10081 I just realized that I can just build appwrite myself, was this bug fixed in latest dev release?
- 404 errors after 7 Days
Local hosted Appwrite via docker. Last version and current version. After exactly 7 days Appwrite stops working. I get 404 route not found, cannot access anyth...
