Monitoring the log file
In order to see what is going on the ATM and check the log file, we will first install
tmux. Tmux is a terminal multiplexer for Unix-like operating systems and allows us to split our terminal screen in half (among other things). Install
tmuxwith the following command on your ATM:
sudo apt install tmux
After it has finished installing you can start a new tmux session by typing
tmuxinto the command line.
Every action in
tmuxhas to be "announced" with the key combination
Ctrl + b. Let's try this 🍪 ! First do
Ctrl + band then the percent sign
%(you might have to use the
Shiftkey for this). This should have split your terminal window vertically in half.
You can jump between the two sides with
Ctrl + band then
right arrow. You can adjust the size of the two windows by typing
Ctrl + band while keeping the
Ctrlkey pushed down , use the left/right arrow keys to adjust it to your liking (press the arrow keys multiple times).
You can detach from your current
Ctrl + band the key
d. If you want to get back into that same session type:
(This only works, if you have just one
We will start following our debug log file in our right side of the session. The logfile has been created automatically as you started your ATM for the very first time here:
Move to the right side of the terminal session with the cursor and then type:
tail -f ~/.lightningATM/debug.log
You will get to see the last 10 entries in that log file and it will automatically update as soon as a new entry shows up in the log file (The file might not exist yet, if you have a completely fresh installation. Just the start the ATM once with
./app.pyand then try again).
Move back to the left side of your screen and there we start the ATM software with:
As the ATM starts, you will now see an additional line appear on the right side saying
Application started. Perfect, we can now monitor closely what is going on inside the ATM. It should now look something like this: