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

supabase start service not healthy : [supabase_edge_runtime_chatbotui supabase_pg_meta_chatbotui supabase_studio_chatbotui] #2146

Open
xiaocheng9812 opened this issue Apr 12, 2024 · 3 comments

Comments

@xiaocheng9812
Copy link

Describe the bug
supabase start
service not healthy : [supabase_edge_runtime_chatbotui supabase_pg_meta_chatbotui supabase_studio_chatbotui]

To Reproduce
Steps to reproduce the behavior:

  1. Go to run supabase start and logs:
    Applying migration 20240108234540_setup.sql...
    Applying migration 20240108234541_add_profiles.sql...
    Applying migration 20240108234542_add_workspaces.sql...
    Applying migration 20240108234543_add_folders.sql...
    Applying migration 20240108234544_add_files.sql...
    Applying migration 20240108234545_add_file_items.sql...
    Applying migration 20240108234546_add_presets.sql...
    Applying migration 20240108234547_add_assistants.sql...
    Applying migration 20240108234548_add_chats.sql...
    Applying migration 20240108234549_add_messages.sql...
    Applying migration 20240108234550_add_prompts.sql...
    Applying migration 20240108234551_add_collections.sql...
    Applying migration 20240115135033_add_openrouter.sql...
    Applying migration 20240115171510_add_assistant_files.sql...
    Applying migration 20240115171524_add_tools.sql...
    Applying migration 20240115172125_add_assistant_tools.sql...
    Applying migration 20240118224049_add_azure_embeddings.sql...
    Applying migration 20240124234424_tool_improvements.sql...
    Applying migration 20240125192042_upgrade_openai_models.sql...
    Applying migration 20240125194719_add_custom_models.sql...
    Applying migration 20240129232644_add_workspace_images.sql...
    Applying migration 20240212063532_add_at_assistants.sql...
    Applying migration 20240213040255_remove_request_in_body_from_tools.sql...
    Applying migration 20240213085646_add_context_length_to_custom_models.sql...
    Applying migration 20240302004845_add_groq.sql...
    Seeding data supabase/seed.sql...
    supabase_edge_runtime_chatbotui container logs:

       #
       # Fatal error in , line 0
       # Check failed: Start().
       #
       #
       #
       #FailureMessage Object: 0x7ffcc9a55da0Aborted (core dumped)
       supabase_pg_meta_chatbotui container logs:
       
         #  node[1]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
         #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
       
       ----- Native stack trace -----
       
        1: 0xca5580 node::Abort() [node]
        2: 0xca5600 node::errors::SetPrepareStackTraceCallback(v8::FunctionCallbackInfo<v8::Value> const&) [node]
        3: 0xd24949 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
        4: 0xd24a6c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xc5e5d3  [node]
        6: 0xc5ef64 node::Start(int, char**) [node]
        7: 0x7f6caf79424a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f6caf794305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xbb8eee _start [node]
       
         #  node[1]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
         #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
       
       ----- Native stack trace -----
       
        1: 0xca5580 node::Abort() [node]
        2: 0xca5600 node::errors::SetPrepareStackTraceCallback(v8::FunctionCallbackInfo<v8::Value> const&) [node]
        3: 0xd24949 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
        4: 0xd24a6c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xc5e5d3  [node]
        6: 0xc5ef64 node::Start(int, char**) [node]
        7: 0x7f84728e124a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f84728e1305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xbb8eee _start [node]
       
         #  node[1]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
         #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
       
       ----- Native stack trace -----
       
        1: 0xca5580 node::Abort() [node]
        2: 0xca5600 node::errors::SetPrepareStackTraceCallback(v8::FunctionCallbackInfo<v8::Value> const&) [node]
        3: 0xd24949 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
        4: 0xd24a6c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xc5e5d3  [node]
        6: 0xc5ef64 node::Start(int, char**) [node]
        7: 0x7fc7b6aa224a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7fc7b6aa2305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xbb8eee _start [node]
       
         #  node[1]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
         #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
       
       ----- Native stack trace -----
       
        1: 0xca5580 node::Abort() [node]
        2: 0xca5600 node::errors::SetPrepareStackTraceCallback(v8::FunctionCallbackInfo<v8::Value> const&) [node]
        3: 0xd24949 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
        4: 0xd24a6c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xc5e5d3  [node]
        6: 0xc5ef64 node::Start(int, char**) [node]
        7: 0x7f14d69e924a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f14d69e9305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xbb8eee _start [node]
       
         #  node[1]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
         #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
       
       ----- Native stack trace -----
       
        1: 0xca5580 node::Abort() [node]
        2: 0xca5600 node::errors::SetPrepareStackTraceCallback(v8::FunctionCallbackInfo<v8::Value> const&) [node]
        3: 0xd24949 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
        4: 0xd24a6c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xc5e5d3  [node]
        6: 0xc5ef64 node::Start(int, char**) [node]
        7: 0x7f307072924a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f3070729305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xbb8eee _start [node]
       
         #  node[1]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
         #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
       
       ----- Native stack trace -----
       
        1: 0xca5580 node::Abort() [node]
        2: 0xca5600 node::errors::SetPrepareStackTraceCallback(v8::FunctionCallbackInfo<v8::Value> const&) [node]
        3: 0xd24949 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
        4: 0xd24a6c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xc5e5d3  [node]
        6: 0xc5ef64 node::Start(int, char**) [node]
        7: 0x7f9a023f524a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f9a023f5305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xbb8eee _start [node]
       
         #  node[1]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
         #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
       
       ----- Native stack trace -----
       
        1: 0xca5580 node::Abort() [node]
        2: 0xca5600 node::errors::SetPrepareStackTraceCallback(v8::FunctionCallbackInfo<v8::Value> const&) [node]
        3: 0xd24949 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
        4: 0xd24a6c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xc5e5d3  [node]
        6: 0xc5ef64 node::Start(int, char**) [node]
        7: 0x7fe9006df24a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7fe9006df305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xbb8eee _start [node]
       
         #  node[1]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
         #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
       
       ----- Native stack trace -----
       
        1: 0xca5580 node::Abort() [node]
        2: 0xca5600 node::errors::SetPrepareStackTraceCallback(v8::FunctionCallbackInfo<v8::Value> const&) [node]
        3: 0xd24949 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
        4: 0xd24a6c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xc5e5d3  [node]
        6: 0xc5ef64 node::Start(int, char**) [node]
        7: 0x7ff72eecf24a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7ff72eecf305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xbb8eee _start [node]
       supabase_studio_chatbotui container logs:
       node[1]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
        1: 0xb95be0 node::Abort() [node]
        2: 0xb95c5e  [node]
        3: 0xc045ae  [node]
        4: 0xc04691 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xb50e63 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
        6: 0xb514bb node::Start(int, char**) [node]
        7: 0x7f9cc03b024a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f9cc03b0305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xacfdce _start [node]
       node[1]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
        1: 0xb95be0 node::Abort() [node]
        2: 0xb95c5e  [node]
        3: 0xc045ae  [node]
        4: 0xc04691 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xb50e63 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
        6: 0xb514bb node::Start(int, char**) [node]
        7: 0x7f1e0009124a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f1e00091305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xacfdce _start [node]
       node[1]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
        1: 0xb95be0 node::Abort() [node]
        2: 0xb95c5e  [node]
        3: 0xc045ae  [node]
        4: 0xc04691 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xb50e63 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
        6: 0xb514bb node::Start(int, char**) [node]
        7: 0x7fc5ebc7e24a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7fc5ebc7e305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xacfdce _start [node]
       node[1]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
        1: 0xb95be0 node::Abort() [node]
        2: 0xb95c5e  [node]
        3: 0xc045ae  [node]
        4: 0xc04691 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xb50e63 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
        6: 0xb514bb node::Start(int, char**) [node]
        7: 0x7f1a09c8a24a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f1a09c8a305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xacfdce _start [node]
       node[1]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
        1: 0xb95be0 node::Abort() [node]
        2: 0xb95c5e  [node]
        3: 0xc045ae  [node]
        4: 0xc04691 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xb50e63 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
        6: 0xb514bb node::Start(int, char**) [node]
        7: 0x7f76b119524a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f76b1195305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xacfdce _start [node]
       node[1]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
        1: 0xb95be0 node::Abort() [node]
        2: 0xb95c5e  [node]
        3: 0xc045ae  [node]
        4: 0xc04691 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xb50e63 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
        6: 0xb514bb node::Start(int, char**) [node]
        7: 0x7fa76060524a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7fa760605305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xacfdce _start [node]
       node[1]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
        1: 0xb95be0 node::Abort() [node]
        2: 0xb95c5e  [node]
        3: 0xc045ae  [node]
        4: 0xc04691 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xb50e63 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
        6: 0xb514bb node::Start(int, char**) [node]
        7: 0x7f096e50024a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f096e500305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xacfdce _start [node]
       node[1]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
        1: 0xb95be0 node::Abort() [node]
        2: 0xb95c5e  [node]
        3: 0xc045ae  [node]
        4: 0xc04691 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
        5: 0xb50e63 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
        6: 0xb514bb node::Start(int, char**) [node]
        7: 0x7f660eb2f24a  [/lib/x86_64-linux-gnu/libc.so.6]
        8: 0x7f660eb2f305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
        9: 0xacfdce _start [node]
       service not healthy: [supabase_edge_runtime_chatbotui supabase_pg_meta_chatbotui supabase_studio_chatbotui]
       Try rerunning the command with --debug to troubleshoot the error.
    
  2. if run supabase start --ignore-health-check
    ...
    service not healthy: [supabase_edge_runtime_chatbotui supabase_pg_meta_chatbotui supabase_studio_chatbotui]
    Started supabase local development setup.

