Novik / ruTorrent

Yet another web front-end for rTorrent
Other
2.03k stars 413 forks source link

Can't access rtorrent: Bad response from server: (500 [error,getplugins]) Internal Server Error #1561

Closed bernid closed 7 years ago

bernid commented 7 years ago

Hi. I would like to try Rutorrent 3.8. (Rutorrent 3.7 works fine) I downloaded and unpacked 'Novik-ruTorrent-v3.8-96-gab3c335.tar.gz' but when I click Rutorrent page it open without torrents with message: 'Bad response from server: (500 [error,getplugins]) Internal Server Error' Apache logs shows me:

[Tue Oct 03 08:51:14.040961 2017] [mpm_event:notice] [pid 2286:tid 119695275873920] AH00489: Apache/2.4.27 (Unix) OpenSSL/1.0.2l PHP/5.3.27 configured -- resuming normal operations
[Tue Oct 03 08:51:14.041070 2017] [core:notice] [pid 2286:tid 119695275873920] AH00094: Command line: '/usr/sbin/httpd'
[Tue Oct 03 08:51:17.913450 2017] [:error] [pid 29004:tid 119694998775552] [client 192.168.0.10:50312] PHP Warning:  fopen(/srv/web/rutorrent/share/settings/rtorrent.dat.tmp) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /srv/web/rutorrent/php/cache.php on line 40, referer: http://192.168.0.1:5001/
[Tue Oct 03 08:51:18.034934 2017] [:error] [pid 29004:tid 119694998775552] [client 192.168.0.10:50312] PHP Warning:  fopen(/srv/web/rutorrent/share/settings/loginmgr.dat.tmp) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /srv/web/rutorrent/php/cache.php on line 40, referer: http://192.168.0.1:5001/
[Tue Oct 03 08:51:18.077911 2017] [:error] [pid 29004:tid 119694998775552] [client 192.168.0.10:50312] PHP Warning:  getdate() [<a href='function.getdate'>function.getdate</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /srv/web/rutorrent/php/settings.php on line 269, referer: http://192.168.0.1:5001/
[Tue Oct 03 08:51:18.078135 2017] [:error] [pid 29004:tid 119694998775552] [client 192.168.0.10:50312] PHP Warning:  mktime() [<a href='function.mktime'>function.mktime</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /srv/web/rutorrent/php/settings.php on line 272, referer: http://192.168.0.1:5001/
[Tue Oct 03 08:51:18.080183 2017] [:error] [pid 29004:tid 119694998775552] [client 192.168.0.10:50312] PHP Warning:  fopen(/srv/web/rutorrent/share/settings/rss/cache/info.tmp) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /srv/web/rutorrent/php/cache.php on line 40, referer: http://192.168.0.1:5001/
[Tue Oct 03 08:51:18.081360 2017] [:error] [pid 29004:tid 119694998775552] [client 192.168.0.10:50312] PHP Warning:  getdate() [<a href='function.getdate'>function.getdate</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /srv/web/rutorrent/php/settings.php on line 269, referer: http://192.168.0.1:5001/
[Tue Oct 03 08:51:18.081538 2017] [:error] [pid 29004:tid 119694998775552] [client 192.168.0.10:50312] PHP Warning:  mktime() [<a href='function.mktime'>function.mktime</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /srv/web/rutorrent/php/settings.php on line 272, referer: http://192.168.0.1:5001/
[Tue Oct 03 08:51:18.085760 2017] [:error] [pid 29004:tid 119694998775552] [client 192.168.0.10:50312] PHP Warning:  fopen(/srv/web/rutorrent/share/settings/scheduler.dat.tmp) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /srv/web/rutorrent/php/cache.php on line 40, referer: http://192.168.0.1:5001/
[Tue Oct 03 08:51:18.126713 2017] [:error] [pid 29004:tid 119694998775552] [client 192.168.0.10:50312] PHP Parse error:  syntax error, unexpected '[' in /srv/web/rutorrent/plugins/extsearch/engines/Torrent411.php on line 179, referer: http://192.168.0.1:5001/

Rutorrent configuration file is as follows:

Listen *:5001

<VirtualHost *:5001>
        DocumentRoot /srv/web/rutorrent
        Include /etc/httpd/conf/conf.d/php*.conf
        DirectoryIndex index.html index.php
        LoadModule proxy_module /usr/lib/apache/mod_proxy.so
        LoadModule proxy_scgi_module /usr/lib/apache/mod_proxy_scgi.so
        <Directory /srv/web/rutorrent>
        </Directory>
        ProxyPass /RPC2 scgi://localhost:5000/
</VirtualHost>

I am not experienced Linux user. I tried to find solution in the internet but without success. Please advice what to do. Thanks,

bernid commented 7 years ago

Hi, I downloaded the newest git version from 6th Oct and this 3.8 version works fine for me. However I receive warnings. See apache error logs:

[Fri Oct 06 07:33:10.002773 2017] [mpm_event:notice] [pid 3275:tid 123309072864896] AH00489: Apache/2.4.27 (Unix) OpenSSL/1.0.2l PHP/5.3.27 configured -- resuming normal operations
[Fri Oct 06 07:33:10.002882 2017] [core:notice] [pid 3275:tid 123309072864896] AH00094: Command line: '/usr/sbin/httpd'
[Fri Oct 06 07:33:16.488492 2017] [:error] [pid 23510:tid 123308793341696] [client 192.168.0.10:59733] PHP Warning:  getdate() [<a href='function.getdate'>function.getdate</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /srv/web/rutorrent/php/settings.php on line 269, referer: http://192.168.0.1:5001/
[Fri Oct 06 07:33:16.488716 2017] [:error] [pid 23510:tid 123308793341696] [client 192.168.0.10:59733] PHP Warning:  mktime() [<a href='function.mktime'>function.mktime</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /srv/web/rutorrent/php/settings.php on line 272, referer: http://192.168.0.1:5001/

How to fix this and get rid of this warnings? I have the same warnings in the 3.7 version.

Novik commented 7 years ago

How to fix this and get rid of this warnings?

Set variable date.timezone to the correct value, may be? http://php.net/manual/en/datetime.configuration.php

bernid commented 7 years ago

Thank you. I uncommented and complete 'date.timezone = ' line in the php.ini file and warnings disappeared :-)

elrengo81 commented 6 years ago

Hi, I have the same issue. I'm using a rtorrentopkg 3.8.1 installed on Asus AC3100 with Merlin firmware. I do not know how but I see these error: "Bad response from server: (500 [error,getplugins]) Internal Server Error" after uninstall all plugins works fine. When Install again "rutorrent-plugin-_task" the issue apear again. Could I resolve? Thanks in advance