-
[Support] medzin - Hermes-Agent
Ok got it working now - it seems that photon is not 100% implemented right now in Hermes Agent. To make it working for now I added the following parameters to the template: Extra Parameters: --entrypoint /bin/sh Post Arguments: -lc 'rm -rf /opt/hermes/plugins/platforms/photon/sidecar/node_modules && chown -R hermes:hermes /opt/hermes/plugins/platforms/photon/sidecar && su -s /bin/sh hermes -c "cd /opt/hermes/plugins/platforms/photon/sidecar && npm install --unsafe-perm=true" && exec /init /opt/hermes/docker/main-wrapper.sh gateway run' This way the problematic directory in the immutable /opt/hermes/ gets it's permissions straightened for every reboot and then also removes and reinstalls the photon sidecar every boot. The only problem now is that the connection to the photon servers is a bit finicky and has lots of reconnects, which as I belief right now results at some point in a sort of ban from the photon server as it will not forward my messages to hermes agent after a couple of reconnects.
-
[Support] medzin - Hermes-Agent
How can I run the container as root? As I see it, it always falls back to the hermes user with 10000:10000
-
[Support] medzin - Hermes-Agent
I just tried to configure the gateway with Photon (iMessage) - however I get the following error message: [5/5] Installing Node sidecar deps (spectrum-ts)... $ cd /opt/hermes/plugins/platforms/photon/sidecar && /usr/local/bin/npm ci npm error code EACCES npm error syscall mkdir npm error path /opt/hermes/plugins/platforms/photon/sidecar/node_modules npm error errno -13 npm error Error: EACCES: permission denied, mkdir '/opt/hermes/plugins/platforms/photon/sidecar/node_modules' npm error at async mkdir (node:internal/fs/promises:858:10) npm error at async /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:638:20 npm error at async Promise.allSettled (index 0) npm error at async [reifyPackages] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:334:11) npm error at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:149:5) npm error at async CI.exec (/usr/local/lib/node_modules/npm/lib/commands/ci.js:100:5) npm error at async Npm.exec (/usr/local/lib/node_modules/npm/lib/npm.js:207:9) npm error at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:74:5) { npm error errno: -13, npm error code: 'EACCES', npm error syscall: 'mkdir', npm error path: '/opt/hermes/plugins/platforms/photon/sidecar/node_modules' npm error } npm error npm error The operation was rejected by your operating system. npm error It is likely you do not have the permissions to access this file as the current user npm error npm error If you believe this might be a permissions issue, please double-check the npm error permissions of the file and its containing directories, or try running npm error the command again as root/Administrator. npm error A complete log of this run can be found in: /opt/data/.npm/_logs/2026-06-24T20_24_42_432Z-debug-0.log npm ci failed — falling back to: /usr/local/bin/npm install npm error code EACCES npm error syscall mkdir npm error path /opt/hermes/plugins/platforms/photon/sidecar/node_modules npm error errno -13 npm error Error: EACCES: permission denied, mkdir '/opt/hermes/plugins/platforms/photon/sidecar/node_modules' npm error at async mkdir (node:internal/fs/promises:858:10) npm error at async /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:638:20 npm error at async Promise.allSettled (index 0) npm error at async [reifyPackages] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:334:11) npm error at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:149:5) npm error at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:150:5) npm error at async Npm.exec (/usr/local/lib/node_modules/npm/lib/npm.js:207:9) npm error at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:74:5) { npm error errno: -13, npm error code: 'EACCES', npm error syscall: 'mkdir', npm error path: '/opt/hermes/plugins/platforms/photon/sidecar/node_modules' npm error } npm error npm error The operation was rejected by your operating system. npm error It is likely you do not have the permissions to access this file as the current user npm error npm error If you believe this might be a permissions issue, please double-check the npm error permissions of the file and its containing directories, or try running npm error the command again as root/Administrator. npm error A complete log of this run can be found in: /opt/data/.npm/_logs/2026-06-24T20_24_42_792Z-debug-0.log npm install failed ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✓ Messaging platforms configured! Restart the gateway to pick up changes? [Y/n]: It seems that it tries to write in the image in /opt/hermes/... - is there a fix or a workaround to that?
COLUMBUS
Members
-
Joined
-
Last visited