web-arena-x / webarena

Code repo for "WebArena: A Realistic Web Environment for Building Autonomous Agents"
https://webarena.dev
Apache License 2.0
633 stars 90 forks source link

RuntimeError database objects postgresql upon running docker exec #123

Closed devinat1 closed 3 months ago

devinat1 commented 3 months ago

I am getting the following error when I try to follow step by step the instructions shown in the environment_docker README on this step: docker exec gitlab gitlab-ctl reconfigure

Error:

[2024-04-10T04:17:48+00:00] INFO: Running queued delayed notifications before re-raising exception
[2024-04-10T04:17:48+00:00] INFO: templatesymlink[Create a gitlab.yml and create a symlink to Rails root] sending restart action to runit_service[puma] (delayed)
Recipe: gitlab::puma
  * runit_service[puma] action restart (up to date)
[2024-04-10T04:17:48+00:00] INFO: templatesymlink[Create a gitlab.yml and create a symlink to Rails root] sending restart action to sidekiq_service[sidekiq] (delayed)
Recipe: gitlab::sidekiq
  * sidekiq_service[sidekiq] action restart
    * service[sidekiq] action nothing (skipped due to action :nothing)
    * runit_service[sidekiq] action restart (up to date)
     (up to date)
[2024-04-10T04:17:54+00:00] INFO: templatesymlink[Create a gitlab.yml and create a symlink to Rails root] sending run action to execute[clear the gitlab-rails cache] (delayed)
Recipe: gitlab::gitlab-rails
  * execute[clear the gitlab-rails cache] action run[2024-04-10T04:18:59+00:00] INFO: execute[clear the gitlab-rails cache] ran successfully

    - execute /opt/gitlab/bin/gitlab-rake cache:clear

Running handlers:
[2024-04-10T04:18:59+00:00] ERROR: Running exception handlers
Running handlers complete
There was an error running gitlab-ctl reconfigure:

database_objects[postgresql] (postgresql::standalone line 29) had an error: RuntimeError: postgresql_user[gitlab] (postgresql::standalone line 21) had an error: RuntimeError: execute[create gitlab postgresql user] (postgresql::standalone line 13) had an error: RuntimeError: Exhausted service checks and database is still not available

[2024-04-10T04:18:59+00:00] ERROR: Exception handlers complete
Infra Phase failed. 10 resources updated in 04 minutes 53 seconds
[2024-04-10T04:18:59+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2024-04-10T04:18:59+00:00] FATAL: ---------------------------------------------------------------------------------------
[2024-04-10T04:18:59+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2024-04-10T04:18:59+00:00] FATAL: ---------------------------------------------------------------------------------------
[2024-04-10T04:18:59+00:00] FATAL: RuntimeError: database_objects[postgresql] (postgresql::standalone line 29) had an error: RuntimeError: postgresql_user[gitlab] (postgresql::standalone line 21) had an error: RuntimeError: execute[create gitlab postgresql user] (postgresql::standalone line 13) had an error: RuntimeError: Exhausted service checks and database is still not available

Along with cat: /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out: No such file or directory

I am using the provided AMI image with t3.xlarge compute and an elastic IP associated with it.

devinat1 commented 3 months ago

Resolved, used incorrect setup port.

plzdoo commented 1 month ago

Resolved, used incorrect setup port.

Resolved, used incorrect setup port.

Could you specify how you solve this?

louithy commented 3 weeks ago

I'm having the same issue using the provided AMI image with t3.xlarge compute and an elastic IP associated with it. There was an error running gitlab-ctl reconfigure:

database_objects[postgresql] (postgresql::standalone line 29) had an error: RuntimeError: postgresql_user[gitlab] (postgresql::standalone line 21) had an error: RuntimeError: execute[create gitlab postgresql user] (postgresql::standalone line 13) had an error: RuntimeError: Exhausted service checks and database is still not available

[2024-06-12T09:34:46+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out [2024-06-12T09:34:46+00:00] FATAL: --------------------------------------------------------------------------------------- [2024-06-12T09:34:46+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT [2024-06-12T09:34:46+00:00] FATAL: --------------------------------------------------------------------------------------- [2024-06-12T09:34:46+00:00] FATAL: RuntimeError: database_objects[postgresql] (postgresql::standalone line 29) had an error: RuntimeError: postgresql_user[gitlab] (postgresql::standalone line 21) had an error: RuntimeError: execute[create gitlab postgresql user] (postgresql::standalone line 13) had an error: RuntimeError: Exhausted service checks and database is still not available

louithy commented 3 weeks ago

It ended up working, I waited for one hour and retried...