I
Immich2y ago
dms

gallery homepage doesnt show thumbnails at all

Hi guys, installed and got it working, migrated all pics and let the job of creating thumbnails run for all pics. There were no errors in creating thumbs, only they are not showing at all on the homepage. i can see some pics when i navigate to explore, places or faces for example, but i would like to show the latest pics on the home screen. Any hints where to start looking??
No description
59 Replies
Alex Tran
Alex Tran2y ago
Did you migrate from Google Photos? have you done writing back the metadata to the files yet? it looks like lots of files are put into 2023's single month from the look of the timeline scrollbar
dms
dmsOP2y ago
Hi Alex, yes, did the google takeout and did the job of generating thumbnails, did not do the metadata job yet... started the "Extract metadata" job just now, most probably will take some hours...:-)
Alex Tran
Alex Tran2y ago
I suggest you follow the direction in this discussion #1340
Immich
Immich2y ago
[Discussion] (#1340)
Alex Tran
Alex Tran2y ago
No, I meant rewriting the EXIF from google photos takes out back into the files. It is because Google stripped EXIF info from your images
dms
dmsOP2y ago
ooww, ok. will follow the guide from the other thread first, thanks!
Alex Tran
Alex Tran2y ago
Yeah, you might need to nuke this instance and start over
dms
dmsOP2y ago
Is there a way to check if the EXIF data is ok for import after running the migration scripts? Allright, fresh install, ran the scripts on my google Takeout pictures, imported all pics and ran the metadata and thumbnail jobs. Unfortunately the pics don't show up in the main screen. Any tips on what to do now? I really like the project and i would love to get it working on my machine..! thanks in advance Error on immich-server:
[Nest] 6 - 10/13/2023, 9:09:49 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:406:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:159:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:1023:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:337:12)
[Nest] 6 - 10/13/2023, 9:09:49 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:406:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:159:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:1023:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:337:12)
error on immich-web:

Listening on 0.0.0.0:3000
[hooks.server.ts] Unable to get my user {
message: 'read ECONNRESET',
code: 'ECONNRESET',
stack: 'Error: read ECONNRESET\n' +
' at TCP.onStreamRead (node:internal/stream_base_commons:217:20)'
}
[hooks.server.ts]:handle read ECONNRESET
Listening on 0.0.0.0:3000

Listening on 0.0.0.0:3000
[hooks.server.ts] Unable to get my user {
message: 'read ECONNRESET',
code: 'ECONNRESET',
stack: 'Error: read ECONNRESET\n' +
' at TCP.onStreamRead (node:internal/stream_base_commons:217:20)'
}
[hooks.server.ts]:handle read ECONNRESET
Listening on 0.0.0.0:3000
Daniel
Daniel2y ago
Those aren't necessarily real errors. Was your stack actually completely up and running?
dms
dmsOP2y ago
yes, no fatal errors in the logs, i can log in and search faces, only on the main page non of the photos are shown
dms
dmsOP2y ago
there is something like a date-based selection, so i guess metadata are read for the pictures...?
No description
Daniel
Daniel2y ago
Hm, that is really weird...
Daniel
Daniel2y ago
You could use this to check if any assets have no metadata. However, it doesn't look like it
dms
dmsOP2y ago
immich=# SELECT "assets".* FROM "exif" LEFT JOIN "assets" ON "assets"."id" = "exif"."assetId" WHERE "exif"."assetId" IS NULL;
id | deviceAssetId | ownerId | deviceId | type | originalPath | resizePath | fileCreatedAt | fileModifiedAt | isFavorite | duration | webpPath | encodedVideoPath | checksum | isVisible | livePhotoVideoId | updatedAt | createdAt | isArchived | originalFileName | sidecarPath | isReadOnly | thumbhash | isOffline | libraryId | isExternal | deletedAt | localDateTime
----+---------------+---------+----------+------+--------------+------------+---------------+----------------+------------+----------+----------+------------------+----------+-----------+------------------+-----------+-----------+------------+------------------+-------------+------------+-----------+-----------+-----------+------------+-----------+---------------
(0 rows)

