Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SUPPORT] Photoview - CorneliousJD Repo

Featured Replies

31 minutes ago, CorneliousJD said:

 

That's odd, I double checked my instance and it's indeed still working and generating thumbs properly.

Is your periodic scanner still setup to scan for new photos? If so and nothing else seems off, I'd suggest taking this to the github issues page since it isn't unraid-specific it seems. they would be the ones better equipped to help.

Of course feel free to post solutions here if you find them for others to see!

I have it configured to scan every hour, but I can't tell if it's working or not.  Do you know how I can verify?

  • Replies 90
  • Views 36.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • emersonicus
    emersonicus

    I had this problem I changed the domain to Unraid ip and port in order to show the images   PHOTOVIEW_PUBLIC_ENDPOINT: http://IP:8694/  

  • CorneliousJD, I got Photoview running, and it was quite a bit of trying different things. So initially I couldn't get Photoview to load no matter what. Looking through the logs it seemed like it was

  • CorneliousJD
    CorneliousJD

    It's case sensitive, try /photos in the container, no capital. 

Posted Images

  • Author
1 minute ago, Coolsaber57 said:

I have it configured to scan every hour, but I can't tell if it's working or not.  Do you know how I can verify?

 

I suppose if the new PHOTOS show up, but the thumbnails dont, at least the scanning is working, but thumbnail generation is not.

 

if the photos don't show up at all then something is off that's a deeper problem than just the thumbnails. 

On 5/19/2022 at 2:03 AM, Coolsaber57 said:

I have it configured to scan every hour, but I can't tell if it's working or not.  Do you know how I can verify?

 

During my scanning, there's a bunch of popup messages on the lower right listing things like "Processing media for album...." or the occasional "Scanner error" when there's a problem (for me, usually a weird video file).

  • 1 month later...

Looks like the issue has somehow fixed itself, so all my photos are now appearing, but for some reason, I can't get the app to play any videos.  I can play them just fine in Emby, but it seems to just show a single frame and play the sound in the background.  Any tips on this issue?

  • Author
Just now, Coolsaber57 said:

Looks like the issue has somehow fixed itself, so all my photos are now appearing, but for some reason, I can't get the app to play any videos.  I can play them just fine in Emby, but it seems to just show a single frame and play the sound in the background.  Any tips on this issue?

 

IIRC there was an open issue on their github and it has to do w/ the format the videos are in, the browsers cannot play them (major licensing issue) and photoview doesn't do trascoding like emby/plex would, so it just can't play them.

 

I fixed my videos working by disabling HEVC format on my phone, so they record in regular mp4's instead of the hevc-codec and they all work since then - just takes up a bit more storage space per video.

  • 5 months later...

i cant add my Share, whats wrong ?

sorry 😛

Foto.jpg

  • Author
3 hours ago, Botler85 said:

i cant add my Share, whats wrong ?

sorry 😛

Foto.jpg

 

You can't add it like that, you need to use a path that's relative to the container itself. 

 

A container path of /photos pointing to /mnt/user/Bilder/Fotos/ is what you need

Then in the app you'd add your share as /photos 

when I view the person in People Page, it will crash the docker and I try several times getting same result. I can see all CPUs and RAM load at 100% right before crashing., there are >100 image recongizned for a person. Here is the log file extracted. I am running Unraid 6.11.5 and latest PhotoView docker downloaded from App page.

 

Jan 11 20:47:14 Tower kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/docker/e8e0afb4ce7145fee5a6869d40680e1e8466cd4806289204ee5cca9373c836c6,task=photoview,pid=16373,uid=0
Jan 11 20:47:14 Tower kernel: Out of memory: Killed process 16373 (photoview) total-vm:7579940kB, anon-rss:6138264kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:12400kB oom_score_adj:0

  • Author
57 minutes ago, TEKI said:

when I view the person in People Page, it will crash the docker and I try several times getting same result. I can see all CPUs and RAM load at 100% right before crashing., there are >100 image recongizned for a person. Here is the log file extracted. I am running Unraid 6.11.5 and latest PhotoView docker downloaded from App page.

 

Jan 11 20:47:14 Tower kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/docker/e8e0afb4ce7145fee5a6869d40680e1e8466cd4806289204ee5cca9373c836c6,task=photoview,pid=16373,uid=0
Jan 11 20:47:14 Tower kernel: Out of memory: Killed process 16373 (photoview) total-vm:7579940kB, anon-rss:6138264kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:12400kB oom_score_adj:0

 

This isn't an unRAID specific issue. 

You'll want to file an issue on developer's github

  • 4 months later...

I've been having an issue where I can no longer view any photos in Photoview.  The scanner looks like it's working - meaning there are grey blocks with dates as recent as this week, but no Thumbnails are shown and I can't view the photo when I click on it. 

 

