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

Networking is not working well in docker container. #22

Open
stemplock opened this issue Nov 7, 2024 · 1 comment
Open

Networking is not working well in docker container. #22

stemplock opened this issue Nov 7, 2024 · 1 comment

Comments

@stemplock
Copy link

stemplock commented Nov 7, 2024

Hi. On the host, the network works fine and without errors.
In the docker container, it's not so good.
The docker container is built from the base image.
I run it with this command.

docker run -d --name lokinet-base --privileged --dns=127.3.2.1 -p 1190:1190 -v /data:/data lokinet-base-local:latest

Is this really the correct command?

root@f69c4511bf0c:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: lokitun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none 
    inet 172.16.0.1/16 scope global lokitun0
       valid_lft forever preferred_lft forever
17: eth0@if18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:ac:11:00:03 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.17.0.3/16 brd 172.17.255.255 scope global eth0
       valid_lft forever preferred_lft forever

`

root@f69c4511bf0c:/# systemctl status lokinet
● lokinet.service - LokiNET: Anonymous Network layer thingydoo, client
     Loaded: loaded (/lib/systemd/system/lokinet.service; enabled; preset: enabled)
     Active: active (running) since Thu 2024-11-07 19:14:18 UTC; 11min ago
    Process: 65 ExecStartPost=/usr/sbin/lokinet-resolvconf add /var/lib/lokinet/lokinet.ini (code=exited, status=0/SUCCESS)
   Main PID: 49 (lokinet)
     Status: "v0.9.11 client | known/connected: 864/9 | paths/endpoints 26/1 [ !!! Low Build Success Rate (34.0%) !!! ]"
      Tasks: 8 (limit: 687)
     Memory: 48.4M
        CPU: 7.714s
     CGroup: /system.slice/lokinet.service
             └─49 /usr/bin/lokinet /var/lib/lokinet/lokinet.ini

Nov 07 19:25:44 f69c4511bf0c lokinet[49]: [2024-11-07 19:25:44] [+11m25.783s] [:info|llarp/path/path.cpp:306] path TX=f820315470962fe34013c3ea5f281b5c RX=9ad2ee73f445a7d25c2f94ae156abe69 is building
Nov 07 19:25:44 f69c4511bf0c lokinet[49]: [2024-11-07 19:25:44] [+11m25.784s] [:info|llarp/path/pathbuilder.cpp:448] OBContext:wuqydzmaifbeiimr4qyy4eao4ph86wwykrnrchsz7s4m4uy18hty.loki build [path z841cjj1-56]:  -> dheu689tcsib7tsyd1bxjakr6hexzpirzqxxjsjxn9rrwmcupouy.snode -> usobt5edgjb6qi41zwski5eg36otkefntrnnhw5gbahxdhb6yi1o.snode -> 3c3b3geepk561pywofiwx4sxcmhyf6pehk8dfg9mww7s6q17y4yo.snode -> zureajgroarr8zcrkyg4xdbuunkzjdunuy7816j66b6dx65b9xpo.snode
Nov 07 19:25:44 f69c4511bf0c lokinet[49]: [2024-11-07 19:25:44] [+11m25.787s] [:info|llarp/path/pathset.cpp:355] OBContext:wuqydzmaifbeiimr4qyy4eao4ph86wwykrnrchsz7s4m4uy18hty.loki path build [path z841cjj1-56] started
Nov 07 19:25:44 f69c4511bf0c lokinet[49]: [2024-11-07 19:25:44] [+11m26.283s] [:info|llarp/service/outbound_context.cpp:290] OBContext:wuqydzmaifbeiimr4qyy4eao4ph86wwykrnrchsz7s4m4uy18hty.loki updating introset
Nov 07 19:25:45 f69c4511bf0c lokinet[49]: [2024-11-07 19:25:45] [+11m26.651s] [:info|llarp/service/hidden_service_address_lookup.cpp:45] found result for wuqydzmaifbeiimr4qyy4eao4ph86wwykrnrchsz7s4m4uy18hty.loki
Nov 07 19:25:45 f69c4511bf0c lokinet[49]: [2024-11-07 19:25:45] [+11m26.909s] [:info|llarp/service/hidden_service_address_lookup.cpp:45] found result for wuqydzmaifbeiimr4qyy4eao4ph86wwykrnrchsz7s4m4uy18hty.loki
Nov 07 19:25:45 f69c4511bf0c lokinet[49]: [2024-11-07 19:25:45] [+11m26.925s] [:info|llarp/path/path.cpp:311] path TX=f820315470962fe34013c3ea5f281b5c RX=9ad2ee73f445a7d25c2f94ae156abe69 is built, took 1.141s
Nov 07 19:25:45 f69c4511bf0c lokinet[49]: [2024-11-07 19:25:45] [+11m26.925s] [:info|llarp/path/pathbuilder.cpp:464] TX=f820315470962fe34013c3ea5f281b5c RX=9ad2ee73f445a7d25c2f94ae156abe69 built latency=0.258s
Nov 07 19:25:45 f69c4511bf0c lokinet[49]: [2024-11-07 19:25:45] [+11m27.300s] [:info|llarp/path/path.cpp:311] path TX=3127473ed57cc121bbf8086a0a10a3d2 RX=61d802e9ffd5c98afbd10502d3ec3d27 is built, took 2.022s
Nov 07 19:25:45 f69c4511bf0c lokinet[49]: [2024-11-07 19:25:45] [+11m27.301s] [:info|llarp/path/pathbuilder.cpp:464] TX=3127473ed57cc121bbf8086a0a10a3d2 RX=61d802e9ffd5c98afbd10502d3ec3d27 built latency=0.596s
root@f69c4511bf0c:/# 

Any ideas on what to do next?

@stemplock stemplock changed the title The network is not working. Del Nov 7, 2024
@stemplock stemplock reopened this Nov 7, 2024
@stemplock stemplock changed the title Del Networking is not working well in docker container. Nov 7, 2024
@stemplock
Copy link
Author

She stopped working again. (

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

1 participant