Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th August 2012, 08:45 AM
sirgogo Offline
Registered User
 
Join Date: Aug 2012
Location: Irvine, CA
Posts: 2
windows_8chrome
Exclamation Zoneminder and Ridiculous Service Faults

Hi all,

So I spent this last weekend trying to install Zoneminder on my home server. It was a pain to install (literally took 12hrs+ debugging), because even after following the directions on the ZM wiki, the service would fail to start. Somehow, by dropping and reloading the zm database (or something), I was able to finally start the zoneminder service. Zoneminder was working great and I could see my USB cam via a browser. I rebooted a couple times to make sure ZM was starting on startup and it ran smoothly. Everything seemed good. But then...

I decided to enable the option for authentication/logins via ZM web gui. After enabling this, I restarted ZM, but sadly I was unable to view any output from camera. I thought this was strange, and noticed it only happened after I enabled "built-in" authentication.. so I switched it back and ta-da I could view my camera again. I toggled the option once more, but this time selected the "remote authentication" option. Again, camera didn't show up.

So I decided to reboot PC and let the changes take effect.
Low and behold, a slew of problems.

1. httpd and mysql were removed from startup
Code:
[root@servy386]# chkconfig --list

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

livesys         0:off   1:off   2:off   3:on    4:on    5:on    6:off
livesys-late    0:off   1:off   2:off   3:on    4:on    5:on    6:off
netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
network         0:off   1:off   2:off   3:off   4:off   5:off   6:off
spice-vdagentd  0:off   1:off   2:off   3:off   4:off   5:on    6:off
tcsd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
zoneminder      0:off   1:off   2:off   3:off   4:off   5:off   6:off
2. Strange behavior:
Code:
[root@servy386]# service httpd status
Redirecting to /bin/systemctl status  httpd.service
httpd.service - The Apache HTTP Server (prefork MPM)
          Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
          Active: active (running) since Sun, 19 Aug 2012 23:55:00 -0700; 46min ago
         Process: 1074 ExecStart=/usr/sbin/httpd $OPTIONS -k start (code=exited, status=0/SUCCESS)
        Main PID: 1075 (httpd)
          CGroup: name=systemd:/system/httpd.service
                  â 1075 /usr/sbin/httpd -k start
                  â 1077 /usr/sbin/httpd -k start
                  â 1078 /usr/sbin/httpd -k start
                  â 1079 /usr/sbin/httpd -k start
                  â 1080 /usr/sbin/httpd -k start
                  â 1081 /usr/sbin/httpd -k start
                  â 1082 /usr/sbin/httpd -k start
                  â 1083 /usr/sbin/httpd -k start
                  â 1084 /usr/sbin/httpd -k start
                  â 1608 /usr/sbin/httpd -k start

Aug 19 23:54:59 servy386 httpd[1074]: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::20f:b5ff:fe46:a313 for ServerName
[root@servy386 abhe]# chkconfig --add httpd
error reading information on service httpd: No such file or directory
[root@servy386]#
3. cannot start mysqld service
Code:
[root@servy386 abhe]# systemctl start mysql.service
Failed to issue method call: Unit mysql.service failed to load: No such file or directory. See system logs and 'systemctl status mysql.service' for details.
[root@servy386 abhe]# systemctl status mysql.service
mysql.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)
4. installed phpmyadmin via yum to maybe see if database is screwed up, but...
Code:
[root@servy386 abhe]# service phpmyadmin start
Redirecting to /bin/systemctl start  phpmyadmin.service
Failed to issue method call: Unit phpmyadmin.service failed to load: No such file or directory. See system logs and 'systemctl status phpmyadmin.service' for details.
[root@servy386 abhe]# service phpmyadmin status
Redirecting to /bin/systemctl status  phpmyadmin.service
phpmyadmin.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)
Any ideas? It was working great like an hour ago, I'm not sure what's going on... . At least httpd starts I guess.

Last edited by sirgogo; 20th August 2012 at 08:48 AM.
Reply With Quote
  #2  
Old 20th August 2012, 09:08 AM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: Zoneminder and Ridiculous Service Faults

chkconfig and service commands are obsolete try systemctl instead.

Code:
man systemctl
and google systemd


try

Code:
su
systemctl enable mysqld.service phpmyadmin.service httpd.service
systemctl restart mysqld.service phpmyadmin.service httpd.service

Last edited by Yellowman; 20th August 2012 at 09:50 PM.
Reply With Quote
  #3  
Old 20th August 2012, 08:35 PM
droidhacker Offline
Registered User
 
Join Date: Oct 2009
Posts: 824
linuxfirefox
Re: Zoneminder and Ridiculous Service Faults

Quote:
Originally Posted by sirgogo View Post
Hi all,

So I spent this last weekend trying to install Zoneminder on my home server. It was a pain to install (literally took 12hrs+ debugging), because even after following the directions on the ZM wiki, the service would fail to start. Somehow, by dropping and reloading the zm database (or something), I was able to finally start the zoneminder service. Zoneminder was working great and I could see my USB cam via a browser. I rebooted a couple times to make sure ZM was starting on startup and it ran smoothly. Everything seemed good. But then...

