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

Misleading error when containers do not start successfully #557

Open
kadamwhite opened this issue Jan 6, 2023 · 2 comments
Open

Misleading error when containers do not start successfully #557

kadamwhite opened this issue Jan 6, 2023 · 2 comments
Labels
bug Existing functionality isn't behaving as expected

Comments

@kadamwhite
Copy link
Contributor

kadamwhite commented Jan 6, 2023

If you have a working local environment and some containers do not start properly on composer server start, the error that is shown reads, "WordPress install failed." That is not correct, because we weren't installing WordPress, we were trying to start the containers to run an already-installed WordPress site.

% composer server start
Starting...
[+] Running 1/1
 ⠿ Container altis-proxy  Started                                                                                                                  0.2s
[+] Running 14/14
 ⠿ Container myproject-mailhog    Started       1.0s
 ⠿ Container myproject-tachyon    Started       0.7s
 ⠿ Container myproject-db         Healthy       5.6s
 ⠿ Container myproject-pinpoint   Running       0.0s
 ⠿ Container myproject-redis      Started       0.5s
 ⠿ Container myproject-cognito    Running       0.0s
 ⠿ Container myproject-xray       Started       0.9s
 ⠿ Container myproject-s3         Started       1.0s
 ⠿ Container myproject-es         Healthy       1.6s
 ⠿ Container myproject-kibana     Started       1.1s
 ⠿ Container myproject-php        Started       5.8s
 ⠿ Container myproject-nginx      Started       6.1s
 ⠿ Container myproject-s3-sync    Started       0.0s
 ⠿ Container myproject-cavalcade  Started       0.0s
WordPress install failed. Exited with error code 255

I would expect the error in this situation would be "Local Server failed to initialize properly." or "Failed to start, try running composer server start again." There is a chance (albeit small) that somebody would see the above error and think they needed to remove their DB or take some other destructive action to try to "reset" the environment and reinstall WP, when that should usually not be necessary.

@mikelittle mikelittle added the bug Existing functionality isn't behaving as expected label Jan 6, 2023
@jerico
Copy link
Contributor

jerico commented Jan 11, 2023

The error is checking for a WordPress install by running a wp-cli command.

I'm thinking this is not just a change of error message, it's more of adding additional checks if the nginx/php container ran successfully.

@veselala
Copy link

Try and troubleshoot, it could be some of the services that it's not ready and we need to add some more additional checks in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing functionality isn't behaving as expected
Projects
None yet
Development

No branches or pull requests

4 participants