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

A first proper start up of local server throws some ES errors #633

Open
16 tasks
mikelittle opened this issue Oct 3, 2023 · 0 comments
Open
16 tasks

A first proper start up of local server throws some ES errors #633

mikelittle opened this issue Oct 3, 2023 · 0 comments
Labels
bug Existing functionality isn't behaving as expected developer advocacy Developer Advocacy related tasks should have Should be done, medium priority for now to refine Issues needing refinement.

Comments

@mikelittle
Copy link
Contributor

After an Altis local server stack starts for the first time (after the first failure mentioned in issue 632), ElasticSearch always throws some errors

$ composer server start
Starting...
[+] Building 0.0s (0/0)                     docker:colima
[+] Running 1/0
 ✔ Container altis-proxy            Running  0.0s
[+] Running 2/2
 ⠿ Container altis17beta-mutagen-1  Stopped  0.3s
 ⠿ Mutagen                          Paused   0.0s
[+] Running 2/2
 ⠿ Container altis17beta-mutagen-1  Healthy  1.0s
 ⠿ Mutagen                          Started  0.0s
[+] Running 12/12
 ⠿ Container altis17beta-tachyon    Running  0.0s
 ⠿ Container altis17beta-redis      Running  0.0s
 ⠿ Container altis17beta-mailhog    Running  0.0s
 ⠿ Container altis17beta-xray       Running  0.0s
 ⠿ Container altis17beta-s3         Running  0.0s
 ⠿ Container altis17beta-db         Healthy  1.1s
 ⠿ Container altis17beta-s3-sync    Running  0.0s
 ⠿ Container altis17beta-es         Healthy 11.1s
 ⠿ Container altis17beta-php        Started  1.3s
 ⠿ Container altis17beta-cavalcade  Started  1.3s
 ⠿ Container altis17beta-kibana     Started  1.4s
 ⠿ Container altis17beta-nginx      Started  0.8s
Warning: Error in ElasticSearch request:  (404) in /usr/src/app/vendor/altis/cloud/inc/namespace.php on line 389
Warning: Error in ElasticPress request: index_exists  (404) in /usr/src/app/vendor/altis/enhanced-search/inc/namespace.php on line 391
Warning: Error in ElasticSearch request: {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [ep-altis17betaaltisdevrepo-post-2]","resource.type":"index_or_alias","resource.id":"ep-altis17betaaltisdevrepo-post-2","index_uuid":"_na_","index":"ep-altis17betaaltisdevrepo-post-2"}],"type":"index_not_found_exception","reason":"no such index [ep-altis17betaaltisdevrepo-post-2]","resource.type":"index_or_alias","resource.id":"ep-altis17betaaltisdevrepo-post-2","index_uuid":"_na_","index":"ep-altis17betaaltisdevrepo-post-2"},"status":404} (404) in /usr/src/app/vendor/altis/cloud/inc/namespace.php on line 389
Warning: Error in ElasticPress request: delete_index {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [ep-altis17betaaltisdevrepo-post-2]","resource.type":"index_or_alias","resource.id":"ep-altis17betaaltisdevrepo-post-2","index_uuid":"_na_","index":"ep-altis17betaaltisdevrepo-post-2"}],"type":"index_not_found_exception","reason":"no such index [ep-altis17betaaltisdevrepo-post-2]","resource.type":"index_or_alias","resource.id":"ep-altis17betaaltisdevrepo-post-2","index_uuid":"_na_","index":"ep-altis17betaaltisdevrepo-post-2"},"status":404} (404) in /usr/src/app/vendor/altis/enhanced-search/inc/namespace.php on line 391
Warning: Error in ElasticSearch request: {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [ep-altis17betaaltisdevrepo-term-2]","resource.type":"index_or_alias","resource.id":"ep-altis17betaaltisdevrepo-term-2","index_uuid":"_na_","index":"ep-altis17betaaltisdevrepo-term-2"}],"type":"index_not_found_exception","reason":"no such index [ep-altis17betaaltisdevrepo-term-2]","resource.type":"index_or_alias","resource.id":"ep-altis17betaaltisdevrepo-term-2","index_uuid":"_na_","index":"ep-altis17betaaltisdevrepo-term-2"},"status":404} (404) in /usr/src/app/vendor/altis/cloud/inc/namespace.php on line 389
Warning: Error in ElasticPress request: delete_index {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [ep-altis17betaaltisdevrepo-term-2]","resource.type":"index_or_alias","resource.id":"ep-altis17betaaltisdevrepo-term-2","index_uuid":"_na_","index":"ep-altis17betaaltisdevrepo-term-2"}],"type":"index_not_found_exception","reason":"no such index [ep-altis17betaaltisdevrepo-term-2]","resource.type":"index_or_alias","resource.id":"ep-altis17betaaltisdevrepo-term-2","index_uuid":"_na_","index":"ep-altis17betaaltisdevrepo-term-2"},"status":404} (404) in /usr/src/app/vendor/altis/enhanced-search/inc/namespace.php on line 391
Setting up ElasticPress...

ElasticPress configured.
Installed database.
WP Username:	admin
WP Password:	password
Startup completed.
To access your site visit: https://altis17beta.altis.dev/

This doesn't happen on subsequent starts.

Acceptance Criteria

  • The errors do not occur

For Altis Team Use

Ready for Work Checklist

Is this ticket ready to be worked on? See
the Play Book Definition of Ready

  • Is the title clear?
  • Is the description clear and detailed enough?
  • Are acceptance criteria listed?
  • Have any (potential) dependencies been identified?
  • Is an estimate or time box assigned?
  • Is a priority label assigned?
  • Is this ticket added to an epic? (Optional)

Completion Checklist

Is this ticket done? See
the Play Book Definition of Ready

  • Has the acceptance criteria been met?
  • Is the documentation updated (including README)?
  • Does any code/documentation meet project standards?
  • Are automatic tests in place to verify the fix or new functionality?
  • Or are manual tests documented (at least on this ticket)?
  • Are any Playbook/Handbook pages updated?
  • Has a new module release (patch/minor) been created/scheduled?
  • Have the appropriate backport labels been added to the PR?
@mikelittle mikelittle added bug Existing functionality isn't behaving as expected should have Should be done, medium priority for now to refine Issues needing refinement. labels Oct 3, 2023
@mikelittle mikelittle assigned mikelittle and unassigned mikelittle Oct 18, 2023
@missjwo missjwo added the developer advocacy Developer Advocacy related tasks label Dec 16, 2024
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 developer advocacy Developer Advocacy related tasks should have Should be done, medium priority for now to refine Issues needing refinement.
Projects
None yet
Development

No branches or pull requests

2 participants