Rockpi-sata.service inactive and disabled

Trying to start the service give me below message:

Jan 13 16:54:21 raspberrypi python3[1950]: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Jan 13 16:54:21 raspberrypi python3[1950]: Can’t connect to pigpio at localhost(8888)
Jan 13 16:54:21 raspberrypi python3[1950]: Did you start the pigpio daemon? E.g. sudo pigpiod
Jan 13 16:54:21 raspberrypi python3[1950]: Did you specify the correct Pi host/port in the environment
Jan 13 16:54:21 raspberrypi python3[1950]: variables PIGPIO_ADDR/PIGPIO_PORT?
Jan 13 16:54:21 raspberrypi python3[1950]: E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
Jan 13 16:54:21 raspberrypi python3[1950]: Did you specify the correct Pi host/port in the
Jan 13 16:54:21 raspberrypi python3[1950]: pigpio.pi() function? E.g. pigpio.pi(‘soft’, 8888)
Jan 13 16:54:21 raspberrypi python3[1950]: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Jan 13 16:54:21 raspberrypi systemd[1]: rockpi-sata.service: Succeeded.

checking pigpio service and seems like its running:

root@raspberrypi:~# sudo systemctl status pigpiod.service
● pigpiod.service - Daemon required to control GPIO pins via pigpio
Loaded: loaded (/lib/systemd/system/pigpiod.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-01-13 16:49:53 +08; 7min ago
Process: 689 ExecStart=/usr/bin/pigpiod -l (code=exited, status=0/SUCCESS)
Main PID: 694 (pigpiod)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/pigpiod.service
└─694 /usr/bin/pigpiod -l

Jan 13 16:49:53 raspberrypi systemd[1]: Starting Daemon required to control GPIO pins via pigpio…
Jan 13 16:49:53 raspberrypi systemd[1]: Started Daemon required to control GPIO pins via pigpio.

netstat | grep 8888 gives no results at all.

pigs t command gives out the result below:

root@raspberrypi:~# pigs t
460026612

Any idea what can I check? It just simply stop working out of nowhere. I’ve run some update on OMV few days ago, but it seems to still work after that.

Hello. Could you tell me the results of ‘uname -a’ and ‘cat /etc/os-release’? I’ll check it.

cat /etc/os-release
NAME=“Ubuntu”
VERSION=“20.04.3 LTS (Focal Fossa)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 20.04.3 LTS”
VERSION_ID=“20.04”
HOME_URL=“https://www.ubuntu.com/
SUPPORT_URL=“https://help.ubuntu.com/
BUG_REPORT_URL=“https://bugs.launchpad.net/ubuntu/
PRIVACY_POLICY_URL=“https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

not sure why user above is replying, but here is the requested output:

root@raspberrypi:~# uname -a
Linux raspberrypi 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 2021 armv7l GNU/Linux

root@raspberrypi:~# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
root@raspberrypi:~#

I gave that Feedack because the penta-Sata.service on the late (November) Penta Sata Hat , mounted on a ROCK 3A also is NOT starting :-(.

Hi @setq , any update? Can anyone help me with this?

On my Raspbian OS the ExecStart line of pigpiod service (/lib/systemd/system/pigpiod.service) value is:
/usr/bin/pigpiod -l -n 127.0.0.1
Maybe you should try to edit this service file (or override it) and add -n 127.0.0.1, reload the daemon (sudo systemctl daemon-reload) then restart the pigpoid service (sudo systemctl restart pigpiod) and the rockpi-sata service (sudo systemctl restart rockpi-sata).

Thanks for trying to help mate, i did as per your advise, service still aint running:

`root@raspberrypi:/lib/systemd/system# systemctl status rockpi-sata.service

● rockpi-sata.service - Rockpi SATA Hat

Loaded: loaded (/lib/systemd/system/rockpi-sata.ser
Active: inactive (dead) since Wed 2022-01-19 01:09:
Process: 7901 ExecStart=/usr/bin/python3 /usr/bin/ro
Process: 8120 ExecStop=/usr/bin/python3 /usr/bin/roc
Main PID: 7901 (code=exited, status=0/SUCCESS)`

Can you send the whole part of the lines? They were split down and missing.
You can move the contain of screen horizontally with the arrow keys.
And also, after you restart the services, I would like the check your logs (sudo journalctl -e).

Thanks @RayMondDrakon, appreciate you are looking into this. Below is the full line:

root@raspberrypi:~# systemctl status rockpi-sata.service
● rockpi-sata.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-sata.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Fri 2022-01-21 20:52:25 +08; 24s ago
Process: 713 ExecStart=/usr/bin/python3 /usr/bin/rockpi-sata/main.py on (code=exited, status=0/SUCCESS)
Process: 1584 ExecStop=/usr/bin/python3 /usr/bin/rockpi-sata/main.py off (code=exited, status=0/SUCCESS)
Main PID: 713 (code=exited, status=0/SUCCESS)

Jan 21 20:52:25 raspberrypi python3[1584]: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Jan 21 20:52:25 raspberrypi python3[1584]: Can’t connect to pigpio at localhost.localdom(8888)
Jan 21 20:52:25 raspberrypi python3[1584]: Did you start the pigpio daemon? E.g. sudo pigpiod
Jan 21 20:52:25 raspberrypi python3[1584]: Did you specify the correct Pi host/port in the environment
Jan 21 20:52:25 raspberrypi python3[1584]: variables PIGPIO_ADDR/PIGPIO_PORT?
Jan 21 20:52:25 raspberrypi python3[1584]: E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
Jan 21 20:52:25 raspberrypi python3[1584]: Did you specify the correct Pi host/port in the
Jan 21 20:52:25 raspberrypi python3[1584]: pigpio.pi() function? E.g. pigpio.pi(‘soft’, 8888)
Jan 21 20:52:25 raspberrypi python3[1584]: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Jan 21 20:52:25 raspberrypi systemd[1]: rockpi-sata.service: Succeeded.

Below is the requested log:

root@raspberrypi:~# sudo journalctl -e
Jan 21 20:52:52 raspberrypi monit[905]: Filesystem ‘/srv/dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff’ not mounted
Jan 21 20:52:52 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff’ unable to read filesystem ‘/srv/dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff’ state
Jan 21 20:52:52 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff’ trying to restart
Jan 21 20:52:52 raspberrypi monit[905]: ‘mountpoint_srv_dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff’ status failed (1) – /srv/dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff is not a mountpoint
Jan 21 20:52:52 raspberrypi postfix/smtpd[1360]: connect from localhost.localdomain[127.0.0.1]
Jan 21 20:52:52 raspberrypi postfix/smtpd[1360]: 8F6DB8F: client=localhost.localdomain[127.0.0.1]
Jan 21 20:52:52 raspberrypi postfix/cleanup[1375]: 8F6DB8F: message-id=1642769572.1fd62785333fabc6@raspberrypi
Jan 21 20:52:52 raspberrypi postfix/smtpd[1360]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 21 20:52:52 raspberrypi monit[905]: Lookup for ‘/srv/dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ filesystem failed – not found in /proc/self/mounts
Jan 21 20:52:52 raspberrypi monit[905]: Filesystem ‘/srv/dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ not mounted
Jan 21 20:52:52 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ unable to read filesystem ‘/srv/dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ state
Jan 21 20:52:52 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ trying to restart
Jan 21 20:52:52 raspberrypi monit[905]: ‘mountpoint_srv_dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ status failed (1) – /srv/dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153 is not a mountpoint
Jan 21 20:52:52 raspberrypi postfix/qmgr[1028]: 8F6DB8F: from=monitoring@gmail.com, size=1214, nrcpt=2 (queue active)
Jan 21 20:52:52 raspberrypi postfix/smtpd[1360]: connect from localhost.localdomain[127.0.0.1]
Jan 21 20:52:52 raspberrypi postfix/smtpd[1360]: 91C3690: client=localhost.localdomain[127.0.0.1]
Jan 21 20:52:52 raspberrypi postfix/cleanup[1375]: 91C3690: message-id=1642769572.8e614999a8be9c8e@raspberrypi
Jan 21 20:52:52 raspberrypi postfix/qmgr[1028]: 91C3690: from=monitoring@gmail.com, size=1214, nrcpt=2 (queue active)
Jan 21 20:52:52 raspberrypi postfix/smtpd[1360]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 21 20:52:52 raspberrypi postfix/pipe[1382]: 8B6208D: to=openmediavault-notification@localhost.localdomain, relay=omvnotificationfilter, delay=0.05, delays=0/0/0/0.04, dsn=2.0.0, status=sent (delivered via
Jan 21 20:52:53 raspberrypi postfix/pipe[1382]: 8DD1D8E: to=openmediavault-notification@localhost.localdomain, relay=omvnotificationfilter, delay=1.1, delays=0/1/0/0.07, dsn=2.0.0, status=sent (delivered via o
Jan 21 20:52:53 raspberrypi postfix/smtp[1383]: 8B6208D: replace: header Subject: Monitoring alert – Status failed mountpoint_srv_de: Subject: [raspberrypi] Monitoring alert – Status failed mountpoint_srv_dev-
Jan 21 20:52:54 raspberrypi postfix/smtp[1383]: 8B6208D: to=myemail@gmail.com, relay=smtp.gmail.com[74.125.68.108]:587, delay=1.8, delays=0/0/1.1/0.74, dsn=2.0.0, status=sent (250 2.0.0 OK 1642769574
Jan 21 20:52:54 raspberrypi postfix/qmgr[1028]: 8B6208D: removed
Jan 21 20:52:54 raspberrypi postfix/pipe[1382]: 8F6DB8F: to=openmediavault-notification@localhost.localdomain, relay=omvnotificationfilter, delay=1.9, delays=0.01/1.8/0/0.07, dsn=2.0.0, status=sent (delivered
Jan 21 20:52:55 raspberrypi postfix/pipe[1382]: 91C3690: to=openmediavault-notification@localhost.localdomain, relay=omvnotificationfilter, delay=2.9, delays=0/2.8/0/0.07, dsn=2.0.0, status=sent (delivered via
Jan 21 20:52:56 raspberrypi postfix/smtp[1383]: 8DD1D8E: replace: header Subject: Monitoring alert – Status failed mountpoint_srv_de: Subject: [raspberrypi] Monitoring alert – Status failed mountpoint_srv_dev-
Jan 21 20:52:57 raspberrypi postfix/smtp[1383]: 8DD1D8E: to=myemail@gmail.com, relay=smtp.gmail.com[74.125.68.109]:587, delay=4.6, delays=0/2.9/1.1/0.71, dsn=2.0.0, status=sent (250 2.0.0 OK 164276957
Jan 21 20:52:57 raspberrypi postfix/qmgr[1028]: 8DD1D8E: removed
Jan 21 20:52:59 raspberrypi postfix/smtp[1383]: 8F6DB8F: replace: header Subject: Monitoring alert – Status failed mountpoint_srv_de: Subject: [raspberrypi] Monitoring alert – Status failed mountpoint_srv_dev-
Jan 21 20:53:00 raspberrypi postfix/smtp[1383]: 8F6DB8F: to=myemail@gmail.com, relay=smtp.gmail.com[74.125.68.108]:587, delay=7.8, delays=0.01/5.6/1.1/1, dsn=2.0.0, status=sent (250 2.0.0 OK 164276958
Jan 21 20:53:00 raspberrypi postfix/qmgr[1028]: 8F6DB8F: removed
Jan 21 20:53:00 raspberrypi smbd[1708]: [2022/01/21 20:53:00.742047, 0] …/source3/smbd/service.c:782(make_connection_snum)
Jan 21 20:53:00 raspberrypi smbd[1708]: make_connection_snum: canonicalize_connect_path failed for service sharedOMV, path /srv/e9995ab3-8343-4454-8f50-6979ffda167c/sharedOMV
Jan 21 20:53:01 raspberrypi CRON[1709]: pam_unix(cron:session): session opened for user root by (uid=0)
Jan 21 20:53:01 raspberrypi CRON[1710]: (root) CMD (/usr/sbin/omv-ionice >/dev/null 2>&1)
Jan 21 20:53:01 raspberrypi CRON[1709]: pam_unix(cron:session): session closed for user root
Jan 21 20:53:02 raspberrypi postfix/smtp[1383]: 91C3690: replace: header Subject: Monitoring alert – Status failed mountpoint_srv_de: Subject: [raspberrypi] Monitoring alert – Status failed mountpoint_srv_dev-
Jan 21 20:53:03 raspberrypi postfix/smtp[1383]: 91C3690: to=myemail@gmail.com, relay=smtp.gmail.com[74.125.68.108]:587, delay=11, delays=0/8.7/1.1/0.73, dsn=2.0.0, status=sent (250 2.0.0 OK 1642769583
Jan 21 20:53:03 raspberrypi postfix/qmgr[1028]: 91C3690: removed
Jan 21 20:53:10 raspberrypi smbd[1716]: [2022/01/21 20:53:10.843853, 0] …/source3/smbd/service.c:782(make_connection_snum)
Jan 21 20:53:10 raspberrypi smbd[1716]: make_connection_snum: canonicalize_connect_path failed for service sharedOMV, path /srv/e9995ab3-8343-4454-8f50-6979ffda167c/sharedOMV
Jan 21 20:53:20 raspberrypi smbd[1717]: [2022/01/21 20:53:20.936336, 0] …/source3/smbd/service.c:782(make_connection_snum)
Jan 21 20:53:20 raspberrypi smbd[1717]: make_connection_snum: canonicalize_connect_path failed for service sharedOMV, path /srv/e9995ab3-8343-4454-8f50-6979ffda167c/sharedOMV
Jan 21 20:53:22 raspberrypi monit[905]: Filesystem ‘/srv/dev-disk-by-uuid-1b9ed4d1-d13f-4fe4-89f6-6b3ee3440ad7’ not mounted
Jan 21 20:53:22 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-1b9ed4d1-d13f-4fe4-89f6-6b3ee3440ad7’ unable to read filesystem ‘/srv/dev-disk-by-uuid-1b9ed4d1-d13f-4fe4-89f6-6b3ee3440ad7’ state
Jan 21 20:53:22 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-1b9ed4d1-d13f-4fe4-89f6-6b3ee3440ad7’ trying to restart
Jan 21 20:53:22 raspberrypi monit[905]: ‘mountpoint_srv_dev-disk-by-uuid-1b9ed4d1-d13f-4fe4-89f6-6b3ee3440ad7’ status failed (1) – /srv/dev-disk-by-uuid-1b9ed4d1-d13f-4fe4-89f6-6b3ee3440ad7 is not a mountpoint
Jan 21 20:53:22 raspberrypi monit[905]: Filesystem ‘/srv/dev-disk-by-uuid-e1a166d2-df1f-44b6-95c6-3d47c4f3f9d3’ not mounted
Jan 21 20:53:22 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-e1a166d2-df1f-44b6-95c6-3d47c4f3f9d3’ unable to read filesystem ‘/srv/dev-disk-by-uuid-e1a166d2-df1f-44b6-95c6-3d47c4f3f9d3’ state
Jan 21 20:53:22 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-e1a166d2-df1f-44b6-95c6-3d47c4f3f9d3’ trying to restart
Jan 21 20:53:22 raspberrypi monit[905]: ‘mountpoint_srv_dev-disk-by-uuid-e1a166d2-df1f-44b6-95c6-3d47c4f3f9d3’ status failed (1) – /srv/dev-disk-by-uuid-e1a166d2-df1f-44b6-95c6-3d47c4f3f9d3 is not a mountpoint
Jan 21 20:53:22 raspberrypi monit[905]: Filesystem ‘/srv/dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff’ not mounted
Jan 21 20:53:22 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff’ unable to read filesystem ‘/srv/dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff’ state
Jan 21 20:53:22 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff’ trying to restart
Jan 21 20:53:22 raspberrypi monit[905]: ‘mountpoint_srv_dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff’ status failed (1) – /srv/dev-disk-by-uuid-796fe23c-4abc-4c6b-afff-2fc82dc8d3ff is not a mountpoint
Jan 21 20:53:22 raspberrypi monit[905]: Filesystem ‘/srv/dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ not mounted
Jan 21 20:53:22 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ unable to read filesystem ‘/srv/dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ state
Jan 21 20:53:22 raspberrypi monit[905]: ‘filesystem_srv_dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ trying to restart
Jan 21 20:53:22 raspberrypi monit[905]: ‘mountpoint_srv_dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153’ status failed (1) – /srv/dev-disk-by-uuid-624ba45f-bda7-434d-a148-ba164dafd153 is not a mountpoint
Jan 21 20:53:31 raspberrypi smbd[1725]: [2022/01/21 20:53:31.033327, 0] …/source3/smbd/service.c:782(make_connection_snum)
Jan 21 20:53:31 raspberrypi smbd[1725]: make_connection_snum: canonicalize_connect_path failed for service sharedOMV, path /srv/e9995ab3-8343-4454-8f50-6979ffda167c/sharedOMV
Jan 21 20:53:40 raspberrypi smbd[1726]: [2022/01/21 20:53:40.135040, 0] …/source3/smbd/service.c:782(make_connection_snum)
Jan 21 20:53:40 raspberrypi smbd[1726]: make_connection_snum: canonicalize_connect_path failed for service sharedOMV, path /srv/e9995ab3-8343-4454-8f50-6979ffda167c/sharedOMV
Jan 21 20:53:46 raspberrypi sudo[1727]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/journalctl -e
Jan 21 20:53:46 raspberrypi sudo[1727]: pam_unix(sudo:session): session opened for user root by root(uid=0)

Please tell me the result of
netstat -l | grep -o '\S*:8888'

hi @setq, sure, pls refer below:

root@raspberrypi:~# netstat -l | grep -o ‘\S*:8888’
localhost.localdom:8888

On my OS the requested command output is: localhost:8888
You can see in your log that somewhy the rockpi-sata cannot connect to localhost.localdom(8888) which is the pigpio service.

I think the problem will be in the pigpiod service file or maybe you have to change values inside the rockpi-sata Python files (/usr/bin/rockpi-sata).

I am not sure about the reason, but I hope @setq will have some ideas.

I also get localhost:8888 when I install a new system.

Have you ever edited /etc/hosts? @LouiE

I will try my best to get the correct host in the script.

Changed the content in the /etc/hosts from

127.0.0.1 localhost.localdomain localhost

to

127.0.0.1 localhost

did the trick. No exactly sure how it got changed in the first place. Thanks everyone, especially @setq @RayMondDrakon, really appreciate it!

1 Like