Jump to content

Problems with Kodi and emby server behind reverse proxy auto sync


Clems6

Recommended Posts

Clems6

Hello guys,

 

Im writing you because i have some troubles configuring emby-server on my new dedicated server. I had an old server before and i decided to replace it by a new one.

I used the same config files as the old one (just replaced ip adress by new server and some other things). It was working perfectly on the old server.

 

On the new one, it's more complicated. I have troubles with auto sync in kodi. Kodi just won't auto sync the library :/

Access my emby server through webbrowser with https://domain.name is working great with ssl and working cert.

Connecting the server and play content --> Works

Manual sync --> Works

 

The thing is... every time i wan't to be able to see the new content, i have to manual sync or restart kodi otherwise it's not showing the new content

 

Here is the config of reverse proxy, I used apache2....

<IfModule mod_ssl.c>
  <VirtualHost 35.122.150.69:443>

        ServerName servername
        ServerAlias servername
        DocumentRoot /var/www/domain/
        CustomLog /var/log/apache2/secure_access.log combined

    <proxy *>
        AddDefaultCharset off
        Order Allow,Deny
        Allow from all
    </proxy>

 ProxyPreserveHost On
    ProxyRequests Off

    ProxyPass "/embywebsocket" "ws://127.0.0.1:8096/embywebsocket"
    ProxyPassReverse "/embywebsocket" "ws://127.0.0.1:8096/embywebsocket"

    ProxyPass "/" "http://127.0.0.1:8096/"
    ProxyPassReverse "/" "http://127.0.0.1:8096/"


        SSLEngine on
        SSLCertificateFile /etc/ssl/certs/cert1.crt
        SSLCertificateKeyFile /etc/ssl/private/cert1.key
        SSLCertificateChainFile /etc/ssl/certs/GandiStandardSSLCA2.pem
        SSLVerifyClient None


  </VirtualHost>
</IfModule>

As i said, its perfectly the same as the old working config file...

 

But i have an error in apache2 error.log file ...

AH01144: No protocol handler was valid for the URL /embywebsocket. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

I don't understand why i got this error. Didn't have it on the old server... I saw that it can be a mssing proxy mod but they seems to be all activated...

 

Proxy Mods enabled :

root@server:/etc/apache2/mods-enabled# ls -la

 

proxy_ajp.load -> ../mods-available/proxy_ajp.load
proxy_balancer.conf -> ../mods-available/proxy_balancer.conf
proxy_balancer.load -> ../mods-available/proxy_balancer.load
proxy.conf -> ../mods-available/proxy.conf
proxy_fcgi.load -> ../mods-available/proxy_fcgi.load
proxy_http.load -> ../mods-available/proxy_http.load
proxy.load -> ../mods-available/proxy.load

 

and of course...

 

ssl.conf -> ../mods-available/ssl.conf

ssl.load -> ../mods-available/ssl.load

 

The only thing who doesn't work is auto sync with kodi...

 

Please can you help

 

Thanks in advance.

Clems6

Edited by Clems6
Link to comment
Share on other sites

dcrdev

You need mod_proxy_wstunnel , which you do not appear to have.

 

Source: I have been using Apache for reverse proxying Emby and other things for years.

  • Like 1
Link to comment
Share on other sites

pir8radio

You need mod_proxy_wstunnel , which you do not appear to have.

 

Source: I have been using Apache for reverse proxying Emby and other things for years.

 

There you go..   :)   I'm an nginx kind of guy.     hopefully that was what they needed!

Link to comment
Share on other sites

Clems6

Thirst of all,

 

Thanks you for your answers and sorry for the answer delay.

 

@@dcrdev Thanks a lot your answer fixed my problem perfectly and now auto sync seems to be working.

 

Thanks guys

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...