Hi!
I'm looking at Katello 1.4 right now and I've run into an issue
upgrading my server. The katello-upgrade script is complaining that it
did not return zero and suggests I try again. I did just that and....
it gave me the same answer.
I am seeing a few errors in the logs. First is this :
10/24/13 20:32:03 Applying migration
pulp_rpm.migrations.0007_inventoried_custom_metadata failed. See log
for details.
10/24/13 20:32:03 2013-10-24 20:32:03,406 db:CRITICAL: Applying
migration pulp_rpm.migrations.0007_inventoried_custom_metadata failed.
10/24/13 20:32:03 2013-10-24 20:32:03,407 db:CRITICAL: [Errno 2] No such
file or directory:
'/var/lib/pulp/working/repos/Undrground-centos6-6_os_x86_64/importers/isos/x86_64/CentOS-6.4-x86_64-netinstall.iso'
10/24/13 20:32:03 2013-10-24 20:32:03,407 db:CRITICAL: Traceback (most
recent call last):
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp/server/db/manage.py", line 79, in
migrate_database
10/24/13 20:32:03 update_current_version=not options.test)
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp/server/db/migrate/models.py",
line 161, in apply_migration
10/24/13 20:32:03 migration.migrate()
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 43, in migrate
10/24/13 20:32:03 inventory_custom_metadata()
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 55, in inventory_custom_metadata
10/24/13 20:32:03 migrate_repo(repo)
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 100, in migrate_repo
10/24/13 20:32:03 content_unit = create_content_unit(ftype_data,
relative_path)
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 128, in create_content_unit
10/24/13 20:32:03 unit_data['_storage_path'] =
get_content_storage_path(relative_path)
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 143, in get_content_storage_path
10/24/13 20:32:03 fix_owner(storage_dir)
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 161, in fix_owner
10/24/13 20:32:03 _recursive_fix_owner(start_path)
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 159, in _recursive_fix_owner
10/24/13 20:32:03 _recursive_fix_owner(os.path.join(path, c))
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 159, in _recursive_fix_owner
10/24/13 20:32:03 _recursive_fix_owner(os.path.join(path, c))
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 159, in _recursive_fix_owner
10/24/13 20:32:03 _recursive_fix_owner(os.path.join(path, c))
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 159, in _recursive_fix_owner
10/24/13 20:32:03 _recursive_fix_owner(os.path.join(path, c))
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 159, in _recursive_fix_owner
10/24/13 20:32:03 _recursive_fix_owner(os.path.join(path, c))
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 159, in _recursive_fix_owner
10/24/13 20:32:03 _recursive_fix_owner(os.path.join(path, c))
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 159, in _recursive_fix_owner
10/24/13 20:32:03 _recursive_fix_owner(os.path.join(path, c))
10/24/13 20:32:03 File
"/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0007_inventoried_custom_metadata.py",
line 154, in _recursive_fix_owner
10/24/13 20:32:03 os.chown(path, apache_uid, apache_gid)
10/24/13 20:32:03 OSError: [Errno 2] No such file or directory:
'/var/lib/pulp/working/repos/Undrground-centos6-6_os_x86_64/importers/isos/x86_64/CentOS-6.4-x86_64-netinstall.iso'
It seems to be complaining about the absence of that file. However,
it's there :
$ ls -la
/var/lib/pulp/working/repos/Undrground-centos6-6_os_x86_64/importers/isos/x86_64/CentOS-6.4-x86_64-netinstall.iso
lrwxrwxrwx. 1 apache apache 122 Jul 10 10:01
/var/lib/pulp/working/repos/Undrground-centos6-6_os_x86_64/importers/isos/x86_64/CentOS-6.4-x86_64-netinstall.iso
->
../../../../../../../../../../content/distribution/ks-CentOS-6.4-x86_64/../../isos/x86_64/CentOS-6.4-x86_64-netinstall.iso
There's also another error in the changesets :
10/24/13 20:24:45 Starting step Migrate candlepin database
10/24/13 20:24:56 Migrating candlepin database
10/24/13 20:24:56 INFO 10/24/13 8:24 PM:liquibase: Successfully acquired
change log lock
10/24/13 20:24:56 INFO 10/24/13 8:24 PM:liquibase: Reading from
databasechangelog
10/24/13 20:24:56 INFO 10/24/13 8:24 PM:liquibase: Reading from
databasechangelog
10/24/13 20:24:56 INFO 10/24/13 8:24 PM:liquibase: Marking ChangeSet:
db/changelog/20130315171104-migrate-upstream-uuid.xml::20130315171104-1::jesusr::(Checksum:
3:0f47c338be7288047c4f8070fb5f8c3b) ran despite precondition failure due
to onFail='MARK_RAN':
10/24/13 20:24:56 db/changelog/changelog-update.xml : Column
'upstream_name' does not exist
10/24/13 20:24:56
10/24/13 20:24:56 INFO 10/24/13 8:24 PM:liquibase: Marking ChangeSet:
db/changelog/20130315171104-migrate-upstream-uuid.xml::20130315171104-2::jesusr::(Checksum:
3:912ed8de23dd289344ac372cc4d421c3) ran despite precondition failure due
to onFail='MARK_RAN':
10/24/13 20:24:56 db/changelog/changelog-update.xml : Column
'upstream_name' does not exist
10/24/13 20:24:56
Though the rest of them seem to have run fine. And finally, the last
error is that foreman is not starting :
10/24/13 20:25:34 Starting step Start foreman service
10/24/13 20:25:34 Starting foreman: Starting server on 127.0.0.1:5500 ...
10/24/13 20:25:34 >> Deleting stale PID file tmp/pids/thin.5500.pid
10/24/13 20:25:34 Starting server on 127.0.0.1:5501 ...
10/24/13 20:25:35 >> Deleting stale PID file tmp/pids/thin.5501.pid
10/24/13 20:25:35 [ OK ]
10/24/13 20:31:08 tomcat6 (pid 8990) is running... [ OK ]
10/24/13 20:31:08 httpd (pid 8821) is running...
10/24/13 20:31:08 mongod (pid 8757) is running...
10/24/13 20:31:08 qpidd (pid 8706) is running...
10/24/13 20:31:08 elasticsearch (pid 9084) is running...
10/24/13 20:31:08 Foreman dead but pid file exists
10/24/13 20:31:08 dead but pid file exists
10/24/13 20:31:08 katello is not running.
10/24/13 20:31:08 delayed_job is not running.
10/24/13 20:31:08 delayed_job_monitor is not running.
It appears that maybe there's a / missing from the pid path? I'm not
sure where that's set, though.
Can anyone offer some assistance?
Thanks!
--
---------------------------
Jason 'XenoPhage' Frisvold
xenophage(a)godshell.com
---------------------------
"Any sufficiently advanced magic is indistinguishable from technology.\"
- Niven's Inverse of Clarke's Third Law