As promised, I have recently completed the first iteration (read “It probably has some bugs in it!”) of a complete n8n installation script for the Raspberry Pi on a clean installation of Raspbian Buster (February 2020 build).
With only a few small steps and a system reboot, you can have your own custom n8n RPi up and running!
I have written up some documentation (it is still a work in progress) on how to perform the install or, if you are a bit of a keener, you can simple boot your RPi from a fresh Raspbian installation, SSH into the system and enter:
Hey @ixidion! Thanks for the updated information. Things are much clearer now!
OK. So a couple of things.
The script was designed to run on a clean image of Raspberry Pi OS. It sounds like there was at least one other application (Pi-Hole) that was installed previously. I have not done any testing with other applications in place so there could be some unpredictable results.
It looks like you ran the installer script at least twice before it gave an error the second time the the n8n user already existed.
There is a second script that is installed by the first script that has not been run. This script will run automatically when you reboot the RPi and then log in as the n8n user (default password is n8n=gr8!).
My recommended plan of attack for you would be:
Reboot the RPi
Log in as the n8n user
Let the next script run
Reboot again
Check for the interface on port 5678
If that does not work, I would suggest getting your hands on a second microSD card and then put a fresh image of Raspberry Pi OS (32-bit) Lite on it and try again. This may give you better results.
I have not tested the script on the full version of Raspberry Pi OS but I suspect that it should work fine. Let me know what you discover when you give it a try. If it does not work, then I would suggest installing the lite version, run the installation script, and then add extra services from there.
There is not an option for changing the password during the installation script at this time but it is on my roadmap for future versions. After the installation, you can reset the n8n password by logging in as the n8n user, entering the passwd command, and following the prompt. You can then set the password to whatever you wish. (I would also recommend a reboot at that time so that the PM2 service that runs n8n can use the new password.)
Keep me posted on your progress with this. I am interested to see what happens with the variations that you are using and what challenges you run into. I am also more than happy to assist wherever I can.
Hi @Tephlon,
just wanted to say thanks for your helpful post. I couldn’t execute yet on it. Found caprover now and trying to figure out how to get n8n running on nginx in https there
On the plus side I have a few more SD cards now so able to switch.
Hello. Could someone explain me, how to enable https in my n8n RaspberryPi installation? I’ve done fresh install (not on real RasPI though, but on Raspberry Pi Desktop running in VmWare), and have no clue what to do next.
I am about to make a Telegram bot, but Telegram does not allow to connect to its API via http…
By the way, I’ve had some problems with script - it fails after first reboot at install, so I had to install npm manually before start of installation. Dont know, if it is related to Raspberry Pi Desktop only, or not.