and run supabase status :
supabase_pg_meta_chatbotui container is not ready: unhealthy
supabase_studio_chatbotui container is not ready: unhealthy
Stopped services: [supabase_analytics_chatbotui]
supabase local development setup is running.

  1. check docker here:
    $docker ps -a | grep supabase
    acf23d9b413a public.ecr.aws/supabase/edge-runtime:v1.41.3 "edge-runtime" 38 minutes ago Exited (139) 38 minutes ago supabase_edge_runtime_chatbotui
    52b8080856ed public.ecr.aws/supabase/studio:20240326-5e5586d "docker-entrypoint.s…" 43 minutes ago Restarting (139) 4 seconds ago supabase_studio_chatbotui
    20bb1d050ad5 public.ecr.aws/supabase/postgres-meta:v0.80.0 "docker-entrypoint.s…" 43 minutes ago Restarting (139) 32 seconds ago

Expected behavior
supabase start runing ok.

Screenshots
supabase start now Three containers are found to be abnormal.

System information
Rerun the failing command with --create-ticket flag.

  • Ticket ID: [e.g. None]
  • Version of OS: [e.g. Ubuntu 22.04]
  • Version of CLI: [e.g. 1.153.4]
  • Version of Docker: [e.g. 26.0.0]
  • Versions of services: [Access token not provided. Supply an access token by running supabase login or setting the SUPABASE_ACCESS_TOKEN environment variable]
@sweatybridge
Copy link
Contributor

Based on this SO post, it could be an issue with nodejs exceeding the user process limit of your host OS, which is inherited by docker container.

What's your output from running ulimit?

$ ulimit
unlimited

@jackjury
Copy link

I have this same issue.... running ulimit:

>ulimit unlimited

Any other ideas?

@sweatybridge
Copy link
Contributor

I can seem to reproduce this on gitpod which runs ubuntu 22.04.

I noticed that chatbot-ui doesn't use edge functions, so it would be ok to exclude it from starting.

supabase start -x edge-runtime

Could you share the logs again after running the above command?

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

3 participants