
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
- Organization-level project listing
Hi, does Appwrite support full organization-level project listing via the SDK?
- Document attribute stuck on processing f...
- Attribute creation stuck at processing f...
Hey Appwrite community! š I'm running into a persistent issue with my self-hosted Appwrite installation (v1.6.1) where programmatically creating attributes fo...
