Closed arminus closed 2 years ago
You will have to comment out the immich_tf_fastapi
in docker-compose file if you build on Rapsberry Pi. That container uses TensorFlow 2 and currently not supported on Rpi
Ok, I missed that. So that get's me one step further:
Starting compilation in watch mode...
immich_server_1 |
immich_server_1 | [2:35:01 PM] Found 0 errors. Watching for file changes.
immich_server_1 |
immich_server_1 |
immich_server_1 | /usr/src/app/node_modules/@nestjs/config/dist/config.module.js:66
immich_server_1 | throw new Error(`Config validation error: ${error.message}`);
immich_server_1 | ^
immich_server_1 | Error: Config validation error: "MAPBOX_KEY" failed custom validation because Cannot read properties of undefined (reading 'presence')
my .env file is set like this
# STAGE
NODE_ENV=development
# Database
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE_NAME=immich
# Upload File Config
UPLOAD_LOCATION=/mnt/2TB/Media/Immich
# JWT SECRET
JWT_SECRET=klashdkj786556q23e91
# MAPBOX
## ENABLE_MAPBOX is either true of false -> if true, you have to provide MAPBOX_KEY
ENABLE_MAPBOX=false
MAPBOX_KEY=
setting MAPBOX_KEY to some arbitrary value doesn't change anything.
When you change your .env file, did you re-run the docker-compose command again? I haven't seen this behavior on my system
Yes, this happens when I run docker-compose -f ./docker/docker-compose.yml up --build -V
Ah, I think I found the reason. Fixed in #62. Can you please pull the main branch and try again?
Actually, there is still a problem, I am working on this one
Ok, it is good now. Fixed in commit dbd79f47975f2105ca4f9687b8fcdbd6bd2ee3ab
Confirmed, thanks for the quick fix.
Next problem:
immich_postgres | 2022-03-19 16:10:53.763 UTC [34] FATAL: database "immich" does not exist
How do I create/seed the database?
Can I see your docker-compose
file? The database should be created at startup.
Here you go. No real change to your version in git:
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 8298eac..4a3eb36 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -61,26 +61,26 @@ services:
depends_on:
- immich_server
- immich_tf_fastapi:
- container_name: immich_tf_fastapi
- image: tensor_flow_fastapi:1.0.0
- restart: always
- command: uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port 8000 --reload
- build:
- context: ../machine_learning
- target: cpu
- dockerfile: ../machine_learning/Dockerfile
- volumes:
- - ../machine_learning/app:/code/app
- - ${UPLOAD_LOCATION}:/code/app/upload
- ports:
- - 2285:8000
- expose:
- - "8000"
- depends_on:
- - database
- networks:
- - immich_network
+# immich_tf_fastapi:
+# container_name: immich_tf_fastapi
+# image: tensor_flow_fastapi:1.0.0
+# restart: always
+# command: uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port 8000 --reload
+# build:
+# context: ../machine_learning
+# target: cpu
+# dockerfile: ../machine_learning/Dockerfile
+# volumes:
+# - ../machine_learning/app:/code/app
+# - ${UPLOAD_LOCATION}:/code/app/upload
+# ports:
+# - 2285:8000
+# expose:
+# - "8000"
+# depends_on:
+# - database
+# networks:
+# - immich_network
networks:
immich_network:
And here's my .env file:
# STAGE
NODE_ENV=development
# Database
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE_NAME=immich
# Upload File Config
UPLOAD_LOCATION=/mnt/2TB/Media/Immich
# JWT SECRET
JWT_SECRET=klashdkj786556q23e91
# MAPBOX
## ENABLE_MAPBOX is either true of false -> if true, you have to provide MAPBOX_KEY
ENABLE_MAPBOX=false
MAPBOX_KEY=
Confirmed, thanks for the quick fix.
Next problem:
immich_postgres | 2022-03-19 16:10:53.763 UTC [34] FATAL: database "immich" does not exist
How do I create/seed the database?
maybe similar to this https://github.com/alextran1502/immich/issues/17#issuecomment-1034848900
@ippocratis Thank you for the suggestion. Another relevant source I just found; Postgres image is not creating database
@arminus Can you try what @ippocratis suggested?
I haven't been able to acquire an RPi4 to test.
yep, I had the same thought after a while and that did solve that problem.
Now all containers appear to be up and running, no error messages as far as I can tell, I managed to create a user, but when I try to load http://pi4:283 I get a 404, "Cannot GET /"
nginx is running on
cec0a1061b38 nginx:latest "/docker-entrypoint.…" 2 minutes ago Up 2 minutes 0.0.0.0:2283->80/tcp, :::2283->80/tcp, 0.0.0.0:2284->443/tcp, :::2284->443/tcp proxy_nginx
and there's no port conflict on 2283 orr 2284
Can't get any logs form nginx:
docker logs proxy_nginx Error response from daemon: configured logging driver does not support reading
Here's the immich_server log:
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:53 PM LOG [NestFactory] Starting Nest application...
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] AppModule dependencies initialized +357ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] JwtModule dependencies initialized +4ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +4ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +1ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] ConfigModule dependencies initialized +4ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] ConfigModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] BullModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] ServerInfoModule dependencies initialized +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] BullModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] BullModule dependencies initialized +33ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] BullModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] BullModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] BullModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:54 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +951ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] CommunicationModule dependencies initialized +6ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] ImmichJwtModule dependencies initialized +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] BackgroundTaskModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] UserModule dependencies initialized +7ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] ImageOptimizeModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] DeviceInfoModule dependencies initialized +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] AuthModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [InstanceLoader] AssetModule dependencies initialized +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RoutesResolver] UserController {/user}: +51ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RoutesResolver] AssetController {/asset}: +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset/upload, POST} route +16ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset/file, GET} route +4ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset/allLocation, GET} route +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset/searchTerm, GET} route +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset/search, POST} route +4ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset/new, GET} route +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset/all, GET} route +4ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset, GET} route +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset/:deviceId, GET} route +5ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset/assetById/:assetId, GET} route +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/asset, DELETE} route +4ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RoutesResolver] AuthController {/auth}: +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/auth/login, POST} route +4ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/auth/signUp, POST} route +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/auth/validateToken, POST} route +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RoutesResolver] DeviceInfoController {/device-info}: +1ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/device-info, POST} route +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/device-info, PATCH} route +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RoutesResolver] ServerInfoController {/server-info}: +1ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/server-info, GET} route +3ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/server-info/ping, GET} route +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [RouterExplorer] Mapped {/server-info/mapbox, GET} route +2ms
immich_server_1 | [Nest] 30 - 03/19/2022, 5:23:55 PM LOG [NestApplication] Nest application successfully started +40ms
There is no web interface. If you have an iPhone, you can download the app from the app store to use it. If you have an Android, you can download the latest APK in the release tab to use it. I'm in the process of getting the app onto Google Playstore
There is no web interface. If you have an iPhone, you can download the app from the app store to use it. If you have an Android, you can download the latest APK in the release tab to use it. I'm in the process of getting the app onto Google Playstore
A non google services depended version of the app released here or on fdroid will be more than welcone
There is no web interface.
right. missed that, too. Working now.
If you have an iPhone, you can download the app from the app store to use it. If you have an Android, you can download the latest APK in the release tab to use it. I'm in the process of getting the app onto Google Playstore
your dev version works. I have some other observations, but that has nothing to do with this ticket.
Thanks again for the quick help.
Trying to build the docker-compose.yml, I get this: