Skip to content

Mandatory update failed. FCM will retry on the next launch. #109

Description

@karneaud

Tried to run

docker run -it -a STDOUT --rm -p 19280:19280 ghcr.io/vava-nessa/free-coding-models:0.5.14 --daemon #both :latest and current version

Got the output

Config generated from environment variables
FCM_HOST: 0.0.0.0
FCM_PORT: 19280
Starting FCM router daemon...
Daemon started with PID 37
Waiting for daemon to be ready...
[daemon] ⬆ New version v0.5.12 detected for router daemon; updating automatically...
[daemon]
[daemon] ⬆ Updating free-coding-models to v0.5.12...
[daemon]
[daemon] npm error code EACCES
[daemon] npm error syscall mkdir
[daemon] npm error path /usr/local/lib/node_modules/free-coding-models
[daemon] npm error errno -13
[daemon] npm error Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/free-coding-models'
[daemon] npm error at async mkdir (node:internal/fs/promises:856:10)
[daemon] npm error at async /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:624:20
[daemon] npm error at async Promise.allSettled (index 0)
[daemon] npm error at async [reifyPackages] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)
[daemon] npm error at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5)
[daemon] npm error at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:150:5)
[daemon] npm error at async Npm.exec (/usr/local/lib/node_modules/npm/lib/npm.js:207:9)
[daemon] npm error at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:74:5) {
[daemon] npm error errno: -13,
[daemon] npm error code: 'EACCES',
[daemon] npm error syscall: 'mkdir',
[daemon] npm error path: '/usr/local/lib/node_modules/free-coding-models'
[daemon] npm error }
[daemon] npm error
[daemon] npm error The operation was rejected by your operating system.
[daemon] npm error It is likely you do not have the permissions to access this file as the current user
[daemon] npm error
[daemon] npm error If you believe this might be a permissions issue, please double-check the
[daemon] npm error permissions of the file and its containing directories, or try running
[daemon] npm error the command again as root/Administrator.
[daemon] npm notice
[daemon] npm notice New major version of npm available! 10.8.2 -> 11.16.0
[daemon] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0
[daemon] npm notice To update run: npm install -g npm@11.16.0
[daemon] npm notice
[daemon] npm error A complete log of this run can be found in: /home/fcm/.npm/_logs/2026-06-02T23_03_42_357Z-debug-0.log
[daemon]
[daemon] ✖ Update failed. Try manually: npm i -g free-coding-models@0.5.12 --prefer-online
[daemon]
[daemon] ✖ Mandatory update failed. FCM will retry on the next launch.
[daemon] Attempt 1/2. Manual update: npm i -g free-coding-models@0.5.12 --prefer-online
[daemon]
WARNING: Daemon did not become ready after 30s, continuing anyway...
FCM container is running.

Perhaps optional update instead of mandatory? Not sure why the exit code though...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions