Closed ddecamilla closed 1 year ago
I confirm same behaviour on last docker image
ghcr.io/immich-app/immich-server@sha256:9ffecf7b8e1d65de4a82e1c47a5d1297a353703b4f511dc4b08fbb2a822da576
"Created": "2023-08-15T13:23:44.578472294Z"
I've been investigating this and found what I believe to be the issue.
This appears to be broken as part of the load env files change.
The packages.json bin definition needs a pointer to a specific script, and cannot take a command line as per the new package.json.
Workaround: Use "./start.sh admin-cli" directly instead of immich-admin. This works if you change the "exec node dist/main $1" command to "exec node dist/main $@".
Potential solutions:
Thanks, Mark
I've been investigating this and found what I believe to be the issue.
This appears to be broken as part of the load env files change.
The packages.json bin definition needs a pointer to a specific script, and cannot take a command line as per the new package.json.
Workaround:
Use "./start.sh admin-cli" directly instead of immich-admin. This works if you change the "exec node dist/main $1" command to "exec node dist/main $@".
Potential solutions:
Change the "admin-cli" tag to "immich-admin". You can then use $0 as the first argument (some bash tricks, happy to help), so that the symbolic link name (immich-admin) gets passed as the first argument. This way it is a generic script that can be used for multiple bins.
Change start.sh to be a specific script for immich-admin and hard-code it. This may be cleaner.
Thanks,
Mark
Thanks, i was able to get things working with this temp solution.
For others, I ran the following...
docker exec immich_server sed -i 's/$1/$@/g' /usr/src/app/start.sh
This replaced the $1 with $@ as Mark suggested. After that, I could run any immich-admin(admin-cli) command. Example below...
docker exec immich_server /usr/src/app/start.sh admin-cli list-users
@danieldietzler you want to work on this?
Yeah, thanks!
The bug
immich-admin commands do not appear to be working, except help cmd
The OS that Immich Server is running on
Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-78-generic x86_64)
Version of Immich Server
v1.73.0
Version of Immich Mobile App
v1.73.0 build.113
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response