OpenIPC / majestic

Majestic Community edition integration kit
MIT License
31 stars 5 forks source link

Ignoring path errors and overlay video recording #127

Closed flyrouter closed 9 months ago

flyrouter commented 1 year ago

Today I ran into a problem when there was no external drive, and the video was recorded in the camera overlay. When repeating the problem I found that the type of media does not matter, USB Flash or SD card is connected.

root@openipc-gk7205v300:~# cat /tmp/maj2.log

2023-06-19 21:04:11 INFO  main:125: Majestic Ultimate for HiSilicon, version master+9b9e089f, built on 2023-06-13
2023-06-19 21:04:11 INFO  app_config:89: Using /etc/majestic.yaml as main configuration
2023-06-19 21:04:11 ERROR tools:452: statfs for /mnt/sda1/records/ is No such file or directory
2023-06-19 21:04:11 DEBUG watchdog:101: Detected Watchdog
2023-06-19 21:04:11 DEBUG watchdog:121: Watchdog timeout set to 10 seconds
2023-06-19 21:04:11 INFO  sdk:415: Using /etc/sensors/imx335_i2c_4M.ini sensor configuration file
2023-06-19 21:04:11 WARN  sensor_config:938: Set custom sensor clock mode: 27MHz
2023-06-19 21:04:11 INFO  puts:0: linear mode
2023-06-19 21:04:11 INFO  puts:0: binit false IMX335 i2c init
2023-06-19 21:04:11 INFO  puts:0: -------Sony IMX335_init_5M_2592x1944_12bit_linear30 Initial OK!-------
2023-06-19 21:04:11 INFO  sdk:344: Loading IQ profile /etc/sensors/iq/default.ini
2023-06-19 21:04:11 INFO  httpd:368: HTTP server started on :::80
2023-06-19 21:04:11 INFO  rtsp:31: RTSP server started on port 554
2023-06-19 21:04:15 INFO  main:209: Shutdown main thread

root@openipc-gk7205v300:~# ls /mnt/sda1/records/2023/06/19/*

/mnt/sda1/records/2023/06/19/21.mp4
flyrouter commented 9 months ago

Fixed