ZM1.28 working

Forum for questions and support relating to the 1.27.x releases only.
Locked
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

ZM1.28 working

Post by PacoLM »

Hi,

Upgraded 1.27.99 on Ubuntu 14.04 to the latest 1.28 version. I had to reboot the computer due to this problems:

Code: Select all

Oct 20 22:13:20 itx-ubuntu zmpkg[1157]: INF [Command: start]
Oct 20 22:13:21 itx-ubuntu zmdc[1169]: INF [Server starting at 14/10/20 22:13:21]
Oct 20 22:13:23 itx-ubuntu zmdc[1169]: FAT [Can't bind: Permission denied]
Oct 20 22:13:31 itx-ubuntu zmdc[1166]: FAT [Can't connect: No such file or directory]
Oct 20 22:13:31 itx-ubuntu zmpkg[1157]: ERR [Unable to run "/usr/bin/zmdc.pl startup", output is "Starting server"]
After the reboot, I had this error:

Code: Select all

Oct 20 22:21:54 itx-ubuntu zmpkg[1558]: INF [Command: start]
Oct 20 22:21:54 itx-ubuntu zmpkg[1558]: FAT [Can't create missing temporary directory '/var/run/zm': Permission denied]
I had to create the directory /var/run/zm as root, and now the computer is running the 1.28 version without problems, will continue reporting problems.

Regards,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZM1.28 working

Post by knight-of-ni »

Those two are related. The latter is the cause to the "can't bind" error.

Note that you should be starting zmpkg.pl as root, in which case it should not have had any problem auto-creating /var/run/zm for you. How did you try to start zonemidner? From the commandline or the web console?

Since apparantly there is a permission problem with the new 1.28 forum, I'll post the following here. Certain tasks, such as creating a new monitor, do not auto-refresh the console. Here is the workaround to fix that:
https://github.com/ZoneMinder/ZoneMinde ... c0b663e3fd
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM1.28 working

Post by bbunge »

For Ubuntu 14.04 (and possibly other versions) edit file:

sudo nano /usr/share/zoneminder/skins/classic/js/skin.js

search for and remove line:
window.addEvent( 'domready', checkSize);
(should be line 89)

add the line to the end of the file as shown below:

{
windowToFront();
}
window.addEvent( 'domready', checkSize);

Save the edited file

Restart Zoneminder
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: ZM1.28 working

Post by PacoLM »

knnniggett wrote:Those two are related. The latter is the cause to the "can't bind" error.

Note that you should be starting zmpkg.pl as root, in which case it should not have had any problem auto-creating /var/run/zm for you. How did you try to start zonemidner? From the commandline or the web console?

Since apparantly there is a permission problem with the new 1.28 forum, I'll post the following here. Certain tasks, such as creating a new monitor, do not auto-refresh the console. Here is the workaround to fix that:
https://github.com/ZoneMinder/ZoneMinde ... c0b663e3fd
Hi,

I did all the installation as root, I tried to start zoneminder from the web console while I was watching the syslog file.

Thanks!

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZM1.28 working

Post by knight-of-ni »

What I meant was you should start zoneminder as root, from the command line, at least for the first time.
If you start zoneminder from the web console, it does not have elevated permission and cannot make things right for you automatically.

Now, I'm not sure why the folder(s) didn't get created during installation process. How did you build zoneminder? autotools or cmake?
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM1.28 working

Post by bbunge »

May I recommend an "easy" way to get ZM 1.28 working on Ubuntu 14.04...
http://www.zoneminder.com/wiki/index.ph ... e_easy_way
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZM1.28 working

Post by knight-of-ni »

FYI, The permissions have been fixed on the 1.28 forum. We can post to it now.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: ZM1.28 working

Post by PacoLM »

knnniggett wrote:What I meant was you should start zoneminder as root, from the command line, at least for the first time.
If you start zoneminder from the web console, it does not have elevated permission and cannot make things right for you automatically.

Now, I'm not sure why the folder(s) didn't get created during installation process. How did you build zoneminder? autotools or cmake?
Well, now it's too late! I do not know why the installation didn't created the directory. I made the installation following the instructions of the git: https://github.com/ZoneMinder/ZoneMinder

Kind regards,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Locked