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

[bug]: API Service not starting - going in a loop #6261

Closed
1 task done
shiginbhaskar opened this issue Dec 23, 2024 · 7 comments
Closed
1 task done

[bug]: API Service not starting - going in a loop #6261

shiginbhaskar opened this issue Dec 23, 2024 · 7 comments
Assignees
Labels
🐛bug Something isn't working

Comments

@shiginbhaskar
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

The API service is not starting, it's going in a loop...

WARN[0000] The "ADMIN_BASE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "SPACE_BASE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "APP_BASE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "ADMIN_BASE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "SPACE_BASE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "APP_BASE_URL" variable is not set. Defaulting to a blank string.
[+] Running 8/8
✔ beat-worker Pulled 22.2s
✔ migrator Pulled 22.1s
✔ admin Pulled 22.1s
✔ api Pulled 22.1s
✔ proxy Pulled 22.1s
✔ web Pulled 22.1s
✔ space Pulled 21.9s
✔ worker Pulled 22.2s
[+] Running 12/12
✔ Network plane-app_default Created 0.1s
✔ Container plane-app-plane-db-1 Started 0.7s
✔ Container plane-app-plane-redis-1 Started 0.7s
✔ Container plane-app-plane-minio-1 Started 0.8s
✔ Container plane-app-api-1 Started 1.0s
✔ Container plane-app-migrator-1 Started 1.3s
✔ Container plane-app-beat-worker-1 Started 1.5s
✔ Container plane-app-worker-1 Started 1.5s
✔ Container plane-app-web-1 Started 1.8s
✔ Container plane-app-admin-1 Started 2.7s
✔ Container plane-app-space-1 Started 2.8s
✔ Container plane-app-proxy-1 Started 3.5s

Data Migration completed successfully ✅

Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start.........................................................................................................................>> Waiting for API Service to Start...........................................

Steps to reproduce


____ _ /////////
| _ | | __ _ _ __ ___ /////////
| |) | |/ ` | ' \ / _ \ ///// /////
| __/| | (
| | | | | / ///// /////
|| ||_,|| ||_
| ////
////

Project management tool from the future

Select a Action you want to perform:

  1. Install (x86_64)
  2. Start
  3. Stop
  4. Restart
  5. Upgrade
  6. View Logs
  7. Backup Data
  8. Exit

Action [2]: 2

Environment

Production

Browser

Google Chrome

Variant

Self-hosted

Version

v1.6.0

@shiginbhaskar shiginbhaskar added the 🐛bug Something isn't working label Dec 23, 2024
@shiginbhaskar
Copy link
Author

API Log shows the following:

api-1 | Waiting for database...
api-1 | Database available!
api-1 | No migrations Pending. Starting processes ...
api-1 | Instance already registered
api-1 | Traceback (most recent call last):
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/utils/functional.py", line 32, in call
api-1 | return self.value
api-1 | ^^^^^^^^^^^^^^
api-1 | AttributeError: 'ChannelPromise' object has no attribute 'value'. Did you mean: 'call'?
api-1 |
api-1 | During handling of the above exception, another exception occurred:
api-1 |
api-1 | Traceback (most recent call last):
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/connection.py", line 472, in _reraise_as_library_errors
api-1 | yield
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/connection.py", line 459, in _ensure_connection
api-1 | return retry_over_time(
api-1 | ^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/utils/functional.py", line 318, in retry_over_time
api-1 | return fun(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/connection.py", line 934, in _connection_factory
api-1 | self._connection = self._establish_connection()
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/connection.py", line 860, in _establish_connection
api-1 | conn = self.transport.establish_connection()
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/transport/pyamqp.py", line 203, in establish_connection
api-1 | conn.connect()
api-1 | File "/usr/local/lib/python3.12/site-packages/amqp/connection.py", line 324, in connect
api-1 | self.transport.connect()
api-1 | File "/usr/local/lib/python3.12/site-packages/amqp/transport.py", line 132, in connect
api-1 | self._connect(self.host, self.port, self.connect_timeout)
api-1 | File "/usr/local/lib/python3.12/site-packages/amqp/transport.py", line 187, in _connect
api-1 | self.sock.connect(sa)
api-1 | ConnectionRefusedError: [Errno 111] Connection refused
api-1 |
api-1 | The above exception was the direct cause of the following exception:
api-1 |
api-1 | Traceback (most recent call last):
api-1 | File "/code/manage.py", line 15, in
api-1 | execute_from_command_line(sys.argv)
api-1 | File "/usr/local/lib/python3.12/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
api-1 | utility.execute()
api-1 | File "/usr/local/lib/python3.12/site-packages/django/core/management/init.py", line 436, in execute
api-1 | self.fetch_command(subcommand).run_from_argv(self.argv)
api-1 | File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 412, in run_from_argv
api-1 | self.execute(*args, **cmd_options)
api-1 | File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 458, in execute
api-1 | output = self.handle(*args, **options)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/code/plane/license/management/commands/register_instance.py", line 70, in handle
api-1 | instance_traces.delay()
api-1 | File "/usr/local/lib/python3.12/site-packages/celery/app/task.py", line 444, in delay
api-1 | return self.apply_async(args, kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/celery/app/task.py", line 594, in apply_async
api-1 | return app.send_task(
api-1 | ^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/celery/app/base.py", line 801, in send_task
api-1 | amqp.send_task_message(P, name, message, **options)
api-1 | File "/usr/local/lib/python3.12/site-packages/celery/app/amqp.py", line 518, in send_task_message
api-1 | ret = producer.publish(
api-1 | ^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/messaging.py", line 186, in publish
api-1 | return _publish(
api-1 | ^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/connection.py", line 556, in _ensured
api-1 | return fun(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/messaging.py", line 195, in _publish
api-1 | channel = self.channel
api-1 | ^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/messaging.py", line 218, in _get_channel
api-1 | channel = self._channel = channel()
api-1 | ^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/utils/functional.py", line 34, in call
api-1 | value = self.value = self.contract()
api-1 | ^^^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/messaging.py", line 234, in
api-1 | channel = ChannelPromise(lambda: connection.default_channel)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/connection.py", line 953, in default_channel
api-1 | self._ensure_connection(**conn_opts)
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/connection.py", line 458, in _ensure_connection
api-1 | with ctx():
api-1 | File "/usr/local/lib/python3.12/contextlib.py", line 158, in exit
api-1 | self.gen.throw(value)
api-1 | File "/usr/local/lib/python3.12/site-packages/kombu/connection.py", line 476, in _reraise_as_library_errors
api-1 | raise ConnectionError(str(exc)) from exc
api-1 | kombu.exceptions.OperationalError: [Errno 111] Connection refused
api-1 exited with code 1
api-1 | Waiting for database...
api-1 | Database available!
api-1 | No migrations Pending. Starting processes ...

@akshat5302
Copy link
Collaborator

Are you on the plane community or commercial edition? @shiginbhaskar

@shiginbhaskar
Copy link
Author

Plane community edition.

@akshat5302
Copy link
Collaborator

Could you please share your plane version?

@akshat5302
Copy link
Collaborator

akshat5302 commented Dec 23, 2024

We have introduced the Rabbitmq service in our recent releases, please upgrade your plane to the newest version by running ./setup.sh upgrade in your Plane installation directory

@shiginbhaskar
Copy link
Author

Thanks. Looks like the upgrade to the latest version worked!!

@akshat5302
Copy link
Collaborator

This issue is resolved, closing it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants