Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during reindexing with Infra Server 14.8 #2740

Open
tas50 opened this issue Aug 17, 2021 · 0 comments
Open

Error during reindexing with Infra Server 14.8 #2740

tas50 opened this issue Aug 17, 2021 · 0 comments
Labels
Triage: Try Reproducing Indicates that this issue needs to be reproduced. Type: Chore non-critical maintenance of a project.

Comments

@tas50
Copy link
Contributor

tas50 commented Aug 17, 2021

Chef Server Version

14.8

Platform Details

Ubuntu 20.04

Error

During the chef-server-ctl upgrade command there's an error changing directories in the partybus migration. It seems to work just fine anyways so maybe we don't even need to do this:

[Infra Server Upgrade] - Latest PostgreSQL Database Migration Available: 1.36
[Infra Server Upgrade] - Database PostgreSQL Database Migrations to Run: [#<Partybus::MigrationFile:0x000055969b8fbce0 @path="/opt/opscode/embedded/upgrades/001/036_reindex_postgres13.rb", @major=1, @minor=36>]
[Infra Server Upgrade] - Current PostgreSQL Database Migration Version: 1.35
[Infra Server Upgrade] - Starting PostgreSQL Database Migration 1.36
[Infra Server Upgrade] - 	Stopping Services ["nginx", "opscode-erchef"]
ok: down: nginx: 19s, normally up
down: nginx: 20s, normally up; run: log: (pid 1281555) 1611319s
down: nginx: 20s, normally up; run: log: (pid 1281555) 1611319s
ok: down: opscode-erchef: 64s, normally up
down: opscode-erchef: 65s, normally up; run: log: (pid 1281501) 1611326s
down: opscode-erchef: 65s, normally up; run: log: (pid 1281501) 1611326s
[Infra Server Upgrade] - Sleeping for 10 seconds while services stop...
[Infra Server Upgrade] - 	Starting Services ["postgresql"]
run: postgresql: (pid 1705228) 31s; run: log: (pid 1417409) 1119202s
[Infra Server Upgrade] - Sleeping for 15 seconds while services comes online...
[Infra Server Upgrade] - Reindexing postgreSQL...
[Infra Server Upgrade] - 	Running Command: sudo -H -u  opscode-pgsql bash -c '/opt/opscode/embedded/bin/reindexdb --all' with options {}
[DEPRECATED] `Bundler.clean_system` has been deprecated in favor of `Bundler.unbundled_system`. If you instead want to run the command in the environment before bundler was originally loaded, use `Bundler.original_system` (called at /opt/opscode/embedded/service/partybus/lib/partybus/command_runner.rb:10)
could not change directory to "/opt/opscode/embedded/service/partybus": Permission denied
reindexdb: reindexing database "bifrost"
reindexdb: reindexing database "oc_id"
reindexdb: reindexing database "opscode-pgsql"
reindexdb: reindexing database "opscode_chef"
reindexdb: reindexing database "postgres"
reindexdb: reindexing database "template1"
[Infra Server Upgrade] - Finished PostgreSQL Database Migration 1.36 in 62.6 seconds
Chef Infra Server Upgraded!
@tas50 tas50 added the Status: Untriaged An issue that has yet to be triaged. label Aug 17, 2021
@PrajaktaPurohit PrajaktaPurohit added Triage: Try Reproducing Indicates that this issue needs to be reproduced. Type: Chore non-critical maintenance of a project. and removed Status: Untriaged An issue that has yet to be triaged. labels May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Try Reproducing Indicates that this issue needs to be reproduced. Type: Chore non-critical maintenance of a project.
Projects
None yet
Development

No branches or pull requests

2 participants