Failed to start detection_server.service #2

Closed
bafu opened this Issue May 13, 2017 · 7 comments

Comments

Projects
None yet
4 participants
Owner

bafu commented May 13, 2017

Reported by L kouchla kouchlah@gmail.com:

Hi;

I executed the command ./configure and the instllation is completed. But I think some packages or files are missing during the installation.

When I run "berrynet-manager start", it tells me that it does not find the commnade.

When I run "./berrynet-manager start". it says :

Failed to start detection_server.service: Unit detection_server.service failed to load: No such filectory.

Services: broker, dashborad, localim, camera, newspaper and cleaner failed to start.

What am I doing wrong ?

Is ther a step by step tutorial for installation

Thank you

samrudh commented May 13, 2017

Owner

bafu commented May 13, 2017

@samrudh Sorry for hitting this problem. I'm trying to reproduce it. If this issue exists, it should be HW-independent.

BerryNet is only tested on RPi3 currently.

arvdsar commented May 13, 2017

I have the same issue on RPi3. Clean OS install (2017-04-10-raspbian-jessie-lite), apt-get update and upgrade. Next I've ran the setup.
Failed to start all services with message: No such file or directory

I also have the same issue. I did some debugging but didn't get quite to the bottom of it. It looks like its file path / file reference problems.
FIrst of all, the .system files weren't in /etc/systemd/system and I tried manually moving there, and afterwards berrynet-manager started working.
However, when running berrynet-manager status each service seems to be searching for the .js files associated with them. For example, camera.service is looking for camera.js but can't resolve the file when its spinning up. I am not clear if it expects to to be in /etc/systemd/system or /usr/bin/node but either way it just doesn't seem like everything is referencing where it should after the ./configure process finishes.

arvdsar commented May 13, 2017 edited

Seems you also need to:
sudo cp -a broker.js camera.js cleaner.sh config.js dashboard inference journal.js localimg.js mail.js package.json /usr/local/rpi3-ai-gateway

The files are located in ~/Berrynet and were not copied.
Next go to /usr/local/rpi3-ai-gateway and run:
sudo npm install
Now a bunch of files are build in /usr/local/rpi3-ai-gateway/node_modules

Seems the configuration script fails from the line: install_systemd_configs() and further

Not sure if all is done now, but at least a little progress ;-)

(It still doesn't work, seems dashboard is missing)

Owner

bafu commented May 13, 2017

The root cause is that the systemd service files are installed in the correct directory. The installer enters a wrong directory and can not find them.

bafu closed this in 97c88b7 May 13, 2017

Owner

bafu commented May 13, 2017

@arvdsar @bradleyscott Sorry for hitting the problem. Here are more details: installer (configure) stayed in a wrong directory after the download_detector_model function.

The installation steps of dashboard, systemd configs, and gateway files (.js) are after this function, so all of their installation are failed (bad!). Thank you for your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment