#change media location

1 messages · Page 1 of 1 (latest)

tacit storm
#

Hello, i'm new to immich, have just installed it on proxmox via github helper scripts.
Via proxmox, i've added a mount point to it that basically allows immich to have mounted my NAS.
but i don't know which is the correct procedure to change default media location, as for now, once installed i've changed in the .env file the variable IMMICH_MEDIA_LOCATION to my nas, and then rebooted and registered the admin account.
but from what i've read from immich server commans , there is a proper way to do it by issuing immich-admin change-media-location, unfortunatelly the commands fails in my installation, it just says can someone help me???

the error message i got:

Initializing Immich 
skipping get-cpus.sh - not found in PATH or failed: using default UV_THREADPOOL_SIZE
Missing history for endpoint: Retrieve auth status
(node:491) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Error: getaddrinfo ENOTFOUND redis
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26) {
  errno: -3007,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'redis'
}
copper cliffBOT
#

:wave: Hey @tacit storm,

Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich immich.

References

#

Checklist

I have...

  1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: read applicable release notes.
  3. :ballot_box_with_check: reviewed the FAQs for known issues.
  4. :ballot_box_with_check: reviewed Github for known issues.
  5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: uploaded the relevant information (see below).
  7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

Information

In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:

  • Your docker-compose.yml and .env files.
  • Logs from all the containers and their status (see above).
  • All the troubleshooting steps you've tried so far.
  • Any recent changes you've made to Immich or your system.
  • Details about your system (both software/OS and hardware).
  • Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h).
  • The version of the Immich server, mobile app, and other relevant pieces.
  • Any other information that you think might be relevant.

Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

vernal ocean
#

The command is for a docker install and won't work with the helper scripts lxc.

#

Immich media location is also definitely not why you want to change, please look at /opt/immich/.env and see what the upload location is set to

tacit storm
#

in /opt/immich/.env by default it was set to
IMMICH_MEDIA_LOCATION=/opt/immich/upload

now i want to change it to /mountPoint, which is the correct procedure to perform such operation?

#

because if i try to change it right after fresh install, if i restart then i see on the logs that immich is not able to find upload folder. So if i copy content from old location to new location, it will start properly, but is it the proper way to proceed?
btw, owner of upload folder is immich user/group, whe i move the files to new location it will be root, and there is no way to change it back to immich user

vernal ocean
#

Moving files is indeed the proper way, why is it not possible to change the owner?

tacit storm
#

when i try to copy:

root@immich:/opt/immich# cp -rp /opt/immich/upload/* /mountPoint/immich/
cp: failed to preserve ownership for '/mountPoint/immich/backups/.immich': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/backups': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/encoded-video/.immich': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/encoded-video': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/library/.immich': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/library': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/profile/.immich': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/profile': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/thumbs/.immich': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/thumbs': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/upload/.immich': Operation not permitted
cp: failed to preserve ownership for '/mountPoint/immich/upload': Operation not permitted

same if i try to perform it manually with

root@immich:/mountPoint/immich# chown -R immich:immich *
chown: changing ownership of 'backups/.immich': Operation not permitted
chown: changing ownership of 'backups': Operation not permitted
chown: changing ownership of 'encoded-video/.immich': Operation not permitted
chown: changing ownership of 'encoded-video': Operation not permitted
chown: changing ownership of 'library/.immich': Operation not permitted
...

#

i see that immich user in sudoers is nologin, don't know if it is related or should be with allowed login

#

okay maybe i found the issue with permissions, anyhow, can you confirm i'm following the correct procedure?
1 create new folder
2 move files from upload into it
3 change .env file
4 restart

don't need to change anything in DB or somewhere elese?

vernal ocean
#

I'd advise you to shut the services down before moving anything @tacit storm

tacit storm
#

postgres, redis and ML right?

#

it is a fresh install btw, no photos in it yet

vernal ocean
#

With the helper script just shutting off the immich-web service should suffice

tacit storm
#

the issue is due because of how i mount my nas to the lxc container on my Proxmox node, i don't think there is a way to proceed, to be able to mount my nas i need to change immich UID and GUID, by doing so i will not be able to start the DB anymore

mounting the NFS share directly to the cointainer is not an option, so i'm not able to continue
i don't want to get the installation directly on my NAS

vernal ocean
#

The database shouldn't use network storage anyway

#

I'm pretty sure you can mount it this way but you better ask the proxmox guys @tacit storm

#

We only support docker deployments here

tacit storm
vernal ocean
#

That is a pretty nice guide

tacit storm
#

totally agree

#

one more question, any change to get more than 3 files per time for uploading from smartphone?

vernal ocean
#

No

#

Files are hashed by the CPU and this will be your limiting factor anyway

#

Well unless your upload speed is bonkers slow

#

Personally I reach 100MB/s upload with the app

tacit storm
#

okay great, giving it that threadripper

#

🙂

vernal ocean
tacit storm
#

proceeds to cancel order

vernal ocean
#

It's how deduplication checks go to prevent uploading and then discarding things

tacit storm
copper cliffBOT
tacit storm
#

btw thanks so much for the help

vernal ocean
#

vhsdream is the developer of the LXC script so I'd trust him over anyone else honestly