I decided to enable the option for authentication/logins via ZM web gui. After enabling this, I restarted ZM, but sadly I was unable to view any output from camera. I thought this was strange, and noticed it only happened after I enabled "built-in" authentication.. so I switched it back and ta-da I could view my camera again. I toggled the option once more, but this time selected the "remote authentication" option. Again, camera didn't show up.

So I decided to reboot PC and let the changes take effect.
Low and behold, a slew of problems.

1. httpd and mysql were removed from startup
Code:
[root@servy386]# chkconfig --list

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

livesys         0:off   1:off   2:off   3:on    4:on    5:on    6:off
livesys-late    0:off   1:off   2:off   3:on    4:on    5:on    6:off
netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
network         0:off   1:off   2:off   3:off   4:off   5:off   6:off
spice-vdagentd  0:off   1:off   2:off   3:off   4:off   5:on    6:off
tcsd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
zoneminder      0:off   1:off   2:off   3:off   4:off   5:off   6:off
Expected. Note the BOLD above.

Quote:
2. Strange behavior:
Code:
[root@servy386]# service httpd status
Redirecting to /bin/systemctl status  httpd.service
httpd.service - The Apache HTTP Server (prefork MPM)
          Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
          Active: active (running) since Sun, 19 Aug 2012 23:55:00 -0700; 46min ago
         Process: 1074 ExecStart=/usr/sbin/httpd $OPTIONS -k start (code=exited, status=0/SUCCESS)
        Main PID: 1075 (httpd)
          CGroup: name=systemd:/system/httpd.service
                  â 1075 /usr/sbin/httpd -k start
                  â 1077 /usr/sbin/httpd -k start
                  â 1078 /usr/sbin/httpd -k start
                  â 1079 /usr/sbin/httpd -k start
                  â 1080 /usr/sbin/httpd -k start
                  â 1081 /usr/sbin/httpd -k start
                  â 1082 /usr/sbin/httpd -k start
                  â 1083 /usr/sbin/httpd -k start
                  â 1084 /usr/sbin/httpd -k start
                  â 1608 /usr/sbin/httpd -k start

Aug 19 23:54:59 servy386 httpd[1074]: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::20f:b5ff:fe46:a313 for ServerName
[root@servy386 abhe]# chkconfig --add httpd
error reading information on service httpd: No such file or directory
[root@servy386]#
I don't see anything strange there... all as expected. See bold from PREVIOUS quotation. The 'chkconfig' and 'service' commands, in many cases, will redirect to systemd commands in order to perform their function in a familiar manner. One function that they do NOT forward, is 'chkconfig xxx on' -- use 'systemctl enable xxx.service' instead.

Quote:
3. cannot start mysqld service
Code:
[root@servy386 abhe]# systemctl start mysql.service
Failed to issue method call: Unit mysql.service failed to load: No such file or directory. See system logs and 'systemctl status mysql.service' for details.
[root@servy386 abhe]# systemctl status mysql.service
mysql.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)
That's because you're looking trying to start mysql.service and not mysqld.service. Note the "d".

Quote:
4. installed phpmyadmin via yum to maybe see if database is screwed up, but...
Code:
[root@servy386 abhe]# service phpmyadmin start
Redirecting to /bin/systemctl start  phpmyadmin.service
Failed to issue method call: Unit phpmyadmin.service failed to load: No such file or directory. See system logs and 'systemctl status phpmyadmin.service' for details.
[root@servy386 abhe]# service phpmyadmin status
Redirecting to /bin/systemctl status  phpmyadmin.service
phpmyadmin.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)
phpmyadmin is NOT A SERVICE. If phpmyadmin is installed, it operates through apache httpd and depends on mysqld. 'systemctl start mysqld.service; systemctl start httpd.service'. Then web browser --> http://localhost/phpmyadmin

Quote:
Any ideas? It was working great like an hour ago, I'm not sure what's going on... . At least httpd starts I guess.
Yep, as above.
Reply With Quote
  #4  
Old 20th August 2012, 09:20 PM
sirgogo Offline
Registered User
 
Join Date: Aug 2012
Location: Irvine, CA
Posts: 2
windows_7chrome
Thumbs up Re: Zoneminder and Ridiculous Service Faults

Thanks a bunch droidhacker! You were totally right.

Do you know how to change the service startup order? Zoneminder is trying to start up before mysql and httpd and its causing it to fail.
Reply With Quote
Reply

Tags
break, faults, mysql, service, service faults, startup, zoneminder

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ZoneMinder and links or ??? teraquad Using Fedora 5 23rd March 2012 07:44 PM
Ridiculous RPM dependencies voodoodoc Using Fedora 3 10th February 2012 10:21 PM
The most ridiculous error ever. glennzo Wibble 3 6th March 2010 03:24 PM
Your ridiculous computers? tashirosgt Wibble 10 19th July 2009 07:44 AM
this is flatly ridiculous ravalox Installation and Live Media 4 29th December 2004 06:33 PM


Current GMT-time: 02:13 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat