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

Unable to save options with Reverse Proxy #2752

Open
Rouzax opened this issue Oct 18, 2016 · 5 comments
Open

Unable to save options with Reverse Proxy #2752

Rouzax opened this issue Oct 18, 2016 · 5 comments

Comments

@Rouzax
Copy link

Rouzax commented Oct 18, 2016

I've always had this issue.
currently running: 5a598fe
Windows 2012R2 + IIS 8.5
Python Version: 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)]
SSL Version: OpenSSL 1.0.2h 3 May 2016

When I open Headphones through an IIS reverse proxy everything works except saving the options.
image

I have enabled the proxy setting in the config

http_proxy = 1

If I open headphones on the internal IP and port I'm able to save the settings. There are no entries in the debug log.
When I look in my IIS rewrite log I see the a 404 error.
(All personal data is removed)

#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2016-10-18 08:33:32 192.168.2.2 GET /configUpdate http_host=0.0.0.0&http_port=8181&http_username=USER&http_password=PASSWORD&https_cert=C%3A%5CGitHub%5Cheadphones%5Cserver.crt&https_key=C%3A%5CGitHub%5Cheadphones%5Cserver.key&api_enabled=1&api_key=APIKEY&search_interval=1440&download_scan_interval=5&libraryscan_interval=300&update_db_interval=24&mb_ignore_age=365&nzb_downloader=0&sab_host=&sab_username=&sab_password=&sab_apikey=&sab_category=&nzbget_host=&nzbget_username=nzbget&nzbget_password=&nzbget_category=&nzbget_priority=0&blackhole_dir=&download_dir=&usenet_retention=1500&torrent_downloader=2&torrentblackhole_dir=&magnet_links=1&transmission_host=&transmission_username=&transmission_password=&utorrent_host=http%3A%2F%2Flocalhost%3A10443&utorrent_username=USER&utorrent_password=PASSWORD&utorrent_label=Music&deluge_host=&deluge_cert=&deluge_password=&deluge_label=&deluge_done_directory=&numberofseeders=2&download_torrent_dir=C%3A%5C_Data%5CPrivate%5CuTorrent%5C_Proccessed%5CMusic&prefer_torrents=1&newznab_host=&newznab_apikey=&newznab_enabled=1&nzbsorg_hash=&omgwtfnzbs_uid=&omgwtfnzbs_apikey=&use_piratebay=1&piratebay_proxy_url=&piratebay_ratio=&kat_proxy_url=&kat_ratio=&waffles_uid=&waffles_passkey=&waffles_ratio=&use_rutracker=1&rutracker_user=USER&rutracker_password=PASSWORD&rutracker_ratio=&whatcd_username=&whatcd_password=&whatcd_ratio=&use_strike=1&strike_ratio=&torznab_host=&torznab_apikey=&torznab_enabled=1&use_oldpiratebay=1&oldpiratebay_url=&oldpiratebay_ratio=&use_mininova=1&mininova_ratio=&tquattrecentonze_user=&tquattrecentonze_password=&preferred_quality=0&lossless_bitrate_from=0&lossless_bitrate_to=0&preferred_bitrate=&preferred_bitrate_low_buffer=0&preferred_bitrate_high_buffer=0&ignored_words=&preferred_words=&required_words=&rename_files=1&correct_metadata=1&cue_split=1&cleanup_files=1&add_album_art=1&album_art_format=folder&destination_dir=&lossless_destination_dir=&boxcar_token=&email_enabled=1&email_from=headphones%40mgdn.nl&email_to=martijn.groothuis%40gmail.com&email_smtp_server=MAILSERVER&email_smtp_user=MAILUSER&email_smtp_password=PASSWORD&email_smtp_port=26&growl_host=&growl_password=&xbmc_enabled=1&xbmc_host=KODI&xbmc_username=kodi&xbmc_password=PASSWORD&xbmc_update=1&lms_host=&nma_apikey=&nma_priority=0&osx_notify_app=%2FApplications%2FHeadphones&plex_server_host=&plex_client_host=&plex_username=&plex_password=&plex_token=&prowl_keys=&prowl_priority=0&pushalot_apikey=&pushbullet_apikey=&pushbullet_deviceid=&pushover_keys=&pushover_priority=0&pushover_apitoken=&subsonic_host=&subsonic_username=&subsonic_password=&telegram_token=&telegram_userid=&folder_format=%24Artist%2F%24Year+-+%24Album&file_format=%24Disc.%24Track+-+%24Artist+-+%24Title&encoderlossless=1&delete_lossless_files=1&encoder=ffmpeg&encoder_multicore=1&encoder_multicore_count=0&encoderoutputformat=mp3&encodervbrcbr=cbr&encoderquality=2&bitrate=192&samplingfrequency=44100&advancedencoder=&xldprofile=&encoderoutputformat=mp3&encoder_path=&include_extras=1&compilation_temp=1&remix_temp=1&dj_mix_temp=1&compilation=1&remix=1&dj_mix=1&official_releases_only=1&autowant_manually_added=1&folder_permissions=0755&file_permissions=0644&cache_sizemb=512&log_dir=C%3A%5CGitHub%5Cheadphones%5Clogs&cache_dir=C%3A%5CGitHub%5Cheadphones%5Ccache&songkick_enabled=1&songkick_apikey=APIKEY&songkick_filter_enabled=1&songkick_location=clientip&mirror=custom&customhost=MUSICBRAINZ&customport=5000&customuser=&custompass=&customsleep=0&hpuser=&hppass= 443 - 192.168.2.254 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.3;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/53.0.2785.143+Safari/537.36 https://headphones.XXX.YYY/config 404 15 0 0

