Current time: 11-26-2024, 06:04 AM Hello There, Guest! (LoginRegister)


Post Reply 
1.0.5 -> 1.0.7 - Base table or view not found
Author Message
hjarne Offline
Junior Member
*

Posts: 10
Joined: Mar 2010
Reputation: 0
Post: #1
1.0.5 -> 1.0.7 - Base table or view not found
So i tried to update my instalation from 1.0.5 to 1.0.7 (on a debian lenny) and i get some errors.

First of all i got the error with the MySQL password wich is explained and solved here:
http://isp-control.net/forum/thread-10465-page-2.html

Then it made an [FAILED] when trying to update the databse schema. I looked at the install log and it looks like this:
Quote:Stopping ispCP Network Traffic Logger: ispcp_network failed!
Stopping ispCP GUI-Backend communication Daemon: ispcp_daemon.
Stopping domain name service...: bind9.
Stopping ftp server: proftpd.
Stopping Postfix Mail Transport Agent: postfix.
Stopping Courier authentication services: authdaemond.
Stopping Courier POP3 server: pop3d.
Stopping Courier IMAP server: imapd.

[ERROR]: Database update 33 failed:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ispcp.config' doesn't exist
Query: DELETE IGNORE FROM
`ispcp`.`config`
WHERE
`config`.`name` = 'CRITICAL_UPDATE_REVISION'
;

After that i thourght "FUCK!" and restarted the server, it went up as normal, all services running and everything looks fine !BUT! when i login as admin on the web-UI (wich is the only user who can login) it tells me to update my database, i click the link and get this in return:
Quote:Database update 33 failed:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ispcp.config' doesn't exist

Query: DELETE IGNORE FROM `ispcp`.`config` WHERE `config`.`name` = 'CRITICAL_UPDATE_REVISION' ;

No usersers are able to login through the web-UI, but all services are working and running. I recieve mails and are able to send mails aswell. All the websites are online, but the admin panel is fucked for everyone els but the admin user.

Can anyone help me?


Hjarne
(This post was last modified: 10-04-2010 10:58 PM by hjarne.)
10-04-2010 10:54 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: 1.0.5 -> 1.0.7 - Base table or view not found
Manually remove from table config if exists record CRITICAL_UPDATE_REVISION, then set DATABASE_REVISION to 33.
10-05-2010 01:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
hjarne Offline
Junior Member
*

Posts: 10
Joined: Mar 2010
Reputation: 0
Post: #3
RE: 1.0.5 -> 1.0.7 - Base table or view not found
Now i get a:
Quote:Database update 33 failed:

SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'ip_card'

Query: ALTER IGNORE TABLE `server_ips` ADD `ip_card` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL, ADD `ip_ssl_domain_id` INT( 10 ) NULL, ADD `ip_status` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL ;

So basicly what you are telling me is that i need to update the database manually all the way?

Hjarne
10-05-2010 02:36 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #4
RE: 1.0.5 -> 1.0.7 - Base table or view not found
Yes. It seems that your database is really messed up. many updates where already applied, but version was not set. Do not ask why, because i can not tell you
10-05-2010 05:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jarek Offline


Posts: 2
Joined: Mar 2011
Reputation: 0
Post: #5
RE: 1.0.5 -> 1.0.7 - Base table or view not found
(10-05-2010 05:22 AM)sci2tech Wrote:  Yes. It seems that your database is really messed up. many updates where already applied, but version was not set. Do not ask why, because i can not tell you

Hi,
I have the same problem with updating from version 1.0.3 to 1.0.7. How do I fix this?
Maybe there is a possibility of returning to version 1.0.3?
03-14-2011 07:59 AM
Find all posts by this user Quote this message in a reply
lau.bi Offline


Posts: 1
Joined: Apr 2009
Reputation: 0
Post: #6
RE: 1.0.5 -> 1.0.7 - Base table or view not found
Hello and sorry for my bad english :-)

i have found a soluition for the "Database 33 Update Problem"

I have the same problem by updating from

1.0.5.
1.0.6.

to 1.0.7 rc1 or final

I think, the reason for the Problem ist thas my ispcp databse not have the default name.
my database was named to: "laubi_ispcp"

The Sollution for me was, dump my database, restore back to default name (ispcp)
change the /etc/ispcp/ispcp.conf and /etc/ispcp/ispcp.old.conf

and restart the update process :-)

Greetings
Laubi
06-01-2011 11:15 PM
Find all posts by this user Quote this message in a reply
jarek Offline


Posts: 2
Joined: Mar 2011
Reputation: 0
Post: #7
RE: 1.0.5 -> 1.0.7 - Base table or view not found
(06-01-2011 11:15 PM)lau.bi Wrote:  Hello and sorry for my bad english :-)

i have found a soluition for the "Database 33 Update Problem"

I have the same problem by updating from

1.0.5.
1.0.6.

to 1.0.7 rc1 or final

I think, the reason for the Problem ist thas my ispcp databse not have the default name.
my database was named to: "laubi_ispcp"

The Sollution for me was, dump my database, restore back to default name (ispcp)
change the /etc/ispcp/ispcp.conf and /etc/ispcp/ispcp.old.conf

and restart the update process :-)

Greetings
Laubi

Thank you for your help
Your solution works!

Jarek.
10-11-2011 06:26 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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