-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OBS - Failed to connect to server when running in docker #403
Comments
I looked into this and am stumped myself as well... For whatever reason it just seems to be refusing to connect to the server. I'm poking around the backend to trace out where this listener should be started and why its not responding to RTMP traffic. |
EDIT: Okay I think I see what's happening here... Ngnix has configuration files written to work with Nodetube, but is not actually installed or setup with the image... IE we are missing the actual server to respond to the request. In the build directory, see furthermore, there is no mention of Ngnix in the docker-compose, but that's an easy fix. |
Do you think you can fix it? It would be nice to have a working docker version. Just |
I plan on it, its a little more complicated then adding a ngnix-rtmp docker container because nodetube expects the stream to be a readable file being created in uploads... Ill see what i can do to remedy that design. EDIT: very incorrect. the content from HLS is forwarded to the nodetube service directly and authenticated there. recordings is its own directory and separate from uploads entirely. |
Okay. For docker, you can get the source from my fork for now and test it. https://github.com/l1ghtsword/nodetube.git There was some misunderstanding of what was going on, apologies for the delay, I had to catch up on some reading... I was able to have this working in my docker build, should just be a matter of doing a |
^ ignore that, PR'ed the wrong repo :x |
Ok, so first, I'm sorry for the late reply, I've been really busy these days. I've finally managed to clone your repository and try it out on my machine (Windows). The problem with "failed to connect to server" is gone, it says that it's connected and also streaming, BUT it's not streaming... I've waited for longer than 10 seconds and still nothing, then I looked into the logs of the nodetube container and saw some 404 errors there whenever I've tried to connect to the stream. I don't know what the problem is this time (or if it's on my machine). To be sure I've also pulled up the good ol' WireShark and did a scan of the 1935 TCP port. You can download the PCAP file here if you want to check it out too. Steps to reproduce:
Logs from nodetube container:
|
Hmm, yeah I can see the authentication passed from that log, and it seems to exit as well. Im not able to reproduce that on my end. Though, i am using my local ip and added a record to my host file for my dev domain in the env files. Have you configured it all yet? |
Actually i can already see you didn't, or at least not enabling the live stream routes. Some assembly required* |
Ohh, ok I'll try that. Where can I find env.settings? |
so this is a little quirky, the dockerization of this app is not ideal (hence why i'm still working on it)... |
Nvm, I've found it (typical me, first ask then look in the project...), anyway I've done what you've just said, but still no luck (I've changed the
|
Yeah I also came to that conclusion, just spun up the containers myself... Ill need to fix that as well. I was editing things manually in the container which is bad and i should know better. those changes wont be retained either... |
Yeah, I've looked into the |
maaaaaaaaan this is annoying, i had this working the other day, now it wont display anything... |
Okay, cardinal sin number 2, I made a last minute change without testing it. apologies my guy... Ill do more testing but this build /should/ work https://github.com/l1ghtsword/nodetube.git tl:dr you only need to change the docker-compose and i think nginx.conf |
Works like a charm, I still had to make some adjustments tho. The files PS: I also have the modified |
You would need to run it once to have it copy them to the local directory for you. a word of caution, i would advise against changing the env.sample files and instead simply copy and paste them into the root directory and remove the ".sample" at the end. That way you have a clean reffernce in the event something breaks due to a setting change. Glad to hear this issue is resolved though, thanks for confirming. |
New problem: I can't do anything other than seeing the "my account" page (click on the account icon top left then go to my account). If I try anything else I get redirected to something like this: EDIT: The main page works, but if I try to search for example or do anything other than "my account", it redirects me to that weird URL |
That's an issue with lack of configuration not core functionality. for general questions not related to a specific software issue, you can ask them in the discord Lets avoid adding out of scope issues to this issue # |
@benny1611 |
Hello,
I've been trying for a couple of hours to set up nodetube on my local machine (just to test it out) via
docker-compose
. I've added an extra port for the nodetube container "1935:1935" because I care more about the live streaming aspect of this project, Unfortunately, I couldn't connect to the live-stream via OBS. Every time I try to start the stream I get the message "Failed to connect to server".I went to settings and made sure that I have the right link:
I've also looked in the OBS logs and saw this:
I couldn't see anything in the nodetube container logs (nothing showed up other than the "normal" logs, no errors or warnings).
Could you point out what I'm doing wrong? Thank you very much!
Details about my system:
Windows 10 Pro
Server: Docker Engine - Community
Engine:
Version: 20.10.2
The text was updated successfully, but these errors were encountered: