The system is unable to remove some nodes and unable as well to start new ones as stated in this topic. When I try to remove 3 faulty nodes, the system says:
╔═════════════════════════════╗
║ Remove Antnode Services ║
╚═════════════════════════════╝
Failed to remove 1 service(s):
✕ antnode29: Command failed with exit code 1: Warning: Can’t execute disable on the unit file path. Proceeding with the unit name.
Failed to disable unit: Unit file antnode29.service does not exist.
Error:
0: Failed to remove one or more services
Location:
ant-node-manager/src/cmd/node.rs:875
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
When trying to start new nodes, I get a similar error message. i suspect they are related:
╔════════════════════════════╗
║ Start Antnode Services ║
╚════════════════════════════╝
Attempting to start antnode134…
Failed to start 1 service(s):
✕ antnode134: The PID of the process was not found after starting it.
Error:
0: Failed to start one or more services
Location:
ant-node-manager/src/cmd/node.rs:875
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
I think what happens is that there are still services registered and trying to run which are hogging those service names. I think if you do a antctl reset and then reboot to clear out the services things will work again. You can also manually remove the services but it will be quicker and easier to reboot. Especially if you are on a Mac.
Thanks. The machine is a remote ubuntu with which I communicate trough ssh. I did reboot but it didn’t change the problem. Even when attempting to start nodes on the local machines, I now get the error
✕ antnode27: The PID of the process was not found after starting it.
Error:
0: Failed to start one or more services
If you did the antctl reset as well as the reboot then it’s not that. I’m wondering if it’s a permissions issue then. Are you running antctl using sudo? That shouldn’t be needed. The only advantage to that is it will install the services to be owned by root so that they come up again after a reboot. Which probably isn’t clever as they’ll all start at once which won’t do them any good.
I think we need more information. What is the command you are using to add the nodes? And are you using sudo?
On the face of it that looks fine. If you are using a router which has UPNP setup on it as you are not specifying ports to use there. But even if the ports that antctl chooses can’t be opened on the router I don’t think that would stop the nodes from launching. I’m a bit stumped.
Can you give the output of anctctl --version in case you are using an old version?
I think we need to see the logs for the node. That might help. I still think it is something to do with the storage location. Does the user definitely have rights to that directory /home/multimedia/autonomi/ ?
I have to go out now but I’ll be back later. You could try asking in the Discord general-support channel where there might be people on.
It fails even without specifying any special path now. However, when I start from the launchpad, it works again. My main problem is the inability to setup the folder from the launchpad.
Even after resetting, deleting the $HOME/.local/share/autonomi folder and rebooting the remote linux machine, the same error comes back with antctl:
╔════════════════════════════╗ ║ Start Antnode Services ║ ╚════════════════════════════╝ Attempting to start antnode1… Failed to start 1 service(s): ✕ antnode1: The PID of the process was not found after starting it. Error: 0: Failed to start one or more services Location: ant-node-manager/src/cmd/node.rs:875 Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it. Run with RUST_BACKTRACE=full to include source snippets.
It is so strange. At the same time, I am restarting nodes from the launchpad, which seems to work properly.
The command created the file as expected. I must say that even if I dont specify any special path (so, in the default direcvtory), no antctl command works while I just restared 20 nodes from the launchpad.