Code Monkey home page Code Monkey logo

Comments (12)

SvenVD avatar SvenVD commented on June 30, 2024

Do you still have the wired connection plugged in? Rpisurv start the moment there at least one network device which is up

from rpisurv.

si458 avatar si458 commented on June 30, 2024

its wireless only, no lan cable plugged in :(

from rpisurv.

SvenVD avatar SvenVD commented on June 30, 2024

Can you try:

systemctl enable systemd-networkd-wait-online.service

from rpisurv.

si458 avatar si458 commented on June 30, 2024

Sorry for delay

pi@raspberrypi:~ $ systemctl enable systemd-networkd-wait-online.service
Failed to enable unit: The name org.freedesktop.PolicyKit1 was not provided by any .service files
pi@raspberrypi:~ $

from rpisurv.

si458 avatar si458 commented on June 30, 2024

Sorry ignore that forgot to use sudo

That enabled the service but after reboot it still loads before the network and says all streams are not available

from rpisurv.

si458 avatar si458 commented on June 30, 2024

Pi@raspberrypi:~ $ sudo systemctl enable systemd-networkd-wait-online.service
Created symlink /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service → /lib/systemd/system/systemd-networkd-wait-online.service.
pi@raspberrypi:~ $

from rpisurv.

Jmtyra avatar Jmtyra commented on June 30, 2024

I had a similar issue with rpisurv loading before the network was ready, wired only in my situation. Enabling systemd-networkd-wait-online.service did not resolve the issue.

Editing the /usr/bin/rpisurv file and adding /bin/sleep 10 resolved the issue in my case. This provided enough of a delay for the network to be active. Resulting rpisurv file:

2017-12-19 20_06_33-sighthound-dmz - vmware remote console

from rpisurv.

SvenVD avatar SvenVD commented on June 30, 2024

I can not reproduce the issue. Could you try to

Wants=network-online.target

to the systemd file and reboot

` cat /etc/systemd/system/rpisurv.service
[Unit]
Description=Rpisurv Raspberry Pi Surveillance
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/rpisurv
KillMode=control-group
Restart=on-failure

[Install]
WantedBy=multi-user.target
`

from rpisurv.

Jmtyra avatar Jmtyra commented on June 30, 2024

My current systemd file already has these lines in place.

Edit: Perhaps it's due to my network configuration? Normally this RPi is on a separate network without DHCP, but for troubleshooting/updates/etc it is then physically moved to a different network which does have DHCP enabled. Ergo my /etc/dhcpcd.conf file is as follows:

image

from rpisurv.

SvenVD avatar SvenVD commented on June 30, 2024

I run rpisurv (rpi 2) on dhcp but wired. I do not see any issues with dhcp configured.

from rpisurv.

Jmtyra avatar Jmtyra commented on June 30, 2024

Might be something unique with my setup. Thank you for looking into this issue. :)

from rpisurv.

si458 avatar si458 commented on June 30, 2024

I can not reproduce the issue. Could you try to

Wants=network-online.target

to the systemd file and reboot

` cat /etc/systemd/system/rpisurv.service
[Unit]
Description=Rpisurv Raspberry Pi Surveillance
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/rpisurv
KillMode=control-group
Restart=on-failure

[Install]
WantedBy=multi-user.target
`

Hi,

so after not doing anything on surveillance tasks for awhile, im back to surveillance tasks again

and i started having this issue again, however adding the line 'Wants=network-online.target' fixed my issue!

can you update the service file to include this line as it might help others :)

from rpisurv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.