Any ideas on what I could check? 

  • 2 months later...

Okay gang, I could use someone to point me in the right direction.

 

I am running MariahDB. It supports several applications and appears to be running without issue. I created a database named "photoview' db and a user "photouser" with full rights to the database.  I log into MariahDB with HeidiDB and everything looks good.

 

Next, I configured the docker.  After compiling successfully, I checked the PHOTO_VIEW_MYSQL_URL. It has the correct IP address/port configuration as shown in the illustrated in the example.

-e 'PHOTOVIEW_MYSQL_URL'='photouser:photopass@tcp(192.168.2.2:3306)/photoview'

 

When I start the container and look at the logs, I see the following message:

2023/07/24 15:55:53 /app/database/database.go:101
[error] failed to initialize database, got error Error 1045: Access denied for user 'photouser'@'172.17.0.1' (using password: YES)

 

My question is where does 172.17.0.1 come from?  I can't use the docker console for the image, so Im kinda stuck.  Any words of wisdom?

 

Thanks,

  • 3 months later...

Ive recently deployed the docker for for this and it has worked with scanning of maybe 40% of the files in the share, but it has reached a point where the docker keeps crashing. 

On a restart, it will run and perform another scan rechecking all previous scanned folders (although not adding as it sees the folders have been indexed within the DB) but when it starts looking to add in new paths/files into the index, after some new files being indexed and added, it crashes shortly there after. (error below) 

 

2023/10/31 07:08:22 Scanning media: /photos/media-various/Video Rip/rhrn sewquence/IMG_0315.JPG
2023/10/31 07:08:22 Job finished
2023/10/31 07:08:22 Queue waiting for lock
2023/10/31 07:08:22 Queue running: in_progress: 39, max_tasks: 40, queue_len: 2651
2023/10/31 07:08:22 Queue starting job
2023/10/31 07:08:22 Queue waiting
2023/10/31 07:08:22 Starting job
2023/10/31 07:08:22 Job finished
2023/10/31 07:08:22 Queue waiting for lock
2023/10/31 07:08:22 Queue running: in_progress: 39, max_tasks: 40, queue_len: 2650
2023/10/31 07:08:22 Queue starting job
2023/10/31 07:08:22 Queue waiting
2023/10/31 07:08:22 Starting job
2023/10/31 07:08:22 Scanning media: /photos/2022/Photos/holiday/IMG_3222.JPG
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1c8 pc=0xb63950]

goroutine 11530 [running]:
github.com/photoview/photoview/api/scanner/scanner_tasks/processing_tasks.ProcessVideoTask.ProcessMedia({{}}, {{0xf68cf8?, 0xc001843b00?}}, 0xc00188e8d0, {0xc000124a68, 0x12})
        /app/scanner/scanner_tasks/processing_tasks/process_video_task.go:115 +0x16d0
github.com/photoview/photoview/api/scanner/scanner_tasks.scannerTasks.ProcessMedia({{}}, {{0xf68cf8?, 0xc001843b00?}}, 0xe3f640?, {0xc000124a68, 0x12})
        /app/scanner/scanner_tasks/scanner_tasks.go:128 +0x15d
github.com/photoview/photoview/api/scanner.processMedia({{0xf68cf8?, 0xc001843b00?}}, 0xc00188e8d0)
        /app/scanner/scanner_album.go:204 +0x9b
github.com/photoview/photoview/api/scanner.ScanAlbum.func1({{0xf68cf8?, 0xc001843b00?}})
        /app/scanner/scanner_album.go:115 +0x55
github.com/photoview/photoview/api/scanner/scanner_task.TaskContext.DatabaseTransaction.func1(0xc000444f60?)
        /app/scanner/scanner_task/scanner_task.go:73 +0x3a
gorm.io/gorm.(*DB).Transaction(0xc000444f60, 0xc000118760, {0x0, 0x0, 0x0})
        /go/pkg/mod/gorm.io/[email protected]/finisher_api.go:606 +0x29e
github.com/photoview/photoview/api/scanner/scanner_task.TaskContext.DatabaseTransaction({{0xf68cf8?, 0xc000ea3710?}}, 0xc00188e900, {0x0, 0x0, 0x0})
        /app/scanner/scanner_task/scanner_task.go:72 +0xed
github.com/photoview/photoview/api/scanner.ScanAlbum({{0xf68cf8?, 0xc000444ff0?}})
        /app/scanner/scanner_album.go:114 +0x477
github.com/photoview/photoview/api/scanner/scanner_queue.(*ScannerJob).Run(...)
        /app/scanner/scanner_queue/queue.go:35
