The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please someone help!

Discussion in 'General Discussion' started by `joshua`, Aug 10, 2005.

  1. `joshua`

    `joshua` Active Member

    Joined:
    Dec 23, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hello Cpanel Forum Users,

    i am having a awful problem.. i been reading all the post here but nothing seems to fix my problems if someone could post a fixer for the problems below.. please do so! please! i been working hours with no luck.. here is my two problems.. by the way i run FreeBSD 5.3 RELEASE with Cpanel / WHM

    1.) when i do /scripts/restartsrv named i get this error :

    named has failed, please contact the sysadmin (result was "named is not running").

    can someone please give a fix here to this issue please!

    2.) when i try to restart cpanel /etc/init.d/cpanel restart i get this error :

    /etc/init.d/cpanel restart
    Could not find functions file, your system may be broken

    if someone knows a fix to this please reply..


    and when i : tail -f /var/log/messages i get these two at the end :

    Aug 10 21:16:56 Cobra stunnel[564]: stunnel 4.04 on i386-unknown-freebsd5.3 PTHREAD+LIBWRAP with OpenSSL 0.9.7d 17 Mar 2004

    Aug 10 21:16:56 Cobra stunnel[564]: FD_SETSIZE=1024, file ulimit=11095 -> 500 clients allowed


    if anyone knows any fixes can you please share them with me...

    Thanks in advance. :confused: :confused:
     
  2. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Check the path of named ...it should be /usr/sbin/named ....if you find it to be /usr/local/sbin/named then run the following command

    Code:
    ln -s /usr/local/sbin/named /usr/sbin/named
    Try restarting the BIND.
     
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    If BIND/named doesn't work, that could be multitude of different things. Is this FreeBSD?
     
  4. `joshua`

    `joshua` Active Member

    Joined:
    Dec 23, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    ln -s /usr/local/sbin/named /usr/sbin/named
    ln: /usr/sbin/named: File exists

    and same errors:

    and yes i am running FreeBSD 5.3 RELEASE

    any other suggestions
     
  5. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    Look at /var/log/messages when you restart bind for errors.
     
  6. `joshua`

    `joshua` Active Member

    Joined:
    Dec 23, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    starting BIND 9.3.1 -u bind -c /etc/namedb/named.conf
    named[10753]: /etc/namedb/named.conf:8: couldn't find key '/etc/rndc-key' for use with command channel 127.0.0.1#953
    named[10753]: command channel listening on 127.0.0.1#953 named[10753]: couldn't open pid file '/var/run/named.pid' : Permission denied
    named[10753]: exiting (due to early fatal error)


    is what is in /var/log/messages
     
  7. `joshua`

    `joshua` Active Member

    Joined:
    Dec 23, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    i got the rndc.key fixed.. but how any suggestions on fixing this error :

    named[10753]: couldn't open pid file '/var/run/named.pid' : Permission denied
     
  8. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    I think it needs to be chmod to 0644
     
  9. `joshua`

    `joshua` Active Member

    Joined:
    Dec 23, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    i fixed it.. i had to add a option where the pid file is in named.conf and restarted and it started and works perfert now... but still getting this error :

    /etc/init.d/cpanel restart
    Could not find functions file, your system may be broken

    any suggestions on this?
     
  10. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    Check the functions directory in your /etc/rc.d/init.d/cpanel file
    I am also pasting an example of that section from a freebsd server below.

    ----------------------------------------------
    # Source function library.
    if [ -f /etc/init.d/functions ]; then
    . /etc/init.d/functions
    elif [ -f /etc/rc.d/init.d/functions ]; then
    . /etc/rc.d/init.d/functions
    else

    ----------------------------------------------
    This error shows that you are missing that path. Check your server and set the the proper functions directory in the /etc/rc.d/init.d/cpanel file. It will help you to solve this issue.
     
  11. `joshua`

    `joshua` Active Member

    Joined:
    Dec 23, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    i have tryed switching it... but if it helps i don't have a functions file in

    /etc/init.d/

    or

    /etc/rc.d/init.d/

    any other suggestions ?
     
  12. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Did you try a forced update of the cpanel. It can help.

    Also did you check whether there are any file like cpanel4 or something like that.. I had seen some cases like that.


    /etc/rc.d/init.d/cpanel4 start

    Also did you try

    service cpanel restart
     
  13. `joshua`

    `joshua` Active Member

    Joined:
    Dec 23, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    I tryed a ,

    /scripts/upcp --force

    didn't help

    and yes i have a cpanel4 there

    but its only like /etc/init.d/cpanel4 stop | start no restart.. soo this is a normal no buggs or anything right?.. about giving the broken thing eh?
     
  14. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    yeah.. most probably a bug.. What aboup opening a case with the cpanel.
     
  15. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    May be somebody could help you by sending you FreeBSD version of /etc/init.d/functions ...or copy it from another working free BSD server.
     
  16. 0spam.net

    0spam.net Registered

    Joined:
    Mar 1, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Bumping this old thread in the hopes that this has been resolved? Everything I've read points to Cpanel requiring linux files that just aren't present on FreeBSD. Did we miss some necessary configuration options in the FreeBSD sysinstall?

    specifically, my problem is the following:

    netstat -a reveals Cpanel is not listening on port 2086 for anything.

    All attempts to start or restart the cpanel server are negated by not being able to run /etc/init.d/cpanel restart

    it throws this error message:

    Could not find functions file, your system may be broken


    this is a redhat only file I *think* and does not come with our FreeBSD 5.4 distro.


    /upcp seems to have errors on the perl installation, that's the only thing we can see that goes wrong during the make.


    Who's got an answer for me.
     
  17. freemax

    freemax Registered

    Joined:
    May 20, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have the same problem with you.
    Is it a bug on FreeBSD?
    Hope someone can help me!
     
  18. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    I don't think so. It is not a bug on FreeBSD and/or Linux. I guess you have to have a certain level of expertise to troubleshoot FreeBSd (or any other OS) especially BIND, DNS zones and related files. It is very hard to say what's causing this error without looking into your server. Good luck!
     
Loading...

Share This Page