rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.38k stars 601 forks source link

Access denied to config.ini #2449

Open jlsturgeon opened 8 years ago

jlsturgeon commented 8 years ago

I'm having a lot of frustrations with the Synology package of Headphones. I recently completely reinstalled it because it was running so slowly as to be unuseable, but now it apparently cannot search Usenet Crawler. I get errors like this:

2015-12-15 14:44:32 ERROR Unable to connect to remote host because of a SSL error. It is likely that your system cannot verify the validityof the certificate. The remote certificate is either self-signed, or the remote server uses SNI. See the wiki for more information on this topic. 2015-12-15 14:44:31 INFO Parsing results from http://www.usenet-crawler.com using search term: John Prine Lost Dogs and Mixed Blessings

I used exactly the same settings (I screenshotted them!) for Usenet-Crawler as I had prior to the reinstall. Before the reinstall, MB was definitely snatching from Usenet-Crawler. Other programs, e.g. CP, are snatching from Usenet-Crawler with the same settings.

I found the issue https://github.com/rembo10/headphones/wiki/Troubleshooting#ssl-enabled-serversindexerssearch-providers-dont-work on the wiki, and have attempted to follow them. I have no trouble and receive no errors accessing http://www.usenet-crawler.com through my web browser, thought it does redirect me to https://www.usenet-crawler.com automatically. I tried changing the hostname to https rather than http in the settings but it made no difference. My Python version is 2.7.10-14 so I don't see an issue there. So I figured I needed to try the last step.

I used Putty to access my Diskstation so I could edit the config.ini file as per the instructions, but I got a permission denied error when I tried "vi /usr/local/headphones/var/config.ini" when logged in as administrator. The Busybox implementation is apparently kind of limited and doesn't seem to have the lsattr command so I can figure out why I'm getting the access denied error. Am I doing something wrong here?

jlsturgeon commented 8 years ago

I have not tried to SSH in again and see if I can now edit the config.ini file but my original problem seems to have disappeared. I tried disabling the usenet-crawler provider in the preferences, restarting MB, and then re-enabling the usenet-crawler provider. The above-mentioned error did not appear again when I did a forced search.

dv336699 commented 8 years ago

on your config.ini file set verify_ssl_cert = 0

jlsturgeon commented 8 years ago

Unfortunately I have no way to edit the config.ini file. I get an access denied error when I try "vi /usr/local/headphones/var/config.ini" via SSH, which is the only means I have for editing the config.ini file. That was the reason for my original post. I don't have the problem with usenet-crawler anymore, anyway.

dv336699 commented 8 years ago

Ah I got you now, what's the ownership of the file?