Closed oschmidteu closed 3 years ago
Hi @oschmidteu, it's quite usual that if the port binds to every interface, netstat only show it as tcp6. To prove it, you should get a response if you try it with curl.
curl 127.0.0.1:8008
Hey @andreaspeters thanks for the speedy reply. The output is more or less the same ;) root@DSM:~# curl 127.0.0.1:8008 curl: (7) Failed to connect to 127.0.0.1 port 8008: Connection refused
Your welcome. Thats not what I expected to see. :-) Can u show us the generated homeserver.yml? These failure "sqlite3.OperationalError: unable to open database " should also not be there. Can u tell us which environment u are using? Just a normal linux (centos)?
ok, I had a look into a new generated homeserver.yml at my system. I already found two issues:
1) In line 246: Change bind_address to bind_addresses: ['0.0.0.0']
2) In line 759: Change the database path to: database: /data/homeserver.db
After that, my netstat looks like this:
sudo netstat -tulpen | grep dock
tcp6 0 0 :::8008 :::* LISTEN 0 1043819 44392/docker-proxy
But a curl is working:
curl 127.0.0.1:8008
<html>
<head>
<meta http-equiv="refresh" content="0;URL=/_matrix/static">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<a href="/_matrix/static">click here</a>
</body>
</html>
Oh yeah i should have pointet to the sqlite error, sorry. Well line 246 and 759 made the difference.
Thanks a lot for the awesome work and your help.
Your welcome and thanks for your nice feedback. :smiley:
Hey i just fired up the container with the basicly no changes but i cant get the container listening to ip4:
docker run -v /volume1/homes/USER/matrix:/data --rm --user 1026:100 -e SERVER_NAME=matrix.xxx.com -e REPORT_STATS=no avhost/docker-matrix:latest generate
docker run -d --user 1026:100 -p 8448:8448 -p 8008:8008 -p 3478:3478 -v /volume1/homes/USER/matrix:/data avhost/docker-matrix:latest start
docker Log:
homeserver.log:
netstat:
Any idea what might be wrong?