Bad Request Invalid Host Error

Hi,

I don’t know why I have this problem since a few days… Everything was just smooth and now I have this error when I try to connect from outside.
Sonarr is working on my Ubuntu server.
I’ve checked the port forwarding and it’s ok. I’ve restart, try to update (it was already up to date) well nothing seems working. And if I’m connecting on my network, everything is working great… I’ve couchpotato and headphone that are working, but sonarr is giving me a pain in the a**. Any ideas ? Help ? will be appreciate.

Thanks !

We need a lot more information to begin troubleshooting it, right now I have no clue where its happening or under what circumstances.

When do you get this error?
What do the logs say?
What version of Sonarr?
Which version of mono?

Oups, sorry about that !
I have the error when I try to connect to the web server from outside (with my IP or the dynamic DNS), inside my network, it’s working

Mono version 3.10.0
Sonaar 2.0.0.285

And for the log, what log do you want (and how do I access it ?)

System -> Logs -> Files in Sonarr.

Does anything load when you try to open the site externally?
Is your router properly port forwarded?

Nothing about this error in the log file… When I try to open the site externally I have the error Bad Request (Invalid host). The router is ok (couchpotato for exemple is working (on a different port off course)) and I’ve change the port (just to check) and the error is the same… Really strange because everything was working great…

22:10:31.0|Info|LifecycleService|Restart requested.
15-2-25 22:10:37.0|Info|Bootstrap|Starting NzbDrone - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.2850
15-2-25 22:10:39.3|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone.Console
15-2-25 22:10:39.3|Debug|ProcessProvider|Found 1 processes with the name: NzbDrone
15-2-25 22:10:39.4|Info|MigrationLogger|*** Migrating data source=/home/gana/.config/NzbDrone/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
15-2-25 22:10:39.5|Debug|MigrationLogger|Took: 00:00:00.0952448
15-2-25 22:10:39.5|Info|MigrationLogger|*** Migrating data source=/home/gana/.config/NzbDrone/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
15-2-25 22:10:39.5|Debug|MigrationLogger|Took: 00:00:00.0065105
15-2-25 22:10:39.5|Info|Router|Application mode: Interactive
15-2-25 22:10:39.5|Debug|Router|Console selected
15-2-25 22:10:39.6|Info|OwinHostController|Listening on the following URLs:
15-2-25 22:10:39.6|Info|OwinHostController| http://192.168.1.20:8989/
15-2-25 22:10:39.6|Info|OwinHostController| http://localhost:8989/
15-2-25 22:10:39.6|Debug|OwinAppFactory|Attaching NzbDroneVersionMiddleWare to host
15-2-25 22:10:39.6|Debug|OwinAppFactory|Attaching SignalRMiddleWare to host
15-2-25 22:10:39.6|Debug|OwinAppFactory|Attaching NancyMiddleWare to host
15-2-25 22:10:39.7|Info|NancyBootstrapper|Starting NzbDrone API
15-2-25 22:10:39.7|Trace|EventAggregator|Publishing ApplicationStartedEvent
15-2-25 22:10:39.9|Trace|EventAggregator|ApplicationStartedEvent -> DownloadClientFactory
15-2-25 22:10:39.9|Debug|DownloadClientFactory|Initializing Providers. Count 8
15-2-25 22:10:40.0|Trace|EventAggregator|ApplicationStartedEvent <- DownloadClientFactory
15-2-25 22:10:40.0|Trace|EventAggregator|ApplicationStartedEvent -> IndexerFactory
15-2-25 22:10:40.0|Debug|IndexerFactory|Initializing Providers. Count 11
15-2-25 22:10:40.0|Trace|EventAggregator|ApplicationStartedEvent <- IndexerFactory
15-2-25 22:10:40.0|Trace|EventAggregator|ApplicationStartedEvent -> ReconfigureLogging
15-2-25 22:10:41.5|Info|SceneMappingService|Updating Scene mappings
15-2-25 22:10:42.5|Info|HousekeepingService|Running housecleaning tasks
15-2-25 22:10:45.6|Info|Database|Vacuuming database
15-2-25 22:10:46.1|Info|Database|Database Compressed
15-2-25 22:11:00.5|Warn|GlobalExceptionHandlers|SignalR Heartbeat error.
15-2-25 22:11:10.4|Info|RssSyncService|Starting RSS Sync
15-2-25 22:11:11.6|Info|DownloadDecisionMaker|Processing 100 reports
15-2-25 22:11:12.1|Info|RssSyncService|RSS Sync Completed. Reports found: 100, Reports grabbed: 0
15-2-25 22:26:15.2|Info|RssSyncService|Starting RSS Sync
15-2-25 22:26:16.2|Info|DownloadDecisionMaker|Processing 100 reports
15-2-25 22:26:16.5|Info|RssSyncService|RSS Sync Completed. Reports found: 100, Reports grabbed: 0

Do you have your Bind Address set to 192.168.1.20? That may cause the web server to reject the request because you’re using a different external IP, setting Bind Address to * should fix that.

Ok I’ve fix the problem, it was a user right…

Thks for the help