Robbudge
The installation and reboot was a dream.
i wrote my program uploaded the file and tested successfully 
then i rebooted the Pi to check everything worked correctly.
now i have no dashboard on port 8080 and my terminal shows the following

pi@raspberrypi:~ $ service openplc start

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===

Authentication is required to start 'openplc.service'.

Multiple identities can be used for authentication:

 1.  ,,, (pi)

 2.  root

Choose identity to authenticate as (1-2): 1

Password: 

==== AUTHENTICATION COMPLETE ===

pi@raspberrypi:~ $ service openplc status

openplc.service - OpenPLC Service

   Loaded: loaded (/lib/systemd/system/openplc.service; enabled; vendor preset: enabled)

   Active: active (running) since Mon 2020-06-08 18:17:09 EDT; 29ms ago

 Main PID: 903 (start_openplc.s)

    Tasks: 2 (limit: 2200)

   Memory: 480.0K

   CGroup: /system.slice/openplc.service

           ├─903 /bin/bash /home/pi/OpenPLC_v3/ start_openplc.sh

           └─905 python2 webserver.py

 

Jun 08 18:17:09 raspberrypi systemd[1]: Started OpenPLC Service.

pi@raspberrypi:~ $ service openplc status

openplc.service - OpenPLC Service

   Loaded: loaded (/lib/systemd/system/openplc.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Mon 2020-06-08 18:17:14 EDT; 3s ago

  Process: 908 ExecStart=/home/pi/OpenPLC_v3/ start_openplc.sh (code=exited, status=1/FAILURE)

 Main PID: 908 (code=exited, status=1/FAILURE)

 

Jun 08 18:17:14 raspberrypi systemd[1]: openplc.service: Service RestartSec=1s expired, scheduling restart.

Jun 08 18:17:14 raspberrypi systemd[1]: openplc.service: Scheduled restart job, restart counter is at 5.

Jun 08 18:17:14 raspberrypi systemd[1]: Stopped OpenPLC Service.

Jun 08 18:17:14 raspberrypi systemd[1]: openplc.service: Start request repeated too quickly.

Jun 08 18:17:14 raspberrypi systemd[1]: openplc.service: Failed with result 'exit-code'.

Jun 08 18:17:14 raspberrypi systemd[1]: Failed to start OpenPLC Service.


is there a log ?

Quote 0 0
thiagoralves
Systemctl can give you a full log of what's going on when the process is started (you can google on how to do that). But perhaps the easiest way would be to stop the service and launch the webserver manually to see what's going on:
sudo systemctl stop openplc
cd ˜/OpenPLC_v3
sudo ./start_openplc.sh
Quote 0 0
Robbudge
Traceback (most recent call last):
File "webserver.py", line 10, in <module>
import pages
ValueError: bad marshal data (unknown type code)

Now i never did select Raspberry as my hardware as im not using any GPIO, but it was working
Quote 0 0
Robbudge
I removed the pages.pyc and everything started less my project.
re-uploaded my project and started ok.
rebooted and its looking OK????
Quote 0 0
thiagoralves
I would blame this on SD card corruption. This file is the compiled version of the static pages on the webserver. When you removed the .pyc you forced python to recompile the thing
Quote 0 0
NWT.Stuff
I had weird things happen and a few crashes when I used Kingston SD Cards.  Since I moved to SanDisk Class 10 never had a problem 🙂
Quote 0 0
Robbudge
ok Thanks guys, ill look at another disk
Quote 0 0
thiagoralves
Also, make sure you have a good power supply. Noisy PSUs can also lead into read/write IO errors and file corruptions.
Quote 0 0