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

Trouble installing via Docker #202

Closed
MartynasArba opened this issue Feb 11, 2025 · 8 comments
Closed

Trouble installing via Docker #202

MartynasArba opened this issue Feb 11, 2025 · 8 comments
Assignees

Comments

@MartynasArba
Copy link

Hi all,

After Docker installation, the node does not run and instead I get this message:

ethoscope-node    | Traceback (most recent call last):
ethoscope-node    |   File "/usr/bin/systemctl.py", line 6789, in <module>
ethoscope-node    |     FORCE_IPV4 = opt.force_ipv4                                                                                                                                                        
ethoscope-node    |                  ^^^^^^^^^^^^^^                                                                                                                                                        
ethoscope-node    | AttributeError: 'Values' object has no attribute 'force_ipv4'

Is there a solution, guide, or any other steps I should take to complete the installation successfully?

Steps I took leading to the issue:

  1. Cloned the Docker folder from github (I've also tried using docker pull, which led to issue docker container not working #185 )
  2. Navigated to the Dockerfile and installed it using either using docker build . or docker compose up
  3. Ran it, resulting in the error

Any help would be greatly appreciated!

@ggilestro
Copy link
Member

On what OS are you trying to run the docker container?

@ggilestro ggilestro self-assigned this Feb 12, 2025
@MartynasArba
Copy link
Author

Thank you for the reply!
Docker is running on Windows 11.

@ggilestro
Copy link
Member

I have restructured and updated the Docker stack. You can get the new files on the repo (make sure you use the dev branch) or the image on dockerhub

I have not tested it in Windows11 yet. Perhaps you can give it a try and let me know!

@MartynasArba
Copy link
Author

Both options (docker pull using the image and docker build using the Dockerfile from the dev branch) now result in seemingly nothing - it runs for 0 seconds and exits with status 0, creating a single container with a name specified or generated when building, which behaves the same way if trying to run it.

I also tried using docker compose up for the dev branch files. This creates the following container structure:

Image

From here, the node-base-1 keeps restarting with a message node-base-1 exited with code 0, but the main node container keeps running, with various (seemingly correct?) outputs from these containers:

  • ethoscope-node
  • ethoscope-git-server
  • ethoscope-node-backup
  • ethoscope-vsftpd
  • ethoscope-node-video-backup
  • ethoscope-node-update

My guess is then that something is wrong with node-base-1, but after playing around for a bit I still can't figure it out. I'll try setting up Linux on a spare laptop in the meanwhile.

Let me know if there's anything else to check or to try, as it'd be really nice to run the node on my main workstation!

@ggilestro
Copy link
Member

The image is fine but you must run it through the docker compose recipe because each container needs to start with a different entrypoint command and the docker compose file provides that instruction. Make sure you point the volumes to the right paths and that you run docker with administrative settings since you need network_mode: host.

@MartynasArba
Copy link
Author

It seems the issue is that network_mode: host only works on Linux.
I'm trying to find a workaround for Windows or Mac, and I'll post an update here if I find a solution.
Thanks for all the help!

@ggilestro
Copy link
Member

I see. Thanks for looking into it.

One can do automatic port binding and overcome the use of network_mode: host but the ethoscope-node container needs to access port 5353 (at least) for the avahi-bonjour-mDNS automatic discovery of ethoscopes on the network and that will most likely crash with Windows11 native service.

I think the easiest solution would be to abandon windows and find a computer to install linux onto. The current installation image is a bit old but if you use an archlinux based image (e.g. Manjaro) you can get the node running simply with yay -S ethoscope-node (or use the dockers)

ggilestro added a commit that referenced this issue Feb 14, 2025
…work mode.

Added also some comments explaining the issue with the Windows docker setup.

This is in reference to #202
@ggilestro
Copy link
Member

I have made a new ISO image. This is once again the easiest way to setup the node. I have added some notes to the docker-compose file to explain what the problem is but I am afraid not much more can be done to solve the Docker issue.

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

No branches or pull requests

2 participants