#macOS 14.5 docker compose up -d issue

1 messages · Page 1 of 1 (latest)

broken cove
#

Hey everyone, I'm trying to set up immich, but I'm not able to run the docker compose up -d (see screenshot). What confuses me is that it doesn't seem to be able to read the .env file, since it says nothing is set.

Here's how I set the upload and db location:

The location where your uploaded files are stored

UPLOAD_LOCATION=/Volumes/870EVO/uploads

The location where your database files are stored

DB_DATA_LOCATION=/Volumes/870EVO/postgres

I have a feeling this is either a me-issue or a macOS docker issue. Also, if there's a fix for this, is it possible to set a path with spaces inside? I tried double quotes "" but it doesn't seem to change how it works.

Thanks in advance for your help!

Best regards

FingerMove

crystal sphinxBOT
#

:wave: Hey @broken cove,

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

References

Checklist

  1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :blue_square: I have read applicable release notes.
  3. :blue_square: I have reviewed the FAQs for known issues.
  4. :blue_square: I have reviewed Github for known issues.
  5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :blue_square: I have 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)

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

woeful tinsel
#

please provide the information the bot asked for

broken cove
#

docker compose logs:

fingermove@Mac-Mini immich-app % docker compose logs
WARN[0000] The "DB_PASSWORD" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_USERNAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_DATABASE_NAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_DATA_LOCATION" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_DATABASE_NAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_USERNAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_DATABASE_NAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_USERNAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "UPLOAD_LOCATION" variable is not set. Defaulting to a blank string.
invalid spec: :/var/lib/postgresql/data: empty section between colons

docker compose ps:

fingermove@Mac-Mini immich-app % docker compose ps
WARN[0000] The "UPLOAD_LOCATION" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_DATABASE_NAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_USERNAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_DATABASE_NAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_USERNAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_PASSWORD" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_USERNAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_DATABASE_NAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "DB_DATA_LOCATION" variable is not set. Defaulting to a blank string.
invalid spec: :/var/lib/postgresql/data: empty section between colons

I have a feeling something else is broken

fervent field
#

Does the .env file actually exist?

#

what does ls -la output?

broken cove
#

fingermove@Mac-Mini immich-app % ls -la
total 32
drwxr-xr-x 5 fingermove staff 160 3 Jul 21:49 .
drwxr-xr-x 4 fingermove staff 128 3 Jul 20:57 ..
-rw-r--r--@ 1 fingermove staff 6148 3 Jul 21:49 .DS_Store
-rw-r--r--@ 1 fingermove staff 2820 3 Jul 21:48 docker-compose.yml
-rw-r--r--@ 1 fingermove staff 872 3 Jul 21:59 example.env

#

I also double checked the files themselves, it's already my second try

Maybe I should reinstall docker?

icy gazelle
#

you didn't name the file to .env

#

you left it as example.env

broken cove
#

macOS doesn't let me rename it via finder, how do I do it in terminal?

icy gazelle
#

you can google how to rename file terminal mac os... I assume it's mv

broken cove
#

Thanks, gonna try this

#

macOS is weird in that way because it doesn't allow files to start with a dot

fervent field
#

Maybe finder is weird about it, but the os definitely allows .file

broken cove
icy gazelle
#

you can do it with the terminal

broken cove
#

Already did it, just wanted to show it for reference

#

The file just disappears inside the folder then

#

Works now, thanks everyone!