hassio-addons
hassio-addons copied to clipboard
🐛Spotweb No pictures anymore, unable to write to cachepath
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&[email protected]&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&[email protected]&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
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.
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.
Still active.
Thanks, added chmod 777 /app/cache
I'll look to add persistence