@jsaddiction
Copy link

I am also seeing this issue with reverse proxy and synology. I do not have http_proxy = 1 set. I can use heaphones as normal however I do see the "error" message. Logs/actions reflect as if there were no errors. Example. If I set an album to wanted I receive the "error" message above but the album is snatched and processed as expected and log shows no error. Every action results in an "error" message.

@sfunk1x
Copy link

sfunk1x commented Oct 23, 2016

#2571

@seanvree
Copy link

seanvree commented Nov 8, 2016

This issue is happening on Windows with proxy enabled or not.

@Outcats
Copy link

Outcats commented Jan 31, 2017

I'm another one with this issue - I've just installed Headphones today, when running it under the Localhost:8181/headphones (I've set it from this and this works without issue)

When I set up the reverse proxy via IIS (The same way I've set it up for all my other tools, which works without issue) I get the above error.

(I've attached an image from my IIS to show how it is configured.)

iis_1

I've set up for the "http_proxy" to be set to 1 (And saved and restarted Headphones after)

During all this time I can confirm that the connection via the localhost address works fine, it is just when under the reverse proxy.

Please see below the log I'm getting from IIS (Headphones isn't logging any errors, removed my address from the log):

2017-01-31 18:19:49 192.168.1.106 GET /headphones/configUpdate http_host=0.0.0.0&http_port=8181&http_username=&http_password=&launch_browser=1&https_cert=S%3A%5CWebsites%5CHeadphones%5Cserver.crt&https_key=S%3A%5CWebsites%5CHeadphones%5Cserver.key&api_key=7ca79e3fafb69b0130271e1f1dd00cc6&search_interval=1440&download_scan_interval=5&libraryscan_interval=300&update_db_interval=24&mb_ignore_age=365&nzb_downloader=0&sab_host=&sab_username=&sab_password=&sab_apikey=&sab_category=&nzbget_host=&nzbget_username=nzbget&nzbget_password=&nzbget_category=&nzbget_priority=0&blackhole_dir=&download_dir=&usenet_retention=1500&torrent_downloader=0&torrentblackhole_dir=&magnet_links=0&transmission_host=&transmission_username=&transmission_password=&utorrent_host=&utorrent_username=&utorrent_password=&utorrent_label=&deluge_host=&deluge_cert=&deluge_password=&deluge_label=&deluge_done_directory=&numberofseeders=10&download_torrent_dir=&prefer_torrents=0&newznab_host=&newznab_apikey=&newznab_enabled=1&nzbsorg_hash=&omgwtfnzbs_uid=&omgwtfnzbs_apikey=&piratebay_proxy_url=&piratebay_ratio=&kat_proxy_url=&kat_ratio=&waffles_uid=&waffles_passkey=&waffles_ratio=&rutracker_user=&rutracker_password=&rutracker_ratio=&whatcd_username=&whatcd_password=&whatcd_url=https%3A%2F%2Fwhat.cd&whatcd_ratio=&pth_username=&pth_password=&pth_url=https%3A%2F%2Fpasstheheadphones.me&pth_ratio=&strike_ratio=&torznab_host=&torznab_apikey=&torznab_enabled=1&oldpiratebay_url=&oldpiratebay_ratio=&mininova_ratio=&tquattrecentonze_user=&tquattrecentonze_password=&preferred_quality=0&lossless_bitrate_from=0&lossless_bitrate_to=0&preferred_bitrate=&preferred_bitrate_low_buffer=0&preferred_bitrate_high_buffer=0&ignored_words=&preferred_words=&required_words=&cue_split=1&album_art_format=folder&destination_dir=&lossless_destination_dir=&boxcar_token=&email_from=&email_to=&email_smtp_server=&email_smtp_user=&email_smtp_password=&email_smtp_port=25&growl_host=&growl_password=&xbmc_host=&xbmc_username=&xbmc_password=&lms_host=&nma_apikey=&nma_priority=0&osx_notify_app=%2FApplications%2FHeadphones&plex_server_host=&plex_client_host=&plex_username=&plex_password=&plex_token=&prowl_keys=&prowl_priority=0&pushalot_apikey=&pushbullet_apikey=&pushbullet_deviceid=&pushover_keys=&pushover_priority=0&pushover_apitoken=&subsonic_host=&subsonic_username=&subsonic_password=&telegram_token=&telegram_userid=&folder_format=%24Artist%2F%24Album+%5B%24Year%5D&file_format=%24Track+%24Artist+-+%24Album+%5B%24Year%5D+-+%24Title&encoderlossless=1&delete_lossless_files=1&encoder=ffmpeg&encoder_multicore_count=0&encoderoutputformat=mp3&encodervbrcbr=cbr&encoderquality=2&bitrate=192&samplingfrequency=44100&advancedencoder=&xldprofile=&encoderoutputformat=mp3&encoder_path=&autowant_upcoming=1&autowant_manually_added=1&folder_permissions=0755&file_permissions=0644&cache_sizemb=32&log_dir=S%3A%5CWebsites%5CHeadphones%5Clogs&cache_dir=S%3A%5CWebsites%5CHeadphones%5Ccache&songkick_enabled=1&songkick_apikey=nd1We7dFW2RqxPw8&songkick_location=&mirror=musicbrainz.org&customhost=localhost&customport=5000&customuser=&custompass=&customsleep=1&hpuser=&hppass= 443 - 81.174.168.84 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/51.0.2704.79+Safari/537.36+Edge/14.14393 https://{My Address}/headphones/config 404 15 0 19
2017-01-31 18:22:57 192.168.1.106 GET / - 80 - 199.249.223.77 Mozilla/5.0+(Windows+NT+6.3;+Win64;+x64;+rv:48.0)+Gecko/20100101+Firefox/48.0 - 303 0 0 433

@Rouzax
Copy link
Author

Rouzax commented Apr 3, 2017

I've recently migrated to Server 2016 and I can now save.
There is however one draw back, it now loads all pages really slow.
This seems to be because of script.js and jquery.dataTables.min.js
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants