Unable to access airsonic behind reverse proxy Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
onidius
Posts: 7
Joined: Tue Jun 09, 2020 4:29 am

Unable to access airsonic behind reverse proxy

Post by onidius »

Hi,

I had installed DietPi on a x86 computer for testing before installing on my Raspberry Pi 4 4GB
I was able to access services behind the reverse proxy without issue and after testing I decided to put it on my Pi

After installing I changed the user data directory to save to external HDD
Then installed Airsonic
When I try to access Airsonic remotely it shows a 503 error
I checked the reverse proxy logs and it states

Code: Select all

HTTPS: attempt to connect to 192.168.0.117:443 (192.168.0.117) failed
Seems strange that it worked on the x86 but not the Pi

Any ideas? I am running off little sleep so it is probably something really simple!!

Also, because it seems the connection fails I am finding it hard to find logs on the DietPi install. Please let me know if anyone can think of anything to do with this

Kind regards,
Ben
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Unable to access airsonic behind reverse proxy

Post by Joulinar »

Hi,

not sure how you setup your revers proxy but it seems it's trying to connect to 192.168.0.117 on port 443
Best to my knowledge airsonic is using port 8080 by default.
Did you tried to access airsonic locally without proxy to see if it is working in general?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
onidius
Posts: 7
Joined: Tue Jun 09, 2020 4:29 am

Re: Unable to access airsonic behind reverse proxy

Post by onidius »

Sorry, wrong log line

Code: Select all

HTTPS: attempt to connect to 192.168.0.117:8080 (192.168.0.117) failed
I am installing Nextcloud too in order to test that as well
onidius
Posts: 7
Joined: Tue Jun 09, 2020 4:29 am

Re: Unable to access airsonic behind reverse proxy

Post by onidius »

Joulinar wrote: Fri Jan 22, 2021 3:32 pm Hi,

not sure how you setup your revers proxy but it seems it's trying to connect to 192.168.0.117 on port 443
Best to my knowledge airsonic is using port 8080 by default.
Did you tried to access airsonic locally without proxy to see if it is working in general?
Yes, it does work locally
onidius
Posts: 7
Joined: Tue Jun 09, 2020 4:29 am

Re: Unable to access airsonic behind reverse proxy

Post by onidius »

OK, I think it may be a config error within the reverse proxy
I will check and update when I confirm
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Unable to access airsonic behind reverse proxy

Post by Joulinar »

Are you sure airsonic is reachable via HTTPS??

Code: Select all

HTTPS: attempt to connect to 192.168.0.117:8080 (192.168.0.117) failed
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
onidius
Posts: 7
Joined: Tue Jun 09, 2020 4:29 am

Re: Unable to access airsonic behind reverse proxy

Post by onidius »

Now, I have gotten Airsonic working by trying port 8080 and http rather than https. Allowing my reverse proxy to do the SSL heavy lifting

I got Nextcloud installed and setup a new entry in my reverse proxy. The system once again failed 443 but when I changed it to http://<localIP> it seems to work

Is 443 blocked in DietPi?
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Unable to access airsonic behind reverse proxy

Post by Joulinar »

No, but you did not activate HTTPS on your NextCloud server I guess.

Usually SSL handling is done by the proxy while the systems internal reachable on http
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
onidius
Posts: 7
Joined: Tue Jun 09, 2020 4:29 am

Re: Unable to access airsonic behind reverse proxy

Post by onidius »

Joulinar wrote: Fri Jan 22, 2021 4:04 pm No, but you did not activate HTTPS on your NextCloud server I guess.

Usually SSL handling is done by the proxy while the systems internal reachable on http
Ok then, my bad!! I will set all services as http in the proxy in future

By the way, loving this environment
You've all done amazing work

Thank you
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Unable to access airsonic behind reverse proxy

Post by Joulinar »

one question. What kind of revers proxy you are using?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply