bugreport.txt

output of onedb upgrade - Nils Schröder, 11/03/2016 01:38 PM

Download (5.15 KB)

 
1
oneadmin@one02:~$ onedb upgrade -v  -u opennebula -d  opennebula -p ************
2
Version read:
3
Shared tables 4.6.0 : OpenNebula 4.8.0 daemon bootstrap
4
Local tables  4.7.80 : OpenNebula 4.8.0 daemon bootstrap
5

    
6
MySQL dump stored in /var/lib/one/mysql_localhost_opennebula_2016-11-3_13:17:24.sql
7
Use 'onedb restore' or restore the DB using the mysql command:
8
mysql -u user -h server -P port db_name < backup_file
9

    
10

    
11
>>> Running migrators for shared tables
12
  > Running migrator /usr/lib/one/ruby/onedb/shared/4.6.0_to_4.11.80.rb
13
  > Done in 0.21s
14

    
15
  > Running migrator /usr/lib/one/ruby/onedb/shared/4.11.80_to_4.90.0.rb
16
  > Done in 0.25s
17

    
18
  > Running migrator /usr/lib/one/ruby/onedb/shared/4.90.0_to_5.2.0.rb
19
  > Done in 0.07s
20

    
21
Database migrated from 4.6.0 to 5.2.0 (OpenNebula 5.2.0) by onedb command.
22

    
23
>>> Running migrators for local tables
24
  > Running migrator /usr/lib/one/ruby/onedb/local/4.7.80_to_4.9.80.rb
25
  > Done in 0.48s
26

    
27
  > Running migrator /usr/lib/one/ruby/onedb/local/4.9.80_to_4.10.3.rb
28
  > Done in 0.03s
29

    
30
  > Running migrator /usr/lib/one/ruby/onedb/local/4.10.3_to_4.11.80.rb
31
  > Done in 1.01s
32

    
33
  > Running migrator /usr/lib/one/ruby/onedb/local/4.11.80_to_4.13.80.rb
34
**************************************************************
35
*  WARNING  WARNING WARNING WARNING WARNING WARNING WARNING  *
36
**************************************************************
37

    
38
OpenNebula 4.13.80 improves the management of FAILED VMs  
39
Please remove (onevm delete) any FAILED VM before continuing. 
40

    
41
**************************************************************
42
*  WARNING  WARNING WARNING WARNING WARNING WARNING WARNING  *
43
**************************************************************
44

    
45

    
46
The scheduler (and oned) has been update to enforce access    
47
rights on system datastores. This new version also checks that
48
the user can access the System DS.
49
This *may require* to update system DS rights of your cloud
50

    
51
Do you want to proceed ? [y/N]y
52

    
53
Mysql::Error: Duplicate entry '0' for key 'PRIMARY'
54
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:175:in `query'
55
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:175:in `block in _execute'
56
/usr/lib/ruby/vendor_ruby/sequel/database/logging.rb:33:in `log_yield'
57
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:175:in `_execute'
58
/usr/lib/ruby/vendor_ruby/sequel/adapters/shared/mysql_prepared_statements.rb:34:in `block in execute'
59
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:250:in `block in synchronize'
60
/usr/lib/ruby/vendor_ruby/sequel/connection_pool/threaded.rb:91:in `hold'
61
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:250:in `synchronize'
62
/usr/lib/ruby/vendor_ruby/sequel/adapters/shared/mysql_prepared_statements.rb:34:in `execute'
63
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:160:in `execute_insert'
64
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:922:in `execute_insert'
65
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:335:in `insert'
66
/usr/lib/one/ruby/onedb/local/4.11.80_to_4.13.80.rb:106:in `block (2 levels) in up'
67
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:139:in `block in each'
68
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:312:in `block (2 levels) in fetch_rows'
69
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:367:in `yield_rows'
70
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:312:in `block in fetch_rows'
71
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:177:in `_execute'
72
/usr/lib/ruby/vendor_ruby/sequel/adapters/shared/mysql_prepared_statements.rb:34:in `block in execute'
73
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:250:in `block in synchronize'
74
/usr/lib/ruby/vendor_ruby/sequel/connection_pool/threaded.rb:91:in `hold'
75
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:250:in `synchronize'
76
/usr/lib/ruby/vendor_ruby/sequel/adapters/shared/mysql_prepared_statements.rb:34:in `execute'
77
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:906:in `execute'
78
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:351:in `execute'
79
/usr/lib/ruby/vendor_ruby/sequel/adapters/mysql.rb:296:in `fetch_rows'
80
/usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:139:in `each'
81
/usr/lib/ruby/vendor_ruby/sequel/database/dataset.rb:46:in `fetch'
82
/usr/lib/one/ruby/onedb/local/4.11.80_to_4.13.80.rb:101:in `block in up'
83
/usr/lib/ruby/vendor_ruby/sequel/database/transactions.rb:126:in `_transaction'
84
/usr/lib/ruby/vendor_ruby/sequel/database/transactions.rb:100:in `block in transaction'
85
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:250:in `block in synchronize'
86
/usr/lib/ruby/vendor_ruby/sequel/connection_pool/threaded.rb:104:in `hold'
87
/usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:250:in `synchronize'
88
/usr/lib/ruby/vendor_ruby/sequel/database/transactions.rb:89:in `transaction'
89
/usr/lib/one/ruby/onedb/local/4.11.80_to_4.13.80.rb:99:in `up'
90
/usr/lib/one/ruby/onedb/onedb.rb:232:in `apply_migrators'
91
/usr/lib/one/ruby/onedb/onedb.rb:179:in `upgrade'
92
/usr/bin/onedb:313:in `block (2 levels) in <main>'
93
/usr/lib/one/ruby/cli/command_parser.rb:449:in `call'
94
/usr/lib/one/ruby/cli/command_parser.rb:449:in `run'
95
/usr/lib/one/ruby/cli/command_parser.rb:76:in `initialize'
96
/usr/bin/onedb:222:in `new'
97
/usr/bin/onedb:222:in `<main>'
98

    
99

    
100
The database will be restored
101

    
102
MySQL DB opennebula at localhost restored.
103
oneadmin@one02:~$ 
104