immich=#
immich=# SELECT "assets".* FROM "exif" LEFT JOIN "assets" ON "assets"."id" = "exif"."assetId" WHERE "exif"."assetId" IS NULL;
id | deviceAssetId | ownerId | deviceId | type | originalPath | resizePath | fileCreatedAt | fileModifiedAt | isFavorite | duration | webpPath | encodedVideoPath | checksum | isVisible | livePhotoVideoId | updatedAt | createdAt | isArchived | originalFileName | sidecarPath | isReadOnly | thumbhash | isOffline | libraryId | isExternal | deletedAt | localDateTime
----+---------------+---------+----------+------+--------------+------------+---------------+----------------+------------+----------+----------+------------------+----------+-----------+------------------+-----------+-----------+------------+------------------+-------------+------------+-----------+-----------+-----------+------------+-----------+---------------
(0 rows)

immich=#
tried different browsers, no result... checked on the browser:
dms
dmsOP2y ago
No description
Daniel
Daniel2y ago
Ok, so probably metadata isn't the issue Do you use any browser plugins? I feel like at least autofiller doesn't come from immich
dms
dmsOP2y ago
On mobile, fresh installed browser, same....
No description
dms
dmsOP2y ago
Makes me feel it's something server side
Daniel
Daniel2y ago
Can you share more of the immich_web logs? Like just a bunch of lines copy paste
dms
dmsOP2y ago
}
}
[hooks.server.ts] Unable to get my user {
message: 'Invalid user token',
code: '401 - Unauthorized',
stack: undefined
}
{
status: 401,
url: 'GET /user/me',
response: {
message: 'Invalid user token',
error: 'Unauthorized',
statusCode: 401
}
}
[hooks.server.ts] Unable to get my user {
message: 'Invalid user token',
code: '401 - Unauthorized',
stack: undefined
}
}
}
[hooks.server.ts] Unable to get my user {
message: 'Invalid user token',
code: '401 - Unauthorized',
stack: undefined
}
{
status: 401,
url: 'GET /user/me',
response: {
message: 'Invalid user token',
error: 'Unauthorized',
statusCode: 401
}
}
[hooks.server.ts] Unable to get my user {
message: 'Invalid user token',
code: '401 - Unauthorized',
stack: undefined
}
does that container have seperate logs folder ?? This is from Portainer
Listening on 0.0.0.0:3000
[hooks.server.ts] Unable to get my user {
message: 'read ECONNRESET',
code: 'ECONNRESET',
stack: 'Error: read ECONNRESET\n' +
' at TCP.onStreamRead (node:internal/stream_base_commons:217:20)'
}
[hooks.server.ts]:handle read ECONNRESET
Listening on 0.0.0.0:3000
{
status: 401,
url: 'GET /user/me',
response: {
message: 'Invalid user token',
error: 'Unauthorized',
statusCode: 401
}
}
[hooks.server.ts] Unable to get my user {
message: 'Invalid user token',
code: '401 - Unauthorized',
stack: undefined
}
{
status: 401,
url: 'GET /user/me',
response: {
message: 'Invalid user token',
error: 'Unauthorized',
statusCode: 401
}
}
[hooks.server.ts] Unable to get my user {
message: 'Invalid user token',
code: '401 - Unauthorized',
stack: undefined
}
Listening on 0.0.0.0:3000
[hooks.server.ts] Unable to get my user {
message: 'read ECONNRESET',
code: 'ECONNRESET',
stack: 'Error: read ECONNRESET\n' +
' at TCP.onStreamRead (node:internal/stream_base_commons:217:20)'
}
[hooks.server.ts]:handle read ECONNRESET
Listening on 0.0.0.0:3000
{
status: 401,
url: 'GET /user/me',
response: {
message: 'Invalid user token',
error: 'Unauthorized',
statusCode: 401
}
}
[hooks.server.ts] Unable to get my user {
message: 'Invalid user token',
code: '401 - Unauthorized',
stack: undefined
}
{
status: 401,
url: 'GET /user/me',
response: {
message: 'Invalid user token',
error: 'Unauthorized',
statusCode: 401
}
}
[hooks.server.ts] Unable to get my user {
message: 'Invalid user token',
code: '401 - Unauthorized',
stack: undefined
}
Daniel
Daniel2y ago
Afaik we don't write log files by default. So the docker logs are the ones
dms
dmsOP2y ago
server.ts means typesense i guess?
Daniel
Daniel2y ago
What? You shouldn't see server.ts anywhere... How have you installed Immich?
dms
dmsOP2y ago
Used the standard docker compose files...? I can send you my docker compose files..?
Daniel
Daniel2y ago
Yes that might helpful. Just paste it here
Alex Tran
Alex Tran2y ago
No result as in nothing shown up? Can you go into incognito mode and access the site?
dms
dmsOP2y ago
incognito
No description
dms
dmsOP2y ago
here u go
Daniel
Daniel2y ago
And where is the server.ts you were talking about?
Alex Tran
Alex Tran2y ago
You are saying you use Portainer, correct?
dms
dmsOP2y ago
yes sir
Alex Tran
Alex Tran2y ago
then your .env has to change to stack.env
Alex Tran
Alex Tran2y ago
No description
dms
dmsOP2y ago
i mean i use portainer to look at the containers, setting things up with docker-compose in the logs of immich.web:
Listening on 0.0.0.0:3000
[hooks.server.ts] Unable to get my user {
message: 'connect ECONNREFUSED 172.29.0.8:3001',
code: 'ECONNREFUSED',
stack: 'Error: connect ECONNREFUSED 172.29.0.8:3001\n' +
' at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)'
}
[hooks.server.ts]:handle connect ECONNREFUSED 172.29.0.8:3001
[hooks.server.ts]:handleError connect ECONNREFUSED 172.29.0.8:3001
[hooks.server.ts] Unable to get my user {
message: 'connect ECONNREFUSED 172.29.0.8:3001',
code: 'ECONNREFUSED',
stack: 'Error: connect ECONNREFUSED 172.29.0.8:3001\n' +
' at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)'
}
[hooks.server.ts]:handle connect ECONNREFUSED 172.29.0.8:3001
[hooks.server.ts]:handleError connect ECONNREFUSED 172.29.0.8:3001


