`joshua`

Active Member
Dec 23, 2004
42
0
156
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:
 

nickb

Well-Known Member
Feb 25, 2005
346
0
166
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.
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
If BIND/named doesn't work, that could be multitude of different things. Is this FreeBSD?
 

`joshua`

Active Member
Dec 23, 2004
42
0
156
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
 

`joshua`

Active Member
Dec 23, 2004
42
0
156
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
 

`joshua`

Active Member
Dec 23, 2004
42
0
156
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
 

`joshua`

Active Member
Dec 23, 2004
42
0
156
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?
 

bijo

Well-Known Member
Aug 21, 2004
474
0
166
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.
 

`joshua`

Active Member
Dec 23, 2004
42
0
156
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 ?
 

aby

Well-Known Member
May 31, 2005
638
0
166
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
 

`joshua`

Active Member
Dec 23, 2004
42
0
156
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?
 

aby

Well-Known Member
May 31, 2005
638
0
166
India
`joshua` said:
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?
yeah.. most probably a bug.. What aboup opening a case with the cpanel.
 

nickb

Well-Known Member
Feb 25, 2005
346
0
166
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.
 

0spam.net

Registered
Mar 1, 2006
1
0
151
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.
 

freemax

Registered
May 20, 2006
1
0
151
0spam.net said:
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.
I have the same problem with you.
Is it a bug on FreeBSD?
Hope someone can help me!
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
freemax said:
I have the same problem with you.
Is it a bug on FreeBSD?
Hope someone can help me!
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!