#Crowsnest .log_patch not found with make install

76 messages · Page 1 of 1 (latest)

pulsar thorn
#

Installing 'crowsnest' Dependencies ... [OK]
Linking crowsnest ... [OK]
Found existing 'crowsnest.conf' in /home/tom/printer_data/config
Checking log_path ...
Parameter not found: log_path
make: *** [Makefile:37: install] Fehler 1
tom@Vulcan:~/crowsnest$

left reef
#

Open your crows nest.conf and change the path

#

It should look like

#

I guess you have an old version before moonraker changed the path

pulsar thorn
#

[crowsnest]
log_patch: ~/printer_data/logs/crowsnest.log

#

is the entry i have...

#

ha..i got it ..again somehow spellchecking made math to patch ...ahrg

#

path

pulsar thorn
#

now install went fine (no errors), but cam does not show up, nor is something written in the logfile (0 byte) (i created it manually)

left reef
#

Hav you repowered the Pi after plug-in the cam?

pulsar thorn
#

yes

left reef
#

ssh in the pi

#

sudo service crowsnest status

pulsar thorn
#

i see two video devices, but i only have one camera connected

#

● crowsnest.service - crowsnest - Multi Webcam/Streamer Control Deamon
Loaded: loaded (/etc/systemd/system/crowsnest.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-11-18 11:35:08 CET; 3min 51s ago
Docs: https://github.com/mainsail-crew/crowsnest
Process: 3012 ExecStart=/usr/local/bin/crowsnest $CROWSNEST_ARGS (code=exited, status=1/FAILURE)
Main PID: 3012 (code=exited, status=1/FAILURE)
CPU: 352ms

Nov 18 11:35:05 Vulcan systemd[1]: crowsnest.service: Failed with result 'exit-code'.
Nov 18 11:35:08 Vulcan systemd[1]: Stopped crowsnest - Multi Webcam/Streamer Control Deamon.
Nov 18 11:35:11 Vulcan systemd[1]: crowsnest.service: Start request repeated too quickly.
Nov 18 11:35:11 Vulcan systemd[1]: crowsnest.service: Failed with result 'exit-code'.
Nov 18 11:35:11 Vulcan systemd[1]: Failed to start crowsnest - Multi Webcam/Streamer Control Deamon.

GitHub

This Repo contains an Webcam Service for multiple Cams and Services. - GitHub - mainsail-crew/crowsnest: This Repo contains an Webcam Service for multiple Cams and Services.

#

ahhh..errors

left reef
#

That’s normal most cams use 2..4 devices

#

The service does not run

#

Please wait for @obtuse flicker

obtuse flicker
#

I am at work currently but you could prepare something.

#

Run
cd
cd crowsnest
make report
This will generate a report.txt in your Homefolder. Please upload that.

pulsar thorn
pulsar thorn
#

did it with sudo

obtuse flicker
#

Please delete and repeat without sudo.

#

Sudo will prevent to get the right paths

pulsar thorn
#

ok, but without it fails

#

make: *** [Makefile:57: report] Fehler 1

#

df: /run/user/1000/doc: Operation not permitted

#

all files belong user Tom. all are at least rw

#

is df = diskfree ?

#

df:

#

Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
udev 1803744 0 1803744 0% /dev
tmpfs 367988 2920 365068 1% /run
/dev/sda2 29097996 9495072 18099488 35% /
tmpfs 1839924 0 1839924 0% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
/dev/sda1 523244 3496 519748 1% /boot/efi
tmpfs 367984 48 367936 1% /run/user/1000
tmpfs 367984 44 367940 1% /run/user/113
tmpfs 367984 44 367940 1% /run/user/0

obtuse flicker
#

So...

#

I checked it twice, seems that df is acting different on x86 machines what shouldnt be the case. But I patched it

#

Please update crowsnest and run it again without sudo

pulsar thorn
#

so, now back home again. Done it withoud sudo command, but bash asked me for a sudo password

#

ok, there are two errors...Log file (crowsnest.log
):
/home/tom/printer_data/logs/crowsnest.log
not found! [FAILED]

Installer .config file ():
/home/tom/crowsnest/tools/.config not found! [FAILED]

#

and for the missing.config...

#

no hidden files

obtuse flicker
#

Well, ignore .config

#

Thats used if you want to customize paths

#

But I've found your error and it seems my Docs are misleading

#

Please use for cam section [cam Ender_main] istead of [ender_main]

pulsar thorn
#

ok. seemed like a rights thing, i set read/write for all users and restarted..now i get an log file...

#

2 20:48:06] crowsnest: Supported Controls:
[11/18/22 20:48:06] crowsnest: brightness 0x00980900 (int) : min=1 max=255 step=1 default=16 value=16
[11/18/22 20:48:06] crowsnest: contrast 0x00980901 (int) : min=1 max=255 step=1 default=16 value=16
[11/18/22 20:48:06] crowsnest: hue 0x00980903 (int) : min=-128 max=127 step=1 default=16 value=16
[11/18/22 20:48:06] crowsnest: INFO: No usable CSI Devices found.
[11/18/22 20:48:06] crowsnest: V4L2 Control:
[11/18/22 20:48:06] crowsnest: No parameters set for [cam Ender_main]. Skipped.
[11/18/22 20:48:07] crowsnest: ERROR: Error 1 occured on line 147
[11/18/22 20:48:07] crowsnest: ERROR: Stopping crowsnest.
[11/18/22 20:48:07] crowsnest: Goodbye...

obtuse flicker
#

cam is a keyword here and parsed by script

pulsar thorn
#

ahh..changed it ..restart

#

ok , now thats a really step better..getting fps now, but a sign "no signal"

obtuse flicker
#

This doesnt sound good, tbh

pulsar thorn
#

i will do a complete reboot...

obtuse flicker
#

    [0]: 'MJPG' (Motion-JPEG, compressed)
        Size: Discrete 1920x1080
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
        Size: Discrete 1280x720
            Interval: Discrete 0.033s (30.000 fps)
        Size: Discrete 800x480
            Interval: Discrete 0.033s (30.000 fps)
        Size: Discrete 640x480
            Interval: Discrete 0.033s (30.000 fps)
        Size: Discrete 640x360
            Interval: Discrete 0.033s (30.000 fps)
        Size: Discrete 320x240
            Interval: Discrete 0.033s (30.000 fps)
        Size: Discrete 176x144
            Interval: Discrete 0.033s (30.000 fps)
        Size: Discrete 800x600
            Interval: Discrete 0.033s (30.000 fps)
        Size: Discrete 1920x1080
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.033s (30.000 fps)```
#
/home/tom/printer_data/config/crowsnest.conf found! [OK]

Print config file:

     1    [crowsnest]
     2    log_path: ~/printer_data/logs/crowsnest.log
     3    log_level: verbose
     4    
     5    [Ender_main]
     6    mode: mjpg
     7    port: 8080
     8    device: /dev/v4l/by-id/usb-GENERAL_GENERAL_WEBCAM_JH0319_20210727_v017-video-index1 
     9    #/dev/video0
    10    resolution: 1024x768
    11    max_fps: 20
#

Do you see the Error ?

pulsar thorn
#

works now..needed to change klippers setting to "mjep stream" from "adaptive mpeg"

#

thats the "old" config without cam , right ?

#

Thank you for supprt, Stephan!

obtuse flicker
#

You're welcome mainsail_heart
To get adaptive working you simply have to use a resolution supported by your cam 😉

#

1280x720 for ex.

pulsar thorn
#

hmm..that was the compatible one i chose

obtuse flicker
#

Use the ones from MJPG

pulsar thorn
#

..gonna test it

#

and also brightness.

#

ah..switching betweend adaptive and mpeg needs not only a restart of crowsnest, but also a browserrefresh..

obtuse flicker
#

Oh yes, I forgot sry 😬

pulsar thorn
#

#brightness 0x00980900 (int) : min=1 max=255 step=1 default=16 value=16..is what i want to set..not sure how to read the doc..hue: 20 ?

obtuse flicker
#

v4l2ctl: brightness=<yourdesiredvalue>

#

If you want add more use , to seperate parameters

pulsar thorn
#

hmm looks no different 4 vs. 200 brightness...restartet of course

obtuse flicker
#

May possible that cam reports setting but its hardcoded in cam firmware

pulsar thorn
#

well must be enough for now..guess i have to install LED´s first anyways...thanks again for your support ! maybe you want to integrate the camera capabilities with the installroutine into the logfile (and comment it out= if it is connected ?

#

ah..could be..i will test with my other cam at the weekend.

#

this is a 19euro cam..the other one a 70

#

so, dinners calls...

obtuse flicker
#

Have good meal, Camera capabilities are already in the Log 😉