github.com/photoview/photoview/api/scanner/scanner_queue.(*ScannerQueue).processQueue.func1()
        /app/scanner/scanner_queue/queue.go:144 +0x72
created by github.com/photoview/photoview/api/scanner/scanner_queue.(*ScannerQueue).processQueue
        /app/scanner/scanner_queue/queue.go:142 +0x16a

 

Any pointers as to why this would be or how to resolve/troubleshoot further. 

I've tried this with a range of scanners from 3,2 to 10 to now 40. Regardless of number used, it is at a point where it will continually fail.  

  • 3 months later...
On 7/24/2023 at 4:06 PM, DivideByZerro said:

Okay gang, I could use someone to point me in the right direction.

 

I am running MariahDB. It supports several applications and appears to be running without issue. I created a database named "photoview' db and a user "photouser" with full rights to the database.  I log into MariahDB with HeidiDB and everything looks good.

 

Next, I configured the docker.  After compiling successfully, I checked the PHOTO_VIEW_MYSQL_URL. It has the correct IP address/port configuration as shown in the illustrated in the example.

-e 'PHOTOVIEW_MYSQL_URL'='photouser:photopass@tcp(192.168.2.2:3306)/photoview'

 

When I start the container and look at the logs, I see the following message:

2023/07/24 15:55:53 /app/database/database.go:101
[error] failed to initialize database, got error Error 1045: Access denied for user 'photouser'@'172.17.0.1' (using password: YES)

 

My question is where does 172.17.0.1 come from?  I can't use the docker console for the image, so Im kinda stuck.  Any words of wisdom?

 

Thanks,

I have a similar issue. It looks like the docker is caching the old value for the env vars somewhere and not honoring changes. Even changing the env var via Console doesn't work.

To reproduce the issue:

- Set up Photoview

- Change SQL machine IP (I changed network range with a new router 192.168.0.x -> 192.168.1.x)

- Update in UnRAID to the new IP

  • 1 month later...

Trying to get setup. Running, mariedb.

my db server is reachable and pingable from unraid, everything same subnet, but in the photoview logs I see the below. that is the correct IP and port. I made virgin db called phtoview on maria for it to use... Not sure what I'm missing?

2024/04/10 11:44:41 Starting Photoview...
2024/04/10 11:44:41 No .env file found
2024/04/10 11:44:41 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:44:46 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:44:51 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:44:56 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:45:01 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x7d8678]

goroutine 1 [running]:
gorm.io/gorm.(*DB).getInstance(0x300000002?)
        /go/pkg/mod/gorm.io/[email protected]/gorm.go:363 +0x18
gorm.io/gorm.(*DB).SetupJoinTable(0x3?, {0xdb2940, 0xc000250620}, {0xe473c3, 0x6}, {0xd40d40, 0xc000222af0})
        /go/pkg/mod/gorm.io/[email protected]/gorm.go:395 +0x5e
github.com/photoview/photoview/api/database.MigrateDatabase(0xe5ab29?)
        /app/database/database.go:177 +0x66
main.main()
        /app/server.go:45 +0x128
2024/04/10 11:46:11 Starting Photoview...
2024/04/10 11:46:11 No .env file found
2024/04/10 11:46:11 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:46:16 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:46:21 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:46:26 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:46:31 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x7d8678]

 

  • 2 months later...

I have this setup using MariaDB and have it pointing to my Photo's  share (/mnt/user/Photos) with a container path of /photos.  I am able to access the webpage but I dont see any evidence that it is scanning the share for photos. I keep seeing lines like this:

2024/06/23 19:22:41 POST 200 <ip address>:8694/api/graphql 2.776685ms user: photouser
2024/06/23 19:22:53 POST 200 localhost/api/graphql 1.202461ms unauthenticated

  • 2 months later...

For anyone getting a "permissions denied" error when its trying to generate the thumbnail OR getting a "no such file or directory" you need to change the permissions of the photoview folder that is created inside of your appdata. I'm not exposing this docker publicly and I would strongly recommend you do this the right way (actually setting the correct permissions for the correct user).

I changed my permissions on the photoview folder to rwxr-xrwx instead (0756 instead of 0755)

Restarted photoview and my thumbnails were finally being generated. The default configuration is actually correct, its the permissions that need to be updated. Assuming you're not having issues with your database. I am using MariaDB, haven't had any issues - also didn't try any other database.
 image.thumb.png.946ec368e49947f61fccc99df2b5c3d5.pngimage.png.062af6f50d20b38434bd54b14844ad5c.png


If you're getting a "file or directory not found" error, you probably had changed the `/app/cache` path at the bottom of the container. Set that back to the default unless you understand what you're doing.


edit: Checkout this github issue to see if you're having the same problem. https://github.com/photoview/photoview/issues/946

Edited by XFL

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.