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

wpcom:run-site-wp-cli-command fails on large number of our Atomic sites #50

Open
NickGreen opened this issue Sep 30, 2024 · 1 comment

Comments

@NickGreen
Copy link

Synopsis

When running team51 wpcom:run-site-wp-cli-command on a high percentage of our Atomic sites (40%?), it fails with this error:

❌ API error (500 https://opsoasis.wpspecialprojects.com/wp-json/wpcomsp/wpcom/v1/site-ssh-users/XXXXXXXX): {"code":403,"message":"Forbidden","data":null}
❌ Could not find the WordPress.com site SSH username.
Could not connect to the SSH server

To duplicate

  1. Run team51 wpcom:run-site-wp-cli-command redacted.com 'wp plugin list' on a site for which our user doesn't have the "Hosting" menu item in wp-admin.
  2. See error in terminal

Details

When running a support session with our team user, and logging into wp-admin, we have a large number of sites for which our user doesn't have the "Hosting" nav menu item. These are the sites where we aren't able to get SSH access, and for which the command fails.

Sites that have that menu item allow SSH access, and the command works as expected.

Please contact @NickGreen if you need a list of our Atomic sites for which this command isn't working.

@NickGreen
Copy link
Author

Noting here that the Atomic sites for which this command fails seem to have two characteristics:

  1. Our user is not the owner of the blog
  2. SSH creds are still accessible through https://wordpress.com/hosting-config/yourwebsite.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant