Detailed steps to recreate issue
After running my deploy command (âfuel-core run
âservice-name xoe .âŚâ
It returns:
â2024-02-20T22:29:46.234229Z INFO fuel_core::cli::run: 266: Block production disabled
2024-02-20T22:29:46.234259Z WARN fuel_core::cli::run: 294: The coinbase recipient ContractId is not set!
2024-02-20T22:29:46.234264Z INFO fuel_core::cli::run: 358: Fuel Core version v0.22.0
2024-02-20T22:29:46.234267Z INFO fuel_core::service: 95: Opening database â/root/.fuel_beta5â with cache size â1073741824â
2024-02-20T22:29:46.266132Z INFO new{name=xoe}: fuel_core::service: 189: Initializing database
2024-02-20T22:29:46.266309Z INFO new{name=xoe}: fuel_core::service: 194: Initializing sub
âŚâ
My question is really how do I know Iâve done the deployment correctly?
Link full scope of the codebase pertaining to your issue
Thanks glad to hear this! So the node is running successfully!
With this confirmation I have two questions remainingâŚ
If I am using a vps to host the node, upon exit is the node still running?
Also will the node continue if other programs are running during the session.
So currently, the terminal is âoccupiedâ when you are running a node, right?
In order to do other tasks, you have to open a new terminal window.
It would be really nice, if that didnât happen and if these logs were running on the background.
Let me ask you something though.
I am running the fuel run command on a VPS server.
Everything seems to work properly.
When I run âtopâ on my terminal, I can clearly see the Fuel process.
BUT, when I restart my PC letâs say and I rerun the âtopâ command, I donât see any Fuel process.
It is worth mentioning that when I restart my local PC, the VPS does not restart. The VPS is always up and running
Hey man take a look at âScreenâ, this is how I implemented all of my fuel nodes.
It essentially creates new terminal windows that do not stop their process until told to do so. Will link the documentation below, you should be able to download it on any vps system running linux.
Screen tutorial:
If you need more than this feel free to reach out and will help you set it up on your system!
If youâve started a screen session, launched the fuel node with the fuel-core run command within that session, and then detached from the screen session, you can still access the logs of the fuel-core run command. Hereâs how you can do it:
Reattach to the Screen Session: First, reattach to the screen session where you initially started the fuel-core run command. You can do this by listing the available screen sessions and then attaching to the desired one. You might use a command like
screen -ls
This will list the available screen sessions along with their IDs. Then you can reattach to the desired session with:
screen -r [session_id]
View Logs: Once youâre inside the screen session, you can view the logs of the fuel-core run command. These logs are typically printed to the terminal. You can scroll through the terminal output to review the logs.
Scrollback: If you detached from the screen session without preserving scrollback, you may not see the full logs immediately upon reattaching. You can enable scrollback within the screen session by pressing Ctrl + A followed by [ to enter copy mode, then you can use arrow keys or page up/down to scroll through the logs. Press Esc to exit copy mode.
By reattaching to the screen session, you regain access to the terminal where fuel-core run was executed, allowing you to view the logs and interact with the command as if you never detached from the session.