Webui and gateway are not working

I installed ipfs on my server, and changed in config the following:

"API": "/ip4/10.0.0.159/tcp/15001",
"Gateway": "/ip4/10.0.0.159/tcp/8080"

For i have no local browser in the server and port 5001 seems to be already in use.

The daemon starts
“…
API server listening on /ip4/10.0.0.159/tcp/15001
Gateway (readonly) server listening on /ip4/10.0.0.159/tcp/8080
Daemon is ready”

And there are several hundreds of swarm peers.

http://10.0.0.159:15001/webui gives an empty webui-page
http://10.0.0.159:8080 gives “404 page not found”.
IPFS Companion makes contact and seems working.

I cannot find a solution in the docs. :frowning:

Try to resolve anything: try downloading or checking a simple IPNS website:

http://10.0.0.159:8080/ipns/ipfs.io/

I guess that the reason could be related to the IPFS node not being able to connect to the rest of the world, as the WebUI is shared in IPFS as well :smiley: The 404 on the gateway is normal. You need to use /ipfs/ or /ipns/ :slight_smile:

The 404 on the gateway is normal. You need to use /ipfs/ or /ipns/
Thank you, the gateway works indeed.

The user interface on http://10.0.0.159:15001/webui reconnects to http://10.0.0.159:8080/ipfs/QmQLXH.../#/home. When I close IPFS Companion the user interface stays also empty: “Failed to determine local IPFS version. Is the IPFS daemon running?”, “Failed to determine local IPFS version. Is the IPFS daemon running?”. Is this a bug or a configuration error?

Try not to change the API port, I guess that the UI is expecting the API to run on 5001.

openjdk uses port 5001!!!

jaap@custard:~$ sudo netstat -tulpn | grep 5001
tcp 0 0 10.0.0.159:15001 0.0.0.0:* LISTEN 27368/ipfs
tcp 0 0 0.0.0.0:5001 0.0.0.0:* LISTEN 21847/java
udp 0 0 0.0.0.0:5001 0.0.0.0:* 21847/java
jaap@custard:~$ sudo ls -l /proc/21847/exe
lrwxrwxrwx 1 root root 0 Aug 22 21:40 /proc/21847/exe -> /usr/lib/jvm/java-9-openjdk-amd64/bin/java
jaap@custard:~$

ah, traccar is using that port. I have to fix that.