Comments (3)
PS: Thanks a lot for your work. I would be happy to provide a fix for this issue if you guide me in the right direction.
from rompr.
Hmmm. Well this makes no sense :) I can't reproduce it and looking at the code I can see exactly where it's going wrong, but it's one of those places where it can't possibly go wrong :)
There is a slight possibility it might be a timing thing, and there were a few lines of code that should have been updated when I updated to jQuery 3, so I suppose it might be that. You could try pulling the head from the 'develop' branch and see if that fixes it.
from rompr.
After I initially thought that it is a problem in JS, I found out now that it is rather something in my server setup. The following stack trace is reported from nginx when the page is not loaded fully:
2023/10/31 23:54:48 [error] 33#33: *96353 FastCGI sent in stderr: "PHP message: PHP Warning: fopen(prefs/jsoncache/commradio/a2ae1e1ba06dfca0e9f47111a6d9337c): Failed to open stream: Permission denied in /var/www/rompr2/util_classes/url_downloader.class.php on line 128; PHP message: PHP Fatal error: Uncaught TypeError: curl_setopt(): supplied argument is not a valid File-Handle resource in /var/www/rompr2/util_classes/url_downloader.class.php:129
Stack trace:
#0 /var/www/rompr2/util_classes/url_downloader.class.php(129): curl_setopt()
#1 /var/www/rompr2/browser/apis/cache_handler.class.php(32): url_downloader->get_data_to_file()
#2 /var/www/rompr2/streamplugins/classes/commradioplugin.class.php(102): cache_handler->get_cache_data()
#3 /var/www/rompr2/search/g_search_commradio.class.php(13): commradioplugin->get_country_list()
#4 /var/www/rompr2/includes/search_handler.class.php(64): g_search_commradio->__construct()
#5 /var/www/rompr2/skins/desktop/skin.php(207): search_handler->create_search_panel()
#6 /var/www/rompr2/index.php(323): include('...')
#7 {main}
thrown in /var/www/rompr2/util_classes/url_downloader.class.php on line 129" while reading upstream, client: 192.168.178.93, server: rompr, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "rompr.lan"
The "permission denied" was the problem. Sometimes it would create cache files in this commradio directory which for some unknown reason did not have write permissions for php.
In my web server setup, nginx accesses the files from git (as you call it /home/YOU/web
here). It has www-data write permissions for the prefs directory, but apparently not for commradio.
As I think that this cannot happen if one follows https://fatg3erman.github.io/RompR/Installation.html, I close this issue as I guess it was my fault. But I don't really understand how I ended up with broken permissions.
Thank you!
from rompr.
Related Issues (20)
- "Websocket Server" hyperlink on your "release page" is not working HOT 1
- No Lyrics? HOT 1
- PHP incompatibility on PHP > 8? HOT 19
- Unable to add tracks to saved playlist HOT 7
- No lyrics, even if files are tagged HOT 7
- Can't remove radio stations HOT 1
- Having RompR Backend Daemon running on background - sound like spyware HOT 1
- Enhancement for file browser: Download mp3 files HOT 1
- Enhancement for now playing: Direct link to playlist HOT 1
- Podcast database error prevents backend service from starting HOT 3
- New filter for browsing music collection HOT 1
- Mopidy - error adding non-local tracks via File Browser HOT 1
- Version 2.07 is "repackaged" version 2.06 HOT 1
- PHP Fatal error: Uncaught TypeError: fclose(): HOT 2
- Music collection update fails due to SQL error HOT 4
- Discoverator play media from local library KO? HOT 1
- Request for clarification: release 2.09 HOT 2
- Player 'Default' has stopped responding! displayed but still working Ok HOT 2
- add jump to album or artist fearure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rompr.