Restart camera.js every 5 seconds, if registred 60-80 cameras



  • When 60 to 80 cameras are registered, after reboot server camera.js restarted every 5 seconds.
    All cameras are tested in groups of 20 cameras - everything works fine.
    Tested on: Ubuntu 16.04.4 without updates , 16.04.6 last updates
    Tested on Version CE and PRO
    Instaled :in default directories and default database
    Cpu 2xeon 5472 mem 16000

    On all tests - the same errors :
    [email protected]:/home/Shinobi# pm2 status
    ┌──────────┬────┬─────────┬──────┬───────┬────────┬─────────┬────────┬──────┬───────────┬──────┬──────────┐
    │ App name │ id │ version │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
    ├──────────┼────┼─────────┼──────┼───────┼────────┼─────────┼────────┼──────┼───────────┼──────┼──────────┤
    │ camera │ 0 │ 2.0.0 │ fork │ 15802 │ online │ 579 │ 6s │ 0% │ 82.1 MB │ root │ disabled │
    │ cron │ 1 │ 2.0.0 │ fork │ 1187 │ online │ 0 │ 62m │ 0.2% │ 58.8 MB │ root │ disabled │
    └──────────┴────┴─────────┴──────┴───────┴────────┴─────────┴────────┴──────┴───────────┴──────┴──────────┘
    Use pm2 show <id|name> to get more details about an app
    [email protected]:/home/Shinobi# pm2 log -line 100
    [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
    /root/.pm2/pm2.log last 15 lines:
    PM2 | 2019-03-17T14:39:59: PM2 log: App [camera:0] exited with code [1] via signal [SIGINT]
    PM2 | 2019-03-17T14:39:59: PM2 log: App [camera:0] starting in -fork mode-
    PM2 | 2019-03-17T14:39:59: PM2 log: App [camera:0] online
    PM2 | 2019-03-17T14:40:05: PM2 log: App [camera:0] exited with code [1] via signal [SIGINT]
    PM2 | 2019-03-17T14:40:05: PM2 log: App [camera:0] starting in -fork mode-
    PM2 | 2019-03-17T14:40:05: PM2 log: App [camera:0] online
    PM2 | 2019-03-17T14:40:11: PM2 log: App [camera:0] exited with code [1] via signal [SIGINT]
    PM2 | 2019-03-17T14:40:11: PM2 log: App [camera:0] starting in -fork mode-
    PM2 | 2019-03-17T14:40:11: PM2 log: App [camera:0] online
    PM2 | 2019-03-17T14:40:17: PM2 log: App [camera:0] exited with code [1] via signal [SIGINT]
    PM2 | 2019-03-17T14:40:17: PM2 log: App [camera:0] starting in -fork mode-
    PM2 | 2019-03-17T14:40:17: PM2 log: App [camera:0] online
    PM2 | 2019-03-17T14:40:23: PM2 log: App [camera:0] exited with code [1] via signal [SIGINT]
    PM2 | 2019-03-17T14:40:23: PM2 log: App [camera:0] starting in -fork mode-
    PM2 | 2019-03-17T14:40:23: PM2 log: App [camera:0] online

    /root/.pm2/logs/cron-error.log last 15 lines:
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable
    1|cron | cron: can't lock /var/run/crond.pid, otherpid may be 79: Resource temporarily unavailable

    /root/.pm2/logs/cron-out.log last 15 lines:
    1|cron | Shinobi : cron.js started
    1|cron | Shinobi : cron.js started
    1|cron | Shinobi : cron.js started
    1|cron | Shinobi : cron.js started
    1|cron | Shinobi : cron.js started
    1|cron | Shinobi : cron.js started
    1|cron | Shinobi : cron.js started

    /root/.pm2/logs/camera-error.log last 15 lines:
    0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    0|camera | at emitOne (events.js:116:13)
    0|camera | at Socket.emit (events.js:211:7)
    0|camera | at addChunk (_stream_readable.js:263:12)
    0|camera | at readableAddChunk (_stream_readable.js:250:11)
    0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    0|camera | at Pipe.onread (net.js:601:20)
    0|camera | TypeError: snapBuffer.push is not a function
    0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    0|camera | at emitOne (events.js:116:13)
    0|camera | at Socket.emit (events.js:211:7)
    0|camera | at addChunk (_stream_readable.js:263:12)
    0|camera | at readableAddChunk (_stream_readable.js:250:11)
    0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    0|camera | at Pipe.onread (net.js:601:20)

    /root/.pm2/logs/camera-out.log last 15 lines:
    0|camera | Shinobi : Web Server Listening on 8080
    0|camera | 2019-03-17T14:40:20+00:00 [email protected] : Checking Disk Used..
    0|camera | 2019-03-17T14:40:20+00:00 [email protected] : Completed Checking Disk Used. : 0
    0|camera | 2019-03-17T14:40:20+00:00 Starting Monitors... Please Wait...
    0|camera | No "ffbinaries". Continuing.
    0|camera | Run "npm install ffbinaries" to get this static FFmpeg downloader.
    0|camera | No "ffmpeg-static".
    0|camera | Available Hardware Acceleration Methods : vdpau, vaapi, cuvid
    0|camera | FFmpeg version : 3.4.4-1~16.04.york0
    0|camera | Node.js version : v8.15.1
    0|camera |
    0|camera | Shinobi : Web Server Listening on 8080
    0|camera | 2019-03-17T14:40:26+00:00 [email protected] : Checking Disk Used..
    0|camera | 2019-03-17T14:40:26+00:00 [email protected] : Completed Checking Disk Used. : 0
    0|camera | 2019-03-17T14:40:26+00:00 Starting Monitors... Please Wait...

    0|camera | TypeError: snapBuffer.push is not a function
    0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    0|camera | at emitOne (events.js:116:13)
    0|camera | at Socket.emit (events.js:211:7)
    0|camera | at addChunk (_stream_readable.js:263:12)
    0|camera | at readableAddChunk (_stream_readable.js:250:11)
    0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    0|camera | at Pipe.onread (net.js:601:20)
    PM2 | App [camera:0] exited with code [1] via signal [SIGINT]
    PM2 | App [camera:0] starting in -fork mode-
    PM2 | App [camera:0] online
    0|camera | No "ffbinaries". Continuing.
    0|camera | Run "npm install ffbinaries" to get this static FFmpeg downloader.
    0|camera | No "ffmpeg-static".
    0|camera | Available Hardware Acceleration Methods : vdpau, vaapi, cuvid
    0|camera | FFmpeg version : 3.4.4-1~16.04.york0
    0|camera | Node.js version : v8.15.1
    0|camera | Shinobi : Web Server Listening on 8080
    0|camera | 2019-03-17T14:40:33+00:00 [email protected] : Checking Disk Used..
    0|camera | 2019-03-17T14:40:33+00:00 [email protected] : Completed Checking Disk Used. : 0
    0|camera | 2019-03-17T14:40:33+00:00 Starting Monitors... Please Wait...



  • I have this bug too. i have 40 cameras. I dont know what i can do, i try with virtual machine and without it. I have try all variants today and its not work.
    I find it on pm2 log
    0|camera | TypeError: snapBuffer.push is not a function
    0|camera | at Socket.<anonymous> (/srv/shinobi/Shinobi/libs/monitor.js:108:46)
    0|camera | at emitOne (events.js:116:13)
    0|camera | at Socket.emit (events.js:211:7)
    0|camera | at addChunk (_stream_readable.js:263:12)
    0|camera | at readableAddChunk (_stream_readable.js:250:11)
    0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    0|camera | at Pipe.onread (net.js:601:20)



  • Moe Alam, can you help us?


  • administrators

    @marioevangelista said in Restart camera.js every 5 seconds, if registred 60-80 cameras:

    Moe Alam, can you help us?

    This happened to me too. The way I fixed it was to downgrade the version of PM2. the latest version causes it to crash for some reason.

    npm i npm -g
    npm install [email protected] -g
    

    ran from anywhere. Then pm2 kill to stop all pm2 processes on selected user. Then go to the Shinobi directory and start shinobi again. cd /home/Shinobi && pm2 start camera.js && pm2 start cron.js



  • The camera.js process now does not restart and everything works nominally, but there are errors in the log.

    Out of 10 reloads of KVM and start camera.js in conslole, 5\10 errors in log.

    KVM Proxmox Virtual Environment 5.3-8 CPU(s) 20 x Intel(R) Xeon(R) CPU E5-2665 24gRam
    Shinobi install in default installer(The Ninja Way).All cameras mode view.

    [email protected]:/home/Shinobi# lsb_release -irc
    Distributor ID: Ubuntu
    Release: 18.04
    Codename: bionic
    [email protected]:/home/Shinobi# uname -or
    4.15.0-47-generic GNU/Linux
    [email protected]:/home/Shinobi# npm -v
    6.9.0
    [email protected]:/home/Shinobi# node -v
    v8.15.1
    [email protected]:/home/Shinobi# pm2 -v
    3.0.0

    LOG:
    [email protected]:/home/Shinobi# pm2 start camera.js --no-daemon
    pm2 launched in no-daemon mode (you can add DEBUG="*" env variable to get more messages)
    [2019-04-11T07:55:47.916Z] PM2 log: Launching in no daemon mode
    [2019-04-11T07:55:48.035Z] PM2 log: [PM2] Starting /home/Shinobi/camera.js in fork_mode (1 instance)
    [2019-04-11T07:55:48.038Z] PM2 log: Starting execution sequence in -fork mode- for app name:camera id:0
    [2019-04-11T07:55:48.047Z] PM2 log: App name:camera id:0 online
    [2019-04-11T07:55:48.056Z] PM2 log: [PM2] Done.
    [2019-04-11T07:55:48.076Z] PM2 log: ┌──────────┬────┬──────┬──────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐
    │ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
    ├──────────┼────┼──────┼──────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
    │ camera │ 0 │ fork │ 1851 │ online │ 0 │ 0s │ 0% │ 24.8 MB │ root │ disabled │
    └──────────┴────┴──────┴──────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘
    [2019-04-11T07:55:48.077Z] PM2 log: Use pm2 show <id|name> to get more details about an app
    [2019-04-11T07:55:48.077Z] PM2 log: [--no-daemon] Continue to stream logs
    [2019-04-11T07:55:48.077Z] PM2 log: [--no-daemon] Exit on target PM2 exit pid=1839
    07:55:48 0|camera | No "ffbinaries". Continuing.
    07:55:48 0|camera | Run "npm install ffbinaries" to get this static FFmpeg downloader.
    07:55:48 0|camera | No "ffmpeg-static".
    07:55:48 0|camera | Available Hardware Acceleration Methods : vdpau, vaapi, cuvid
    07:55:50 0|camera | FFmpeg version : 3.4.4-0ubuntu0.18.04.1
    07:55:50 0|camera | Node.js version : v8.15.1
    07:55:50 0|camera | Shinobi : Web Server Listening on 8080
    07:55:51 0|camera | 2019-04-11T07:55:51+00:00 [email protected] : Checking Disk Used..
    07:55:51 0|camera | 2019-04-11T07:55:51+00:00 [email protected] : Completed Checking Disk Used. : 0
    07:55:51 0|camera | 2019-04-11T07:55:51+00:00 Starting Monitors... Please Wait...
    07:55:54 0|camera | 2019-04-11T07:55:54+00:00 Orphaned Videos Found and Inserted : {"admin":{"DUSH_Zal_tanciv":0,"DUSH_Central_Vhid":0,"DUSH_VelZal2":0,"DUSH_VelZal3":0,"DUSH_Cam_Na_Kotelnu":0,"DUSH_Trenazhoor_Zal":0,"DUSH_VelZal1":0,"DUSH_Cam_NA_Vhid_Shkola":0,"DUSH_Cam_Na_Trenageru":0,"DUSH_Cam_Zpasnuy_Vuhid":0,"Cam_Pereiizd_AZS_Zaliznuchna_102":0,"Cam_Zaliznuchna_158_Obolon":0,"Cam_MuzeiParcovka_Zaliznuchna_31":0,"Cam_MuzeiDvir_Zaliznuchna_31":0,"Cam_Pereiizd_Feliks_Zaliznuchna_47":0,"Cam_Truba_Zaliznuchna_40":0,"Cam_Centralna_36_1_Poshta":0,"Cam_Centralna_36_2_Bagrun":0,"Cam_Centralna_33_PIshohodnuu_Mist":0,"Cam_ParkSlavu_Parkova_4":0,"Cam_Centralna_36_3_Vasulkiv":0,"Cam_Centralna_2_Mistok":0,"Cam_CentralPark_Muzei":0,"Cam_BUdunokKulturu_Plosha_Centralna_57":0,"Cam_Centralna_61_Perexrestya_z_L_Ukrainku":0,"Cam_Centralnuu_Stadion":0,"Cam_STO_Sapsan":0,"Cam_ParkSlavu_DNZ_Vesnyanochka_Polyova_45":0,"Cam_Lusenka_Sadova":0,"Cam_Kalinova_4_BMU24":0,"Cam_Garagi_prNovuy_22":0,"Cam_Pushkina_Dutyachuu_maiidanchuk":0,"Cam_CentralnuyPark_litnii_kinoteatr":0,"Cam_Centralna_Pushkina":0,"Cam_Magazin_ABC":0,"Cam_CentralnuyPark_Fontan":0,"Cam_Vhid_v_Skver_ZOSh2":0,"Cam_CentralPark_Vuhid_do_Sport_Shkolu":0,"Cam_Skver_Trenageru_Byuvet":0,"Cam_CentralnuiPark_Byuvet":0,"Cam_CentralPark_Ploshya":0,"Cam_CentralnuiPark_Parkovka":0,"Cam_Skver_Biblioteka":0,"Cam_Central2_Za_Mistkom":0,"Cam_Kotelnya_Matrosova_Sadova":0,"Cam_Centralna_3_Rozvulka":0,"Cam_BudunokPObutu_Parkovka":0,"Cam_Fora_Parkovka":0,"Cam_ZOSH2_Pushkina_CentralnuuVhid":0,"Cam_Muzei_Dvir":0,"Cam_BogdanaHmelnuckogo_Viizd_v_Lis":0,"Cam_Kilceva_2":0,"Cam_Trenageru_Lenina57b":0,"Cam_Ozero_LIs":0,"Cam_Ozero_Slavu":0,"CAm_Pereiizd_Do_Mostu":0,"Cam_Cafe_Pid_Mostom_2":0,"Cam_Magazin_Produktu_Na_Pereiizdi":0,"Cam_Zaliznuchna_122":0,"Cam_Stadion_2":0,"Cam_Stadion_3":0,"Cam_Stadion_4":0,"Cam_Selushnya_Rada_Vhid":0,"Cam_Pereiizd_Bagrun":0,"Cam_Stadion_5":0,"Cam_Stadion_6":0,"Cam_Perehrestya_BogdanaHmelnuckogo":0,"Cam_Centralna_3a_Rozvulka":0,"Cam_Perehrestya_Sadova_Centralna_84":0,"CAm_Ambulatoriya_Nova":0,"Cam_Perehid_Bagrun":0,"Cam_Novi_Gagu":0,"Cam_Lesnaya_1":0,"Cam_ZASTUPNUK":0,"Cam_Selushnya_Rada_Golova":0,"Cam_CelRalda_Korudor_2":0,"Cam_CelRalda_Reestratoru":0,"Cam_CelRalda_Korudor_1":0,"Cam_CelRalda_Pruimalnya":0}}
    07:55:54 0|camera | 2019-04-11T07:55:54+00:00 Shinobi is ready.
    07:55:54 0|camera | TypeError: snapBuffer.push is not a function
    07:55:54 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:54 0|camera | at emitOne (events.js:116:13)
    07:55:54 0|camera | at Socket.emit (events.js:211:7)
    07:55:54 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:54 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:54 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:54 0|camera | at Pipe.onread (net.js:601:20)
    07:55:54 0|camera | Uncaught Exception occured!
    07:55:54 0|camera | TypeError: snapBuffer.push is not a function
    07:55:54 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:54 0|camera | at emitOne (events.js:116:13)
    07:55:54 0|camera | at Socket.emit (events.js:211:7)
    07:55:54 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:54 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:54 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:54 0|camera | at Pipe.onread (net.js:601:20)
    07:55:54 0|camera | uncaughtExceptioasdasdasdasdasdn TypeError: snapBuffer.push is not a function
    07:55:54 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:54 0|camera | at emitOne (events.js:116:13)
    07:55:54 0|camera | at Socket.emit (events.js:211:7)
    07:55:54 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:54 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:54 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:54 0|camera | at Pipe.onread (net.js:601:20)
    07:55:55 0|camera | Uncaught Exception occured!
    07:55:55 0|camera | TypeError: snapBuffer.push is not a function
    07:55:55 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:55 0|camera | at emitOne (events.js:116:13)
    07:55:55 0|camera | at Socket.emit (events.js:211:7)
    07:55:55 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:55 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:55 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:55 0|camera | at Pipe.onread (net.js:601:20)
    07:55:55 0|camera | uncaughtExceptioasdasdasdasdasdn TypeError: snapBuffer.push is not a function
    07:55:55 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:55 0|camera | at emitOne (events.js:116:13)
    07:55:55 0|camera | at Socket.emit (events.js:211:7)
    07:55:55 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:55 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:55 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:55 0|camera | at Pipe.onread (net.js:601:20)
    07:55:55 0|camera | Uncaught Exception occured!
    07:55:55 0|camera | TypeError: snapBuffer.push is not a function
    07:55:55 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:55 0|camera | at emitOne (events.js:116:13)
    07:55:55 0|camera | at Socket.emit (events.js:211:7)
    07:55:55 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:55 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:55 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:55 0|camera | at Pipe.onread (net.js:601:20)
    07:55:55 0|camera | uncaughtExceptioasdasdasdasdasdn TypeError: snapBuffer.push is not a function
    07:55:55 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:55 0|camera | at emitOne (events.js:116:13)
    07:55:55 0|camera | at Socket.emit (events.js:211:7)
    07:55:55 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:55 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:55 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:55 0|camera | at Pipe.onread (net.js:601:20)
    07:55:55 0|camera | Uncaught Exception occured!
    07:55:55 0|camera | TypeError: snapBuffer.push is not a function
    07:55:55 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:55 0|camera | at emitOne (events.js:116:13)
    07:55:55 0|camera | at Socket.emit (events.js:211:7)
    07:55:55 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:55 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:55 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:55 0|camera | at Pipe.onread (net.js:601:20)
    07:55:55 0|camera | uncaughtExceptioasdasdasdasdasdn TypeError: snapBuffer.push is not a function
    07:55:55 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:55 0|camera | at emitOne (events.js:116:13)
    07:55:55 0|camera | at Socket.emit (events.js:211:7)
    07:55:55 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:55 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:55 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:55 0|camera | at Pipe.onread (net.js:601:20)
    07:55:55 0|camera | Uncaught Exception occured!
    07:55:55 0|camera | TypeError: snapBuffer.push is not a function
    07:55:55 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:55 0|camera | at emitOne (events.js:116:13)
    07:55:55 0|camera | at Socket.emit (events.js:211:7)
    07:55:55 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:55 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:55 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:55 0|camera | at Pipe.onread (net.js:601:20)
    07:55:55 0|camera | uncaughtExceptioasdasdasdasdasdn TypeError: snapBuffer.push is not a function
    07:55:55 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:55 0|camera | at emitOne (events.js:116:13)
    07:55:55 0|camera | at Socket.emit (events.js:211:7)
    07:55:55 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:55 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:55 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:55 0|camera | at Pipe.onread (net.js:601:20)
    07:55:55 0|camera | Uncaught Exception occured!
    07:55:55 0|camera | TypeError: snapBuffer.push is not a function
    07:55:55 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:55 0|camera | at emitOne (events.js:116:13)
    07:55:55 0|camera | at Socket.emit (events.js:211:7)
    07:55:55 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:55 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:55 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:55 0|camera | at Pipe.onread (net.js:601:20)
    07:55:55 0|camera | uncaughtExceptioasdasdasdasdasdn TypeError: snapBuffer.push is not a function
    07:55:55 0|camera | at Socket.<anonymous> (/home/Shinobi/libs/monitor.js:108:46)
    07:55:55 0|camera | at emitOne (events.js:116:13)
    07:55:55 0|camera | at Socket.emit (events.js:211:7)
    07:55:55 0|camera | at addChunk (_stream_readable.js:263:12)
    07:55:55 0|camera | at readableAddChunk (_stream_readable.js:250:11)
    07:55:55 0|camera | at Socket.Readable.push (_stream_readable.js:208:10)
    07:55:55 0|camera | at Pipe.onread (net.js:601:20)
    [2019-04-11T07:56:10.304Z] PM2 log: Starting execution sequence in -fork mode- for app name:cron id:1
    07:56:10 PM2 | Starting execution sequence in -fork mode- for app name:cron id:1
    [2019-04-11T07:56:10.309Z] PM2 log: App name:cron id:1 online
    07:56:10 PM2 | App name:cron id:1 online
    07:56:10 1|cron | Shinobi : cron.js started



  • @moeiscool , Moe Alam, thank you very much. I installed pm2 3.0.0. and restart problem was solved, however it was necessary to increase Javascript parameters of "setTimeout" to display videos correctly. Mainly of monitor.js and socketio.js files.
    I'm using shinobi with docker and firewall.
    Now everything works perfectly.


 

Looks like your connection to Shinobi Forum was lost, please wait while we try to reconnect.