Bug #3407

Errors during system-init

Added by Davide Principi about 5 years ago. Updated about 5 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:<multiple packages>
Target version:v6.8-final
Security class: Resolution:
Affected version:v6.8-final NEEDINFO:No

Description

The 6.8 final ISO (attempt 1) system-init

Some e-smith migrate fragment has errors. In /var/log/messages

Jun 14 12:30:49 testdavide1 system-init: [INFO] Starting system-init..
Jun 14 12:30:49 testdavide1 system-init: [INFO] Running action S00initialize-default-databases..
Jun 14 12:30:49 testdavide1 system-init: Creating database hosts and setting defaults
Jun 14 12:30:49 testdavide1 system-init: Warning: Migration of hosts failed fatally: Can't call method "get_all" on an undefined value at /usr/share/perl5/vendor_perl/esmith/templates.pm line 825.
Jun 14 12:30:49 testdavide1 system-init: 
Jun 14 12:30:49 testdavide1 system-init: Creating database routes and setting defaults
Jun 14 12:30:49 testdavide1 system-init: Creating database configuration and setting defaults
Jun 14 12:30:49 testdavide1 system-init: WARNING in /etc/e-smith/db/configuration/migrate//feature2956_ns6: Use of uninitialized value in string eq at /etc/e-smith/db/configuration/migrate//feature2956_ns6 line 21.
Jun 14 12:30:49 testdavide1 system-init: ERROR in /etc/e-smith/db/configuration/migrate//issue3289: Program fragment delivered error <<Can't call method "get_all_by_prop" on an undefined value at /etc/e-smith/db/configuration/migrate//issue3289 line 5.>> at template line 1
Jun 14 12:30:49 testdavide1 system-init: ERROR: Template processing failed for /: 1 fragment generated warnings, 1 fragment generated errors
Jun 14 12:30:49 testdavide1 system-init:  at /usr/share/perl5/vendor_perl/esmith/DB.pm line 459
Jun 14 12:30:49 testdavide1 /etc/e-smith/events/system-init/S00initialize-default-databases[1630]: /var/lib/nethserver/db/configuration: OLD OrganizationContact=(undefined)
[...]
Jun 14 12:30:49 testdavide1 /etc/e-smith/events/system-init/S00initialize-default-databases[1630]: /var/lib/nethserver/db/configuration: NEW sysconfig=configuration|Copyright||DefaultLanguage|en_US.utf8|ProductName|NethServer|Release|Final|Version|6.8
Jun 14 12:30:49 testdavide1 system-init: Creating database fwservices and setting defaults
Jun 14 12:30:49 testdavide1 system-init: Creating database tc and setting defaults
Jun 14 12:30:49 testdavide1 system-init: ERROR in /etc/e-smith/db/tc/migrate//issue2809: Program fragment delivered error <<Can't call method "get_all_by_prop" on an undefined value at /etc/e-smith/db/tc/migrate//issue2809 line 13.>> at template line 1
Jun 14 12:30:49 testdavide1 system-init: ERROR: Template processing failed for /: 1 fragment generated errors
Jun 14 12:30:49 testdavide1 system-init:  at /usr/share/perl5/vendor_perl/esmith/DB.pm line 459
Jun 14 12:30:49 testdavide1 system-init: Creating database fwrules and setting defaults
Jun 14 12:30:49 testdavide1 system-init: Creating database networks and setting defaults
Jun 14 12:30:49 testdavide1 /etc/e-smith/events/system-init/S00initialize-default-databases[1630]: /var/lib/nethserver/db/networks: OLD ppp0=(undefined)
Jun 14 12:30:49 testdavide1 /etc/e-smith/events/system-init/S00initialize-default-databases[1630]: /var/lib/nethserver/db/networks: NEW ppp0=xdsl-disabled|AuthType|auto|Password||name|PPPoE|provider|xDSL provider|role|red|user|
Jun 14 12:30:49 testdavide1 system-init: Creating database portforward and setting defaults
Jun 14 12:30:49 testdavide1 system-init: [INFO] Running action S20enable-firstconfigwizard..
Jun 14 12:30:49 testdavide1 /sbin/e-smith/db[1634]: /var/lib/nethserver/db/configuration: OLD httpd-admin=service|ForcedLoginModule||SSL|enabled|TCPPort|980|access|public|colors||favicon|favicon.png|logo||status|enabled
Jun 14 12:30:49 testdavide1 /sbin/e-smith/db[1634]: /var/lib/nethserver/db/configuration: NEW httpd-admin=service|ForcedLoginModule|FirstConfigWiz|SSL|enabled|TCPPort|980|access|public|colors||favicon|favicon.png|logo||status|enabled
Jun 14 12:30:49 testdavide1 system-init: [INFO] Running action S50nethserver-base-initialize-db..
[...]

Associated revisions

Revision 4311138b
Added by Davide Principi about 5 years ago

Escape from migrate fragments on DB init. Refs #3407

Revision 87b1c6b1
Added by Davide Principi about 5 years ago

Fix warning during system-init. Refs #3407

History

#1 Updated by Davide Principi about 5 years ago

  • Status changed from TRIAGED to CLOSED
  • % Done changed from 20 to 100
Released bugfix on nethserver-base 6.8:
  • nethserver-firewall-base-ui-2.10.6-1.ns6.noarch.rpm
  • nethserver-firewall-base-2.10.6-1.ns6.noarch.rpm
  • nethserver-httpd-admin-1.6.6-1.ns6.noarch.rpm

Also available in: Atom PDF