Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛Spotweb No pictures anymore, unable to write to cachepath #1051

Open
JBakers opened this issue Oct 29, 2023 · 4 comments
Open

🐛Spotweb No pictures anymore, unable to write to cachepath #1051

JBakers opened this issue Oct 29, 2023 · 4 comments
Labels
bug Something isn't working prevent stale Prevents stale being applied

Comments

@JBakers
Copy link

JBakers commented Oct 29, 2023

Description

Spots dont show an image anymore, only this.

Spotweb docs say the cache folder most likely has wrong permissions set.
But I cant find the cachefolder, or the spotweb addon folder for that matter.

Reproduction steps

1. Go to 'spotweb'
2. Click on 'spot'
3. See error

Addon Logs

2023/10/29 18:34:51 [error] 348#348: *45 FastCGI sent in stderr: "PHP message: PHP Warning:  fileperms(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 359PHP message: PHP Warning:  fileowner(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 360PHP message: PHP Warning:  filegroup(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 361PHP message: Unable to write to cache directory (/app/lib/../cache/image/0/47.png),  owner=,  group=,  thisUser=nginx,  perms= PHP message: PHP Warning:  fileperms(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 359PHP message: PHP Warning:  fileowner(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 360PHP message: PHP Warning:  filegroup(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 361PHP message: Unable to write to cache directory (/app/lib/../cache/image/0/49.jpg),  owner=,  group=,  thisUser=nginx,  perms=" while reading response header from upstream, client: 192.168.178.184, server: _, request: "GET /?page=getimage&messageid=Y1fDQDia7JgoEwpZQhZri@spot.net&image[height]=260&image[width]=130 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.178.66:9999", referrer: "http://192.168.178.66:9999/?page=index&search[tree]=cat0_z0_a4,cat0_z0_a6,cat0_z0_a7,cat0_z0_a8,cat0_z0_a9&search[value][]=NULL"
2023/10/29 18:34:51 [error] 348#348: *43 FastCGI sent in stderr: "PHP message: PHP Warning:  fileperms(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 359PHP message: PHP Warning:  fileowner(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 360PHP message: PHP Warning:  filegroup(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 361PHP message: Unable to write to cache directory (/app/lib/../cache/image/0/48.jpg),  owner=,  group=,  thisUser=nginx,  perms= PHP message: PHP Warning:  fileperms(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 359PHP message: PHP Warning:  fileowner(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 360PHP message: PHP Warning:  filegroup(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 361PHP message: Unable to write to cache directory (/app/lib/../cache/image/0/50.jpg),  owner=,  group=,  thisUser=nginx,  perms=" while reading response header from upstream, client: 192.168.178.184, server: _, request: "GET /?page=getimage&messageid=ae5vNpIi7GsgEopZQCII1@spot.net&image[height]=260&image[width]=130 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.178.66:9999", referrer: "http://192.168.178.66:9999/?page=index&search[tree]=cat0_z0_a4,cat0_z0_a6,cat0_z0_a7,cat0_z0_a8,cat0_z0_a9&search[value][]=NULL"
2023/10/29 18:34:52 [error] 348#348: *43 FastCGI sent in stderr: "PHP message: PHP Warning:  fileperms(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 359PHP message: PHP Warning:  fileowner(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 360PHP message: PHP Warning:  filegroup(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 361PHP message: Unable to write to cache directory (/app/lib/../cache/image/0/51.jpg),  owner=,  group=,  thisUser=nginx,  perms= PHP message: PHP Warning:  fileperms(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 359PHP message: PHP Warning:  fileowner(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 360PHP message: PHP Warning:  filegroup(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 361PHP message: Unable to write to cache directory (/app/lib/../cache/image/0/52.jpg),  owner=,  group=,  thisUser=nginx,  perms=" while reading response header from upstream, client: 192.168.178.184, server: _, request: "GET /?page=getimage&messageid=ilvnKFyrMOgIGgpZQ5evO%40spot.net&image[height]=260&image[width]=260 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.178.66:9999", referrer: "http://192.168.178.66:9999/?page=index&search[tree]=cat0_z0_a4,cat0_z0_a6,cat0_z0_a7,cat0_z0_a8,cat0_z0_a9&search[value][]=NULL"
2023/10/29 18:34:56 [error] 348#348: *52 FastCGI sent in stderr: "PHP message: PHP Warning:  fileperms(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 359PHP message: PHP Warning:  fileowner(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 360PHP message: PHP Warning:  filegroup(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 361PHP message: Unable to write to cache directory (/app/lib/../cache/image/0/53.png),  owner=,  group=,  thisUser=nginx,  perms= PHP message: PHP Warning:  fileperms(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 359PHP message: PHP Warning:  fileowner(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 360PHP message: PHP Warning:  filegroup(): stat failed for /app/lib/../cache/image/0 in /app/lib/dao/Base/Dao_Base_Cache.php on line 361PHP message: Unable to write to cache directory (/app/lib/../cache/image/0/54.jpg),  owner=,  group=,  thisUser=nginx,  perms=" while reading response header from upstream, client: 192.168.178.184, server: _, request: "GET /?page=getimage&messageid=FPfAFzc1q0EFmQpZQMsju%40spot.net&image[height]=260&image[width]=260 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.178.66:9999", referrer: "http://192.168.178.66:9999/?page=index&search[tree]=cat0_z0_a4,cat0_z0_a6,cat0_z0_a7,cat0_z0_a8,cat0_z0_a9&search[value][]=NULL"

Architecture

AMD64

OS

HaOS, Virtualbox

@JBakers JBakers added the bug Something isn't working label Oct 29, 2023
@GrumpyMeow
Copy link

GrumpyMeow commented Oct 30, 2023

Same here on Proxmox v8. Must be something with permissions.
Via portainer i entered the container.

ls -lai /app

3838363 drwxr-xr-x    1 nginx    root          4096 Sep 23 21:07 cache

Fix/workaround:

chmod 777 /app/cache

3838363 drwxrwxrwx    1 nginx    root          4096 Sep 23 21:07 cache

It might make sense to mount the /app/cache-folder to a volume or tmpfs. But i'm no expert.

Copy link
Contributor

github-actions bot commented Nov 6, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Element will be closed automatically label Nov 6, 2023
@JBakers
Copy link
Author

JBakers commented Nov 6, 2023

Still active.

@alexbelgium alexbelgium added prevent stale Prevents stale being applied and removed stale Element will be closed automatically labels Nov 7, 2023
@alexbelgium
Copy link
Owner

Thanks, added chmod 777 /app/cache
I'll look to add persistence

alexbelgium added a commit that referenced this issue Dec 4, 2023
alexbelgium added a commit that referenced this issue Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working prevent stale Prevents stale being applied
Projects
None yet
Development

No branches or pull requests

3 participants