Closed GoogleCodeExporter closed 9 years ago
I have some questions:
1. Are you using Debian unstable (sid) repository?
2. Installer log file needed. Please provide the content of
/tmp/ovz-web-panel.log
3. Try to repeat database upgrade procedure: cd /opt/ovz-web-panel/ && rake
db:migrate RAILS_ENV="production"
Original comment by sibprogrammer
on 24 Apr 2011 at 1:17
1. No.
2. /tmp/ovz-web-panel.log :
#############################################
Sat Apr 23 22:40:45 CEST 2011 -----------------------------------
Sat Apr 23 22:40:45 CEST 2011 OpenVZ Web Panel Installer.
Sat Apr 23 22:40:45 CEST 2011 -----------------------------------
Sat Apr 23 22:40:45 CEST 2011 Checking environment...
Sat Apr 23 22:40:45 CEST 2011 System info: Linux node1.server.com 2.6.24-12-pve
#1 SMP PREEMPT Mon Sep 20 13:02:41 CEST 2010 x86_64 GNU/Linux
Sat Apr 23 22:40:45 CEST 2011 Detecting distrib ID...
Sat Apr 23 22:40:45 CEST 2011 Checking presence of the command: lsb_release
Sat Apr 23 22:40:45 CEST 2011 Detected distrib ID: Debian
Sat Apr 23 22:40:45 CEST 2011 OpenVZ hardware node detected.
Sat Apr 23 22:40:45 CEST 2011 Resolving dependencies...
Sat Apr 23 22:42:51 CEST 2011 Checking presence of the command: ruby
Sat Apr 23 22:42:51 CEST 2011 Ruby version: 1.8.7
Sat Apr 23 22:42:51 CEST 2011 Checking presence of the command: gem
Sat Apr 23 22:42:51 CEST 2011 RubyGems version: 1.2.0
Sat Apr 23 22:42:51 CEST 2011 Checking Ruby SQLite3 support: ruby -e "require
'rubygems'" -e "require 'sqlite3/database'"
Sat Apr 23 22:42:51 CEST 2011
Sat Apr 23 22:42:51 CEST 2011 Installation...
Sat Apr 23 22:42:51 CEST 2011 Downloading: wget -nc -P /opt/ovz-web-panel/
http://ovz-web-panel.googlecode.com/files/ovz-web-panel-2.0.tgz
Sat Apr 23 22:42:53 CEST 2011 Unpacking: tar --strip 2 -C /opt/ovz-web-panel/
-xzf /opt/ovz-web-panel//ovz-web-panel-2.0.tgz --exclude=*.log
--exclude=config/database.yml --exclude=db/*.sqlite3 --exclude=config/certs/*
Sat Apr 23 22:42:53 CEST 2011 Removing downloaded archive: rm -f
/opt/ovz-web-panel//ovz-web-panel-2.0.tgz
Sat Apr 23 22:42:53 CEST 2011 Removing deprecated files...
Sat Apr 23 22:42:53 CEST 2011 Upgrading database...
Sat Apr 23 22:42:56 CEST 2011 Syncing physical servers state...
Sat Apr 23 22:43:00 CEST 2011 Installation finished.
Sat Apr 23 22:43:00 CEST 2011 Product was installed into: /opt/ovz-web-panel/
Sat Apr 23 22:43:00 CEST 2011
Sat Apr 23 22:43:00 CEST 2011 Stopping services...
Sat Apr 23 22:43:00 CEST 2011 Starting services...
Sat Apr 23 22:43:07 CEST 2011 Panel should be available at:
Sat Apr 23 22:43:07 CEST 2011 http://node1.server.com:3000
Sat Apr 23 22:43:07 CEST 2011 Default credentials: admin/admin
Sat Apr 23 22:43:07 CEST 2011 -----------------------------------
#############################################
3. When i try to repeat database upgrade :
#############################################
root@node1:~# cd /opt/ovz-web-panel/ && rake db:migrate RAILS_ENV="production"
(in /opt/ovz-web-panel)
== AddLimitBackupsToRole: migrating ==========================================
-- add_column(:roles, :limit_backups, :integer, {:default=>-1})
rake aborted!
An error has occurred, all later migrations canceled:
SQLite3::SQLException: duplicate column name: limit_backups: ALTER TABLE
"roles" ADD "limit_backups" integer DEFAULT -1
(See full trace by running task with --trace)
#############################################
Can I downgrade to owp 1.7 meanwhile? knowing that I have a backup of the file
"production.sqlite3" I've done in version 1.7
Thank's in advance!
Original comment by r.lye...@gmail.com
on 24 Apr 2011 at 7:51
Execute the command:
sqlite3 db/production.sqlite3 'select * from schema_migrations'
Migration with number 20110206111020 should absent. Insert it manually:
sqlite3 db/production.sqlite3 'insert into schema_migrations values
("20110206111020")'
Then do db upgrade again:
cd /opt/ovz-web-panel/ && rake db:migrate RAILS_ENV="production"
Original comment by sibprogrammer
on 25 Apr 2011 at 12:49
root@node1:/opt/ovz-web-panel# sqlite3 db/production.sqlite3 'select * from
schema_migrations'
-bash: sqlite3: command not found
Any idea?
Original comment by r.lye...@gmail.com
on 25 Apr 2011 at 9:47
apt-get install sqlite3
Original comment by sibprogrammer
on 25 Apr 2011 at 2:03
Perfect !
Thank you ! my problem is solved.
Original comment by r.lye...@gmail.com
on 25 Apr 2011 at 2:11
Original comment by sibprogrammer
on 25 Apr 2011 at 2:27
Original issue reported on code.google.com by
r.lye...@gmail.com
on 23 Apr 2011 at 10:47