twinkybot 3 Posted September 10, 2017 Share Posted September 10, 2017 Hello, I moved from Apache to Nginx and now I am noticing a veriy weird behaviour in the playback. If I do a random mix on a genre or a mix on an artist the first track is played over and over. I can hit next song but with the next song the same happens. Can somebody give me a hint. Here is my config upstream php-handler { user www-data; server { server { listen [::]:443 ssl http2; listen 443 ssl http2; server_name <sudomain>.<domain>; include /etc/nginx/conf.d/ssl.conf; #including key file etc. #the follwing lines have been commented #I wasn't sure if they even are necessary as I found these in an example config for nginx #resolver 8.8.8.8 8.8.4.4 valid=300s; #resolver_timeout 5s; #ssl_stapling_verify on; #keepalive_timeout 180; add_header Strict-Transport-Security max-age=31536000; client_max_body_size 1024M; location / { # Send traffic to the backend proxy_pass http://127.0.0.1:8096; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $remote_addr; proxy_set_header X-Forwarded-Protocol $scheme; proxy_redirect off; # Send websocket data to the backend as well proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } Nginx cofig: user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; # server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types; default_type application/octet-stream; ## # SSL Settings ## # removed TLSv1 ssl_protocols TLSv1.2; # Dropping SSLv3, ref: POODLE ssl_prefer_server_ciphers on; ## # Logging Settings ## access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; ## # Gzip Settings ## gzip on; gzip_disable "msie6"; # gzip_vary on; # gzip_proxied any; # gzip_comp_level 6; # gzip_buffers 16 8k; # gzip_http_version 1.1; # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; ## # Virtual Host Configs ## include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } #mail { # # See sample authentication script at: # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript # # # auth_http localhost/auth.php; # # pop3_capabilities "TOP" "USER"; # # imap_capabilities "IMAP4rev1" "UIDPLUS"; # # server { # listen localhost:110; # protocol pop3; # proxy on; # } # # server { # listen localhost:143; # protocol imap; # proxy on; # } #} Thanks. Link to comment Share on other sites More sharing options...
Luke 37179 Posted September 10, 2017 Share Posted September 10, 2017 Hi @@twinkybot, never heard of this before. @@pir8radio, have you seen this? Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted September 10, 2017 Share Posted September 10, 2017 While I don't use Emby for music, I can say that this behavior is not exhibited with video. Link to comment Share on other sites More sharing options...
pir8radio 1292 Posted September 10, 2017 Share Posted September 10, 2017 (edited) @@twinkybot to be clear you went to an artist, then selected "INSTANT MIX" the first song played fine but when it was supposed to move to the second song the first played again? My setup is not doing this, if this is what you are talking about. Here is the config I have built: https://emby.media/community/index.php?/topic/48236-setting-up-emby-behind-a-reverse-proxy-nginx/?p=457670 You are more than welcome to log into my server, and see if you have the same issue. Info found here: https://emby.media/community/index.php?/topic/19457-help-me-test-my-emby-server/?p=188745 Post your findings. I'll have time later tomorrow to look over your config. EDIT: I just noticed the title says "DLNA PLAYBACK" dlna would be on a local network only not going through the nginx reverse proxy. So maybe you need to clear up what exactly you are doing to get this issue first then we can try to figure out whats going on? I probably just misunderstood... Edited September 10, 2017 by pir8radio Link to comment Share on other sites More sharing options...
twinkybot 3 Posted September 11, 2017 Author Share Posted September 11, 2017 @@pir8radio Yes you are correct. Either "Instant Mix" (I didn't know the english term ) or random playback. For both the first song is played then instead of playing a new one it starts all over. I can like I said hit next song and this will jump to another one and play it endlessly over and over again. To the DLNA topic: Hm, chanign from Apache to Nginx is the only thing I did. I have my laptop as a playback resouce I select my A/V receiver then I click either on random playback on an artist/genre or this Instant Mix, which leads to the described behaviour. And as I said it worked just fine before switching to Nginx. So maybe I put the blame there wrongly. Link to comment Share on other sites More sharing options...
twinkybot 3 Posted September 11, 2017 Author Share Posted September 11, 2017 (edited) So now I took your Congif and adapted mine accordingly.Didn't help. But while trying to figure out what happens at an end of an song. I clicked to the last couple seconds of the song and then instead of skipping to the next it repeated the ~5secs all over again See attached log at ~11:42 Edited February 21, 2018 by twinkybot Link to comment Share on other sites More sharing options...
twinkybot 3 Posted September 11, 2017 Author Share Posted September 11, 2017 One question more: If I have a server config file for subdomain A and one for subdomain emby configured with server { listen.... .... server_name <subdomain A>.<main> location / { .... } } and server { listen.... .... server_name emby.<main> location / { .... } } Open the respectiv data / service? But right now Emby highjacks both. Link to comment Share on other sites More sharing options...
pir8radio 1292 Posted September 12, 2017 Share Posted September 12, 2017 One question more: If I have a server config file for subdomain A and one for subdomain emby configured with server { listen.... .... server_name <subdomain A>.<main> location / { .... } } and server { listen.... .... server_name emby.<main> location / { .... } } Open the respectiv data / service? But right now Emby highjacks both. Post the actual chunks, you can change the domain name if you want. Link to comment Share on other sites More sharing options...
pir8radio 1292 Posted September 12, 2017 Share Posted September 12, 2017 @@Luke, I don't enable or use DLNA, sounds like he is using a dlna client and selecting the instant mix to get this issue. Maybe test that? I don't think nginx would have anything to do with DLNA though so maybe this is a different issue. Link to comment Share on other sites More sharing options...
Luke 37179 Posted September 12, 2017 Share Posted September 12, 2017 what happens if you play an album? Link to comment Share on other sites More sharing options...
twinkybot 3 Posted September 12, 2017 Author Share Posted September 12, 2017 (edited) Hi all, yesterday I had one productiv free time So to give you a bit more background. I had installed on Sunday a Mattermost server on the same machine. Everything worked fine on this day. Everything is accessed via subdomains e.g. <mattermost>.<main>.com, <emby>.<main>.com. For this I created on certificat via Letsencrypt and converted this certificat containing Emby's domain into a pfx file. On Monday the issue started as my server goes to sleep over night. After restart Mattermost was not reachable anymore. While working on this I listend to music and noticed above mentioned behaviour. Now to get mattermost running I had a long chat with someone from their community. In the end we did a fresh install of Mattermost to see if it will work, which it did. And after applying the certificates it broke again. While I had the base configuration and was fiddling around with it, I wanted to listen to some music again and suddenly I noticed that Emby started working as it should! Hopefully I will have time to test this next weekend again to see if there really is a connection. Althoug I have to confess I cannot see any reason why this is happening. Edited September 12, 2017 by twinkybot Link to comment Share on other sites More sharing options...
Luke 37179 Posted September 12, 2017 Share Posted September 12, 2017 Thanks for the feedback. Link to comment Share on other sites More sharing options...
twinkybot 3 Posted September 14, 2017 Author Share Posted September 14, 2017 Back again. I am havin the issue again. Now I noticed that it happens with the A/V receiver but not for example if I select from my Laptop my mobile phone as playback resource. There it is working without the loop. Can the profile of the A/V receiver be an issue? Link to comment Share on other sites More sharing options...
Luke 37179 Posted September 14, 2017 Share Posted September 14, 2017 What model A/V receiver? Link to comment Share on other sites More sharing options...
twinkybot 3 Posted September 15, 2017 Author Share Posted September 15, 2017 Aah sorry. As this is from my side a one to one relation I forgot. That from your side it is one to millions It is the Marantz SR700. Link to comment Share on other sites More sharing options...
twinkybot 3 Posted September 17, 2017 Author Share Posted September 17, 2017 And when pausing playback and restarting it, it jumps to the beginning. And trying to set a position also does not work. On mp3 files via DLNA. Link to comment Share on other sites More sharing options...
Luke 37179 Posted September 17, 2017 Share Posted September 17, 2017 Ok, unfortunately I do not have a marantz for testing so I cannot personally work out what the issue is, but i have tested on all my testing devices and cannot reproduce the problem. I will keep testing though. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now