Skip to content
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

Connection to server lost, will attempt reconnection. #142

Closed
ForestQ opened this issue Aug 16, 2024 Discussed in #141 · 4 comments
Closed

Connection to server lost, will attempt reconnection. #142

ForestQ opened this issue Aug 16, 2024 Discussed in #141 · 4 comments
Assignees

Comments

@ForestQ
Copy link

ForestQ commented Aug 16, 2024

Discussed in #141

Originally posted by ForestQ August 16, 2024
Hi!
The worker on the same machine in the same Docker instance doesn't want to connect. I tried both 127.0.0.1 and the real IP. What should I do?

handbrake-web-worker | [worker] The worker process has started.
handbrake-web-worker | [worker] [server] Connection to server lost, will attempt reconnection...

  handbrake-server:
    image: ghcr.io/thenickoftime/handbrake-web-server:latest
    container_name: handbrake-web-server
    user: 0:0
    ports:
      - 9999:9999
    volumes:
      - /home/forestq/handbrake:/data
      - /mnt/storage2:/video #ensure this path is the same across all containers

  handbrake-worker:
    image: ghcr.io/thenickoftime/handbrake-web-worker:latest
    container_name: handbrake-web-worker
    user: 0:0
    environment:
      - WORKER_ID=server #give your worker a unique name
      - SERVER_URL=10.3.5.32 #set to the url or ip of your server
      - SERVER_PORT=9999 #if using a reverse proxy, this may be different than what is set above
    volumes:
      - /mnt/storage2:/video #ensure this path is the same across all containers
    depends_on:
      - handbrake-server
```</div>
@TheNickOfTime
Copy link
Owner

Hey, this was brought to my attention by another user in another issue - I believe the solution to this issue is to change:

- SERVER_URL=10.3.5.32 #set to the url or ip of your server

to:

- SERVER_URL=http://10.3.5.32 #set to the url or ip of your server

I will update the readme with this info when I get a chance. Also I think I'm going to make it so you can either include or omit http:// in the next release for better flexibility.

@TheNickOfTime
Copy link
Owner

This issue will be addressed by #143 and #144 :)

@ForestQ
Copy link
Author

ForestQ commented Aug 17, 2024

ooops, SERVER_URL kind of implies it. )) thx

@TheNickOfTime
Copy link
Owner

No worries, thanks for bringing it to my attention, I can definitely account for this to work either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants