BreeeZe/rpos

Can't indeed start service

VCTGomes opened this issue · 1 comments

If I use node rpos.js command, service start and I'm able to connect my RTSP camera into my NVR and everything looks good.

However I can't close terminal, other side service stop and my camera stops.

This is the following log:

root@rpos:/usr/rpos# node rpos.js
cat: /proc/device-tree/model: No such file or directory
Failed to read serial : Cannot read property '1' of null
Read IP address 192.168.2.216 from eth0
Manufacturer : RPOS Proxy
Model : PROXY
HardwareId :
SerialNumber : 000000000
FirmwareVersion : 2.1.0
Starting camera settings webserver on http://192.168.2.216:8081/
Cannot open device /dev/video0, exiting.
Cannot open device /dev/video0, exiting.
Cannot open device /dev/video0, exiting.
Cannot open device /dev/video0, exiting.
Cannot open device /dev/video0, exiting.
Cannot open device /dev/video0, exiting.
Could not retrieve Controlvalue 'brightness'
Could not retrieve Controlvalue 'contrast'
Could not retrieve Controlvalue 'saturation'
Could not retrieve Controlvalue 'red_balance'
Could not retrieve Controlvalue 'blue_balance'
Could not retrieve Controlvalue 'horizontal_flip'
Could not retrieve Controlvalue 'vertical_flip'
Could not retrieve Controlvalue 'power_line_frequency'
Could not retrieve Controlvalue 'sharpness'
Could not retrieve Controlvalue 'color_effects'
Could not retrieve Controlvalue 'rotate'
Could not retrieve Controlvalue 'color_effects_cbcr'
Could not retrieve Controlvalue 'video_bitrate_mode'
Could not retrieve Controlvalue 'video_bitrate'
Could not retrieve Controlvalue 'repeat_sequence_header'
Could not retrieve Controlvalue 'h264_i_frame_period'
Could not retrieve Controlvalue 'h264_level'
Could not retrieve Controlvalue 'h264_profile'
Could not retrieve Controlvalue 'auto_exposure'
Could not retrieve Controlvalue 'exposure_time_absolute'
Could not retrieve Controlvalue 'exposure_dynamic_framerate'
Could not retrieve Controlvalue 'auto_exposure_bias'
Could not retrieve Controlvalue 'white_balance_auto_preset'
Could not retrieve Controlvalue 'image_stabilization'
Could not retrieve Controlvalue 'iso_sensitivity'
Could not retrieve Controlvalue 'exposure_metering_mode'
Could not retrieve Controlvalue 'scene_mode'
Could not retrieve Controlvalue 'compression_quality'
Binding DeviceService to http://192.168.2.216:8081/onvif/device_service
Binding MediaService to http://192.168.2.216:8081/onvif/media_service
Binding PTZService to http://192.168.2.216:8081/onvif/ptz_service
Binding ImagingService to http://192.168.2.216:8081/onvif/imaging_service
discovery_service started
device_service started
Starting rtsp server
media_service started
ptz_service started
imaging_service started
(node:9473) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
No Username/Password (ws-security) supplied for GetServices
No Username/Password (ws-security) supplied for GetCapabilities

I tried to convert rpos as a sevice to be executed for systemctl, but it got a failed message