Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 (edited) 3 minutes ago, rbjtech said: Possibly related to CORS ? (Cross-origin resource sharing (CORS) is a browser mechanism which enables controlled access to resources located outside of a given domain.) If you use the plugin within the container/vm itself (if possible) - do the images then show ? Nope no big bright yellow text in the console lol Edited March 29, 2023 by Cheesegeezer 1 Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 2 minutes ago, rbjtech said: Possibly related to CORS ? (Cross-origin resource sharing (CORS) is a browser mechanism which enables controlled access to resources located outside of a given domain.) If you use the plugin within the container/vm itself (if possible) - do the images then show ? The only way I can access the container is via webapp or ssh, may nas is headless. Other plugins seem to work ok in bridged mode. I can add "network_mode: host" to my stack and rebuild the container to see if that helps. Link to comment Share on other sites More sharing options...
rbjtech 4287 Posted March 29, 2023 Share Posted March 29, 2023 1 minute ago, Junglejim said: The only way I can access the container is via webapp or ssh, may nas is headless. Other plugins seem to work ok in bridged mode. I can add "network_mode: host" to my stack and rebuild the container to see if that helps. I wouldn't change it for the moment - the Plugin needs to accomodate Docker for sure. I'm sure Vic and Dave will have a fix to try.. Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 (edited) 11 minutes ago, Cheesegeezer said: Ahhh i see, yeah it’s attempting to get address from 172.xxx etc. Hmmm, that looks like a bug and should use the manual address in the serverinfo shown in the console. As it then getsa new address. Is that your remote ip for the server? 192.168.20.100 is the static IP on my network that I access my NAS with, from there each container is accessed via its port 8096 in this case. With bridged mode it then usually gets directed the the docker container ip 172.xxx.xxx.xxx Edited March 29, 2023 by Junglejim Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 (edited) 2 hours ago, rbjtech said: I wouldn't change it for the moment - the Plugin needs to accomodate Docker for sure. I'm sure Vic and Dave will have a fix to try.. it should be easy to fix, its just what address is being used. There are 2 addresses available in Jim’s console and it’s choosing the wrong one. @Junglejimis that 172.xxx your emby remote IP? Edited March 29, 2023 by GrimReaper Hid remote IP Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 2 minutes ago, Junglejim said: 192.168.20.100 is the static IP on my network that I access my NAS with, from there each container is accessed via its port 8096 in this case. With bridged mode it than usually gets directed the the docker container ip 172.xxx.xxx.xxx Right might need you to do some testing then. I may need some refactoring to use the ApiClient. GetImages and let deal with the backend rather than sending raw api calls. I’ll check the code now. Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 (edited) 2 hours ago, Cheesegeezer said: it should be easy to fix, its just what address is being used. There are 2 addresses available in Jim’s console and it’s choosing the wrong one. @Junglejimis that 172.xxx your emby remote IP? As you can see by the webapp address "http://192.168.20.100:8096/web/index.html#!/dashboard" that's how I access emby. In bridged mode emby will show the internal docker container address 172.xxx.xxx.xxx. If I change the container stack to use "network_mode: host" (I used that mode before ), emby will show the real address 192.168.20.100. I hope that's not too confusing. I think I can set ip in emby's network settings to but I've never had to do that. The 172.xxx crap has never bothered me, I know what the real address is Also there is no way I can access "http://127.21.0.2:8096/" directly on my local network, that's a docker container IP. Edited March 29, 2023 by GrimReaper Server details removed Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 21 minutes ago, Junglejim said: As you can see by the webapp address "http://192.168.20.100:8096/web/index.html#!/dashboard" that's how I access emby. In bridged mode emby will show the internal docker container address 172.xxx.xxx.xxx. If I change the container stack to use "network_mode: host" (I used that mode before ), emby will show the real address 192.168.20.100. I hope that's not too confusing. I think I can set ip in emby's network settings to but I've never had to do that. The 172.xxx crap has never bothered me, I know what the real address is Also there is no way I can access "http://127.21.0.2:8096/" directly on my local network, that's a docker container IP. perfect so if you were to copy the address for an image in the console that was red and paste that into the addressbar and then change the physical address to 192.168.blah do you get an image Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 4 minutes ago, Cheesegeezer said: perfect so if you were to copy the address for an image in the console that was red and paste that into the addressbar and then change the physical address to 192.168.blah do you get an image Yep Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 @Junglejimso i can see the code that is getting confused by your "bridged mode". server_url = (server_data.IsLocalServer) ? server_data.LocalAddress : server_data.RemoteAddress; server_url += "/"; console.log("=== Server url = ", server_url); The url is returning a remote address rather than the local address. I'm sure Vic doesn't wasn't a toggle but it might be worth adding it to "force" Use local IP's Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 2 minutes ago, Junglejim said: Yep Excellent, just need to figure out an elegant way to hand this. You may be one of the few edge cases, so i'll propose some changes to vic and see if he is happy with it. This is his baby after all!! 1 Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 Just now, Cheesegeezer said: Excellent, just need to figure out an elegant way to hand this. You may be one of the few edge cases, so i'll propose some changes to vic and see if he is happy with it. This is his baby after all!! Cheers mate! I can use "network_mode: host" with the container and I'm sure that will fix it, that's not a prob. It would be nice to get it to play nice with docker though, not everyone will like to use host mode, I'm just local so all good. Lets see what Vic thinks. Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 (edited) 4 minutes ago, Junglejim said: Cheers mate! I can use "network_mode: host" with the container and I'm sure that will fix it, that's not a prob. It would be nice to get it to play nice with docker though, not everyone will like to use host mode, I'm just local so all good. Lets see what Vic thinks. I'm gonna fire an old version 0.0.0.8 as this is the latest version i have. and i'll call it 0.0.0.8jj for you to test to see if it fixes it. standby..... EDIT: YOUR TEST VERSION WILL BE 0.0.0.1 Edited March 29, 2023 by Cheesegeezer Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 8 minutes ago, Junglejim said: Cheers mate! I can use "network_mode: host" with the container and I'm sure that will fix it, that's not a prob. It would be nice to get it to play nice with docker though, not everyone will like to use host mode, I'm just local so all good. Lets see what Vic thinks. Does this description read correctly? Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 3 minutes ago, Cheesegeezer said: Does this description read correctly? Yeah looks good, maybe change "Home" to "Host" 1 Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 (edited) NOTE: THIS DLL IS VERSION 0.0.0.1 AND IS ONLY A TEST FOR DOCKER USERS. 1. adds a button to force local IP address use. Please do not install ---- for JungleJim only to test Jim, refresh your browser after switching the option on - CTRL+F5 Thanks Edited March 29, 2023 by Cheesegeezer Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 8 minutes ago, Cheesegeezer said: NOTE: THIS DLL IS VERSION 0.0.0.1 AND IS ONLY A TEST FOR DOCKER USERS. 1. adds a button to force local IP address use. Please do not install ---- for JungleJim only to test Jim, refresh your browser after switching the option on - CTRL+F5 Thanks Emby.Bulky.dll 242.5 kB · 1 download unfortunately that didn't work.. Give me a couple of minutes and I'll give "host" mode a go.. Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 Just now, Junglejim said: unfortunately that didn't work.. Give me a couple of minutes and I'll give "host" mode a go.. no probs i'll need to dig deep to get that manual address 2 secs Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 As I thought "Host" mode with the container works, even without the new setting.. So its defo the bridged mode that's tripping it up. 1 Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 7 minutes ago, Cheesegeezer said: no probs i'll need to dig deep to get that manual address 2 secs No probs, it's really easy to update the container stack, only takes a couple of seconds. Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 (edited) I think i have an elegant solution here Jim. No settings and hopefully will work now for everyone. Test this out - still 0.0.0.1 ONLY FOR JUNGLEJIM TO TEST - NOT A PUBLIC RELEASE Edited March 29, 2023 by Cheesegeezer 1 Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 remember to clear browser cache Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 4 minutes ago, Cheesegeezer said: I think i have an elegant solution here Jim. No settings and hopefully will work now for everyone. Test this out - still 0.0.0.1 Emby.Bulky.dll 242 kB · 1 download Ok, I'll revert the container to bridged and give it a whirl. back in 5... 1 Link to comment Share on other sites More sharing options...
Junglejim 352 Posted March 29, 2023 Share Posted March 29, 2023 11 minutes ago, Cheesegeezer said: I think i have an elegant solution here Jim. No settings and hopefully will work now for everyone. Test this out - still 0.0.0.1 ONLY FOR JUNGLEJIM TO TEST - NOT A PUBLIC RELEASE Success mate! Great work!!! Thanks sooo much, lets hope Vic likes the changes. 1 Link to comment Share on other sites More sharing options...
Cheesegeezer 3087 Posted March 29, 2023 Share Posted March 29, 2023 Just now, Junglejim said: Success mate! Great work!!! Thanks sooo much, lets hope Vic likes the changes. Excellent Jim. Thanks so much for your help. I'll be speaking with Vic on Teams when he rises up... so we can get these changes implemented. Don't use this version for testing as vic has another rev out which has already fixed some issues. 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