Current time: 11-16-2024, 09:07 PM Hello There, Guest! (LoginRegister)


Thread Closed 
[IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
Author Message
Nuxwin
Unregistered

 
Post: #1
Exclamation [IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
Dear ispCP users ;

An important bug exists in IspCP, affecting only 1.0.3 and 1.0.3-1 releases.

The bug is related to the generation of Bind's main configuration file (named.conf). On affected systems, either upgrading the system or deleting a domain/alias results in an incorrect bind configuration file. This issue can be solved by applying the following fix:

Important note: Users of the aforementioned IspCP's affected versions are urged to apply the following fix to prevent any further problems.

Example for Debian:

1. Stop ispCP daemon:
Code:
# /etc/init.d/ispcp_daemon stop

2. Replacement of affected files:
Code:
# cd /var/www/ispcp/engine
# wget -O- 'http://www.isp-control.net/ispcp/raw-attachment/ticket/2146/FixBind9.tar.gz' | tar -xzv
Note: Here, only the following files are replaced:
- ispcp-als-mngr
- ispcp-dmn-mngr
- ispcp_common_methods.pl

3. Fixing permissions
Code:
# sh /var/www/ispcp/engine/setup/set-engine-permissions.sh

4. Deleting old files:
Code:
# rm /etc/ispcp/bind/backup/named.conf.system
# rm /etc/ispcp/bind/working/named.conf

5. Reinstalling bind9:
Code:
# /etc/init.d/bind9 stop
# aptitude purge bind9
# aptitude install bind9

6. Save new named.conf:
Code:
# cp /etc/bind/named.conf /etc/ispcp/bind/backup/named.conf.system

7. Reset the working file:
Code:
# cp -f /etc/ispcp/bind/named.conf /etc/ispcp/bind/working/

8. Run ispcp-update script to rebuild production files:
Code:
# cd /var/www/ispcp/engine/setup
# perl ispcp-update

Cheers ;

Updated:
- Added forgotten file (ispcp_common_methods.pl).
- Fixed some mistakes in procedure.
01-07-2010 11:26 AM
bulkmania Offline
Junior Member
*

Posts: 13
Joined: Jan 2007
Reputation: 0
Post: #2
RE: [IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
After this pach, all the domains in status are heaving this;
Quote:get_tag() | ERROR: Undefined intput data, bt: |// dmn [{DMN_NAME}] cfg entry BEGIN.
|, et: |// dmn [{DMN_NAME}] cfg entry END.
|, src !

and all domains are pointing now to the ispcp login page.

what is wrong now, i must mention that in 1.03 everithing workd fine (regarding this) until this patch.
(This post was last modified: 01-07-2010 05:38 PM by bulkmania.)
01-07-2010 05:24 PM
Find all posts by this user
Nuxwin
Unregistered

 
Post: #3
RE: [IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
Hello ;

Not worry, I'll check the patch.

10 minutes please.

Ok, it's my fault. I'll provide new patch. Sorry.

Edit: Fixed. I've forgot one file.


@bulkmania:

Please, retry the procedure and after, go to your panel --> 'admin/ispcp_debugger.php' page. For all errors, set the status to 'change' and perform daemon request.

Cheers ;
01-07-2010 06:14 PM
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #4
RE: [IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
thanks for bind patch :-)
I have edited my named.conf manually and replace the files from the patch ...
Is it realy necessary to reinstall bind9 and run perl ispcp-update?
01-07-2010 08:41 PM
Find all posts by this user
Nuxwin
Unregistered

 
Post: #5
RE: [IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
Hello ;

As you want. If a problem occur, you can always follow this procedure.

Cheers ;
01-07-2010 08:49 PM
robbo007 Offline
Junior Member
*

Posts: 136
Joined: Apr 2009
Reputation: 0
Post: #6
RE: [IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
Hello all,
I'm about to upgrade from 1.0.0.0 to 1.0.0.3-1. Will this error my bind? Will I need to apply the patch after?

Thanks,
Rob
01-07-2010 11:56 PM
Find all posts by this user
Nuxwin
Unregistered

 
Post: #7
RE: [IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
Hello ;

Yes

Cheers ;
01-07-2010 11:58 PM
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #8
RE: [IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
Are you planning to release a 1.0.3.2 with this fixes? I'm in the process of migrating a server from 1.0.0 and I might wait.

thanks
01-08-2010 12:32 AM
Find all posts by this user
bulkmania Offline
Junior Member
*

Posts: 13
Joined: Jan 2007
Reputation: 0
Post: #9
RE: [IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
nope, is not working, is running the page untill time-out ?

maybe the problem is another, cause al the panel is with problems since upgrade to 1.03.

BTW, there is a easy way to roll back the upgrade ?
01-08-2010 12:56 AM
Find all posts by this user
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #10
RE: [IMPORTANT] ispCP - Bind9 - Doubles entries/headers patch
(01-07-2010 11:26 AM)nuxwin Wrote:  8. Run ispcp-update script to rebuild production files:
Code:
# cd /var/www/ispcp/engine/setup
# perl ispcp-update

Stopping Services:......... [done]

ispCP main configuration file
Loading old ispCP configuration file: [done]
Update ispCP configuration file: [done]

ispCP database
Update ispCP database schema:Use of uninitialized value $cfg{"CMD_PHP"} in concatenation (.) or string at ispcp-update line 439.
[failed]


FATAL: An error was occured during update process!
Correct it and re-run this program.


s.o : debian lenny
ispc : night version day 02-01-2010
(This post was last modified: 01-08-2010 01:01 AM by theprincy.)
01-08-2010 12:59 AM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)