Page 1 of 1

zmdc Bad file descriptor

Posted: Thu Mar 21, 2019 10:48 am
by Nenes71
Hello,
First of all I wanted to say that I’m a newbee.
I have Fatal error zmdc Bad file descriptor and zmeventnotification exit status 255 after adding a disk on my server.
My storage is on lvm and i had a disk and extend the Volume Disk. After restarting the server this error apear.
The server seem work fine...
How can i debug and solve this
Thanks for your help.

Re: zmdc Bad file descriptor

Posted: Thu Mar 21, 2019 1:05 pm
by kitkat
Did you resize the file system after resizing the LV?

Code: Select all

resize2fs /dev/my_vg/my_lv
If you've already done that then I suggest umounting the disk and running fsck to see if there are any errors with the file system...

Code: Select all

umount /dev/my_vg/my_lv
fsck -fC0 /dev/my_vg/my_lv

Re: zmdc Bad file descriptor

Posted: Thu Mar 21, 2019 2:14 pm
by rockedge
I can not start zmeventnotification.pl with

Code: Select all

zmdc.pl start zmeventnotification.pl
so ZM never starts it and I get Can't Execute Bad File Descriptor every few minutes.
I disable the ZMES in Options->System and use

Code: Select all

sudo -u webuser zmeventnotification.pl
which will start and ZMES works as expected.
I have tried to approach this by checking ownership and permissions but have for a few days not found out why this is happening.
This did pop up before but went away without me being able to figure out why

Re: zmdc Bad file descriptor

Posted: Thu Mar 21, 2019 2:20 pm
by rockedge
UPDATE
I pulled the latest ZMES from git and installed. Now ZM starts zmeventnotification.pl normally.

Re: zmdc Bad file descriptor

Posted: Thu Mar 21, 2019 3:53 pm
by Nenes71
Thank’s for your ansers.
I think rockedege is on the good way.
It’s just a hazard this happen when I add a disk.
Which version work for you
I comme back to you

Re: zmdc Bad file descriptor

Posted: Thu Mar 21, 2019 5:43 pm
by Nenes71
I follow pliablepixels zmeventnotification install guide and it’s work.
Not perfectly but it’s do the job.
Thanks