Listening on 0.0.0.0:3000
[hooks.server.ts] Unable to get my user {
message: 'connect ECONNREFUSED 172.29.0.8:3001',
code: 'ECONNREFUSED',
stack: 'Error: connect ECONNREFUSED 172.29.0.8:3001\n' +
' at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)'
}
[hooks.server.ts]:handle connect ECONNREFUSED 172.29.0.8:3001
[hooks.server.ts]:handleError connect ECONNREFUSED 172.29.0.8:3001
[hooks.server.ts] Unable to get my user {
message: 'connect ECONNREFUSED 172.29.0.8:3001',
code: 'ECONNREFUSED',
stack: 'Error: connect ECONNREFUSED 172.29.0.8:3001\n' +
' at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)'
}
[hooks.server.ts]:handle connect ECONNREFUSED 172.29.0.8:3001
[hooks.server.ts]:handleError connect ECONNREFUSED 172.29.0.8:3001


Alex Tran
Alex Tran2y ago
ah, so you don't run it in the portainer You can ignore these logs
dms
dmsOP2y ago
nope, docker-compose
Alex Tran
Alex Tran2y ago
can you bring down the stack, then bring them back up with docker-compose up
dms
dmsOP2y ago
sure i'm not using separate stack, all my containers are on the same stack, but that shouldnt be a problem right? down and up again
Alex Tran
Alex Tran2y ago
as long as you are in the directory where the docker-compose file of Immich is in, it only affect the services in that file
dms
dmsOP2y ago
yes, sure! 2023/10/13 13:16:22 [error] 42#42: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.2.221, server: , request: "GET /api/server-info HTTP/1.1", upstream: "http://172.29.0.7:3001/server-info", host: "192.168.2.24:2283", referrer: "http://192.168.2.24:2283/photos"
Immich
Immich2y ago
[Discussion] (#42)
dms
dmsOP2y ago
from the immich_proxy logs
dms
dmsOP2y ago
and from immich_server:
Daniel
Daniel2y ago
All of this looks perfectly fine ^^
dms
dmsOP2y ago
mmmm , really weird... the demo site on the same browser does works...:-(
dms
dmsOP2y ago
No description
dms
dmsOP2y ago
does this help you?
Alex Tran
Alex Tran2y ago
Can you post your .env please?
dms
dmsOP2y ago
dms
dmsOP2y ago
When I refresh, the grid is visible but after that it gone....
dms
dmsOP2y ago
changed from main to release in my .env file...!
dms
dmsOP2y ago
No description
dms
dmsOP2y ago
grid is working..! what makes the grey parts...?? hwy is tha picture not showing overthere...??
Daniel
Daniel2y ago
Probably some thumbnails couldn't be generated successfully. You can re-run thumbnail generation in admin settings -> jobs
dms
dmsOP2y ago
ok, will do that!@
Daniel
Daniel2y ago
@Alex You're right... There are indeed many people beta testing lmao
dms
dmsOP2y ago
thanks for all your support and sorry for being such a noob...:-)
Daniel
Daniel2y ago
That's alright! Many people accidentally use the wrong version :D

Did you find this page helpful?