I have devpi instance running in docker container, and I want to run devpi replice on another server (in Docker container too). For test I'm tryin to run these two containers on one host.
Devpi master starts and run successfully. I use this entrypoint to run it
/usr/local/bin/devpi-server --host 0.0.0.0 --port 3141 --role master --serverdir /data/data/srv
Devpi replica cannot start. I use this entrypoint to run it
/usr/local/bin/devpi-server --master-url http://10.80.0.26:3141 --port 4000 --role replica --serverdir /data/data/srv
10.80.0.26 - IP address of the host, where I run Docker containers I tried localhost, 127.0.0.1, internal Docker IP addess
Everytime I get this error:
2021-10-04 16:17:12,394 INFO NOCTX Loading node info from /data/data/srv/.nodeinfo
2021-10-04 16:17:12,395 INFO NOCTX wrote nodeinfo to: /data/data/srv/.nodeinfo
2021-10-04 16:17:12,399 INFO NOCTX Using 5 file download threads.
2021-10-04 16:17:12,426 WARNI NOCTX No secret file provided, creating a new random secret. Login tokens issued before are invalid. Use --secretfile option to provide a persistent secret. You can create a proper secret with the devpi-gen-secret command.
2021-10-04 16:17:15,580 INFO NOCTX Found plugin devpi-web-4.0.8.
2021-10-04 16:17:16,093 INFO NOCTX Using /data/data/srv/.indices for Whoosh index files.
2021-10-04 16:17:16,150 INFO [FREPQ] Queuing files for possible download from master
2021-10-04 16:17:16,160 INFO [REP] fetching http://10.80.0.26:3141/+changelog/0-?initial_fetch
2021-10-04 16:17:16,173 INFO [IDXQ] [Rtx-1] Processed a total of 0 projects and queued 0
2021-10-04 16:17:16,192 INFO NOCTX devpi-server version: 6.2.0
2021-10-04 16:17:16,192 INFO NOCTX serverdir: /data/data/srv
2021-10-04 16:17:16,192 INFO NOCTX uuid: 3a2a7049c98f46c2a538ac5f68f25470
2021-10-04 16:17:16,192 INFO NOCTX serving at url: http://localhost:4000 (might be http://[localhost]:4000 for IPv6)
2021-10-04 16:17:16,193 INFO NOCTX using 50 threads
2021-10-04 16:17:16,193 INFO NOCTX bug tracker: https://github.com/devpi/devpi/issues
2021-10-04 16:17:16,193 INFO NOCTX IRC: #devpi on irc.freenode.net
2021-10-04 16:17:16,193 INFO NOCTX Hit Ctrl-C to quit.
Traceback (most recent call last):
File "/usr/local/bin/devpi-server", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/devpi_server/main.py", line 69, in main
return _main(pluginmanager, argv=argv)
File "/usr/local/lib/python3.8/site-packages/devpi_server/main.py", line 124, in _main
return xom.main()
File "/usr/local/lib/python3.8/site-packages/devpi_server/main.py", line 243, in main
return wsgi_run(xom, app)
File "/usr/local/lib/python3.8/site-packages/devpi_server/main.py", line 153, in wsgi_run
serve(app, **kwargs)
File "/usr/local/lib/python3.8/site-packages/waitress/__init__.py", line 13, in serve
server = _server(app, **kw)
File "/usr/local/lib/python3.8/site-packages/waitress/server.py", line 78, in create_server
last_serv = TcpWSGIServer(
File "/usr/local/lib/python3.8/site-packages/waitress/server.py", line 244, in __init__
self.bind_server_socket()
File "/usr/local/lib/python3.8/site-packages/waitress/server.py", line 361, in bind_server_socket
self.bind(sockaddr)
File "/usr/local/lib/python3.8/site-packages/waitress/wasyncore.py", line 396, in bind
return self.socket.bind(addr)
OSError: [Errno 99] Cannot assign requested address
What I should check or fix?