[SOLVED]-Problems with new installation

Current Development version likely to have breaking changes
Post Reply
asunturd
Posts: 17
Joined: Thu Mar 05, 2020 4:27 pm

[SOLVED]-Problems with new installation

Post by asunturd »

Hi,

I've been away from zm since 1.36.
I've made a fresh install on ubuntu 22.04 as per instructions from installation-video.

all seemed fine at first, I managed to add a monitor but didn't get any video output.
I used search feature and found my camera as a choice, added and when I didnt get it to work I just removed it again.

tried adding another monitor but gave up and deleted monitors.

today, a couple of days later I wanted to retry but I cannot add monitors anymore
logging refecenced to old monitors I had deleted, they weren't there in the console but logging still reported problems with stream(yes, these were wrong the time I tried)

So I logged into db directly and deleted the monitors form the table "Monitors"
I rebooted the ubuntu and tried again but no luck


When adding monitor nothing happens, no errors when pressing add button.

these are the errors before puring the table:

Code: Select all

3/20/24, 9:57:02 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:57:02 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
there are some errors in the logs now:

Code: Select all

3/20/24, 10:18:04 PM GMT+1	web_php	1830	ERR	Unknown tab general	/usr/share/zoneminder/www/skins/classic/views/monitor.php	1558

P.S. I also did upgrade to 1.37.56 today
the process completed without errors but no change in the behavior:

Code: Select all

Setting up zoneminder (1.37.56~20240319145928-jammy) ...
detected systemd
Warning: The unit file, source configuration file or drop-ins of zoneminder.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Detected db service is mysql.service
Checking for db
Db exists.
Updating permissions for user zmuser@localhost

Initiating database upgrade to version 1.37.56 from version 1.37.55

Upgrading database to version 1.37.56
Upgrading DB to 1.37.56 from 1.37.55

Database successfully upgraded to version 1.37.56.

Database upgrade to version 1.37.56 successful.


Freshening configuration in database
Migratings passwords, if any...
Loading config from DB 242 entries
Saving config to DB 242 entries
Done Updating
Warning: The unit file, source configuration file or drop-ins of zoneminder.service changed on disk. Run 'systemctl daemon-reload' to reload units.
please advise

p.s:
I can also see that "console" button on gui is gone

and there are more errors in the logs and I dont have any monitors defined and "Monitors" table is empty

Code: Select all

3/20/24, 9:51:48 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:50:32 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:50:32 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:49:17 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:49:17 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:48:03 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:48:03 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:47:03 PM GMT+1	web_php	2142	ERR	Unknown tab general	/usr/share/zoneminder/www/skins/classic/views/monitor.php	1558
3/20/24, 9:46:50 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:46:50 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:45:38 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:45:38 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:44:27 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:44:27 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:43:17 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:43:17 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:42:08 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:42:08 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:42:05 PM GMT+1	web_php	945	ERR	Unknown tab general	/usr/share/zoneminder/www/skins/classic/views/monitor.php	1558
3/20/24, 9:41:00 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:41:00 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:39:53 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:39:53 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:39:36 PM GMT+1	web_php	945	ERR	Unknown tab general	/usr/share/zoneminder/www/skins/classic/views/monitor.php	1558
3/20/24, 9:38:47 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:38:47 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:37:42 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:37:42 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
3/20/24, 9:36:38 PM GMT+1	zmc_m3	1531	ERR	Failed to prime capture of initial monitor	zmc.cpp	263
3/20/24, 9:36:38 PM GMT+1	zmc_m3	1531	ERR	Unable to open input rtsp://ip/videoMain due to: Connection refused	zm_ffmpeg_camera.cpp	367
Last edited by asunturd on Thu Mar 21, 2024 7:39 pm, edited 1 time in total.
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Problems with new installation

Post by dougmccrary »

GUI problems sometimes result from old cookies. Try clearing them for zm.

Try your path in VLC. If it works there, it'll work in ZM, and VLC's faster than testing with ZM.

Not sure exactly what you did with the Monitors table, but try adding M3 again and then delete with GUI.
asunturd
Posts: 17
Joined: Thu Mar 05, 2020 4:27 pm

Re: Problems with new installation

Post by asunturd »

dougmccrary wrote: Thu Mar 21, 2024 12:53 am GUI problems sometimes result from old cookies. Try clearing them for zm.

Try your path in VLC. If it works there, it'll work in ZM, and VLC's faster than testing with ZM.

Not sure exactly what you did with the Monitors table, but try adding M3 again and then delete with GUI.
Tried different browsers so that is not the issue
Yes, I have resolved the stream issues but cannot add monitors in GUI and as you can see logs referencing to a monitor which does not exist.

What I did to the table is just deleting the monitor manually from the table bacase of the same reason, the gui didn't show anything but logs were full of old references.
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Problems with new installation

Post by dougmccrary »

Can you get the console with [IP]/zm/index.php?view=console
? or did the button show up?
asunturd
Posts: 17
Joined: Thu Mar 05, 2020 4:27 pm

Re: Problems with new installation

Post by asunturd »

dougmccrary wrote: Thu Mar 21, 2024 10:40 am Can you get the console with [IP]/zm/index.php?view=console
? or did the button show up?
Yes, it works either by your link or by directly accessing the ip/zm but the button is absent from the GUI, see the attachment
Attachments
Screenshot 2024-03-21 202958.jpg
Screenshot 2024-03-21 202958.jpg (60.85 KiB) Viewed 353 times
asunturd
Posts: 17
Joined: Thu Mar 05, 2020 4:27 pm

Re: Problems with new installation

Post by asunturd »

Just upgraded to 1.37.56~20240321124416-jammy
and all is back to normal :)
Post Reply