PeBi
After installing OpenPLC V4.1.0,
when I log in to my Raspberry Pi, a message appears stating that an older version is installed and that I should update the version.
How can I do this?
Are there instructions for this?
 
[203128%2F9611835%2Fmceclip0]
Reply 0 0
thiagoralves
For the runtime v3 the only way to update is deleting the OpenPLC_v3 folder and installing again (git clone … etc)
Reply 0 0
EricPLC
Hi,
 
Thiago, I have followed what you wrote, and I have deleted the OpenPLC_v3 folder. I have downloaded the new runtime from the webpage. I have followed the installation instruction. The runtime is also running. For starting automatically I have typed in: "sudo systemctl start openplc".
But when I type in "sudo systemctl status openplc" I get following responce:
~/openplc-runtime $ sudo systemctl start openplc
~/openplc-runtime $ sudo systemctl status openplc
× openplc.service - OpenPLC Service
Loaded: loaded (/lib/systemd/system/openplc.service; enabled; preset: enab>
Active: failed (Result: exit-code) since Tue 2025-12-30 13:53:00 CET; 640m>
Duration: 6ms
Process: 4174 ExecStart=/home/nodered/OpenPLC_v3/ start_openplc.sh (code=exi>
Main PID: 4174 (code=exited, status=203/EXEC)
CPU: 3ms
Dec 30 13:53:00 node systemd[1]: openplc.service: Scheduled restart job, restar>
Dec 30 13:53:00 node systemd[1]: Stopped openplc.service - OpenPLC Service.
Dec 30 13:53:00 node systemd[1]: openplc.service: Start request repeated too qu>
Dec 30 13:53:00 node systemd[1]: openplc.service: Failed with result 'exit-code>
Dec 30 13:53:00 node systemd[1]: Failed to start openplc.service - OpenPLC Serv>
lines 1-13/13 (END)
A further thing is, I am not able to get to the "127.0.0.1:8443" site. It is possible to get a connection via the OpenPLC Editor,
but as soon as I close the terminal, the connection gets lost. It seems the auto start command didn't work neither.
 
Can you please help me with that issue?
 
Thanks a lot.
Reply 0 0
thiagoralves
It looks like you’re trying to start the runtime twice. If you start the systemd service you should NOT start it from terminal, otherwise they will conflict. There is no web interface on port 8443. That port is used for communicating with the editor
Reply 0 0
EricPLC
Thanks for the quick response.

I have deleted the runtime v3 folder and installed the runtime v4. Could it be that I deleted the runtime v3 not successfully or not on a right way?

Reply 0 0
thiagoralves
If you installed v4 runtime then you need to run it from terminal. There is no systemd service for the v4 runtime yet. For systemd service you’ll need v3 runtime
Reply 0 0
thiagoralves
We’ve included systemd support on our latest update to runtime v4. So now if you install the latest v4 it will automatically start on every boot
Reply 0 0
EricPLC
Thanks for the response.
 
Even if I deleted the "OpenPLC_v3" folder with the "rm -rf" command, it seems to be still be on the Raspberry Pi.
Together with the v4.
I noticed it, when I log in under the localhost and create a new user, this user doesn't exist in the Editor (Board Settings - Connect).
(Side note: When you install the runtime the first time, in the editor page, when you try to connect the device, it ask you for creating a new user).
And the user in the editor page is also not visible in the localhost page. (I hope you know what I mean).
 
How can I "clean delete" both runtime from the Raspberry, so I can install the new v4 "clean" again?
Reply 0 0
thiagoralves
There is no way for the v3 runtime to continue running after you delete the OpenPLC_v3 folder. Either you have the runtime installed in another folder or you haven’t really deleted the OpenPLC_v3 folder.

As for users, the users created for the web interface are different than the user for the editor interface. On the web interface by default the user is openplc with password openplc (you can change on settings after logging in). From the editor, it asks you to create a user the first time you connect. You cannot use the editor user to login on the web interface and vice-versa.
Reply 0 0
EricPLC
Thanks for the response.
 
I understand the part with the users now.
 
In terms of the v3 deleting issue, I can report you following:
 
Even I have delete the OpenPLC_v3 folder and the openplc-runtime, I was able to connect the Raspberry Pi via the Editor.
I checked the "systemctl status openplc" and I could still see it was "active" and "enabled". I used then the commands "systemctl stop openplc" and "systemctl disable openplc".
After a while is enabled and started it again. And there I could see, it had still some connections to the OpenPLC_v3 folder, which was already deleted.
 
I used then the command "systemctl deamon-reload" and "systemctl reset-failed" and all the old connection to the v3 folder were gone.
 
So I reinstalled the v4 runtime, and it is running successfully now.
 
Thanks a lot.
Reply 0 0
richw
We’ve included systemd support on our latest update to runtime v4. So now if you install the latest v4 it will automatically start on every boot
After reboot, v4 starts running in the background but the initial user name and password when setting up for the first time are not saved. You have to setup a new user and password every time after reboot
Reply 0 0
thiagoralves
After reboot, v4 starts running in the background but the initial user name and password when setting up for the first time are not saved. You have to setup a new user and password every time after reboot
This is really odd. The database is stored in the file system, so it shouldn’t happen. I’ll check it and let you know.
Reply 0 0
richw
It's possible the information is being stored in the filesystem, but the login screen that pops up is the one for first time user name and password
Reply 0 0
thiagoralves
Fixed! Thanks for reporting it. The problem was that the data was being stored in a folder that some distros wipe on reboot. It should be working now. Please test and let us know.
Reply 0 0
richw
When updating the v4 runtime on linux do I have to delete the directory and do a fresh install or is there another way?
Reply 0 0
Reply