Closed ahmadhadidi closed 19 hours ago
Thanks for trying out the script.
with the user "immich" I ran
sudo ./install.sh
inside the directoryimmich-in-lxc
The install script should be run as immich
user, i.e. ./install.sh
should do. 😄
I guess it is time for me to note what user to use in every part of the guide. 😂
Hey @loeeeee, I tried to run the script without sudo, it gave me this result:
+ SCRIPT_DIR=/home/immich/immich-in-lxc
+ create_install_env_file
+ '[' '!' -f /home/immich/immich-in-lxc/.env ']'
+ load_environment_variables
+ cd /home/immich/immich-in-lxc
+ set -a
+ . ./.env
++ REPO_TAG=v1.115.0
++ INSTALL_DIR=/home/immich
++ UPLOAD_DIR=/home/immich/upload
++ isCUDA=false
++ PROXY_NPM=
++ PROXY_POETRY=
+ set +a
+ set +x
v1.115.0
/home/immich
/home/immich/upload
false
+ INSTALL_DIR_src=/home/immich/source
+ INSTALL_DIR_app=/home/immich/app
+ INSTALL_DIR_ml=/home/immich/app/machine-learning
+ INSTALL_DIR_geo=/home/immich/geodata
+ REPO_URL=https://github.com/immich-app/immich
+ clean_previous_build
+ rm -rf /home/immich/app
rm: cannot remove '/home/immich/app/machine-learning': Permission denied
sadly it did not work.
I guess it is time for me to note what user to use in every part of the guide. 😂
You have one pull request from me doing exactly that 😃
Hey @loeeeee, I tried to run the script without sudo, it gave me this result:
+ SCRIPT_DIR=/home/immich/immich-in-lxc + create_install_env_file + '[' '!' -f /home/immich/immich-in-lxc/.env ']' + load_environment_variables + cd /home/immich/immich-in-lxc + set -a + . ./.env ++ REPO_TAG=v1.115.0 ++ INSTALL_DIR=/home/immich ++ UPLOAD_DIR=/home/immich/upload ++ isCUDA=false ++ PROXY_NPM= ++ PROXY_POETRY= + set +a + set +x v1.115.0 /home/immich /home/immich/upload false + INSTALL_DIR_src=/home/immich/source + INSTALL_DIR_app=/home/immich/app + INSTALL_DIR_ml=/home/immich/app/machine-learning + INSTALL_DIR_geo=/home/immich/geodata + REPO_URL=https://github.com/immich-app/immich + clean_previous_build + rm -rf /home/immich/app rm: cannot remove '/home/immich/app/machine-learning': Permission denied
sadly it did not work.
This is because last time you ran the script, you did so using root
user. As a result, the script left the machine-learning
folder in the wrong permission settings, making it inaccessible to immich
user.
All you need to do is deleting the /home/immich/app
folder using root
user. 😃
I guess it is time for me to note what user to use in every part of the guide. 😂
You have one pull request from me doing exactly that 😃
My bad. I was enjoying the free time after the exam period.
Hey @loeeeee thanks for shedding light on the I've been encountering, I finally received the success message.
P.S. I also noticed that the source/
folder also needs to be removed if the script was ran under root.
Hey @loeeeee thanks for shedding light on the I've been encountering, I finally received the success message. P.S. I also noticed that the
source/
folder also needs to be removed if the script was ran under root.
Bravo, mate! @ahmadhadidi
Hello,
I've been following along with this guide and reached the step "Install Immich Server", with the user "immich" I ran
sudo ./install.sh
inside the directoryimmich-in-lxc
. It runs fine but then it fails with the an error (I copied the log -- entry 55 is where the error occurs):Did anyone else encounter this?