Skip to content

App space deploy failed #305

@zhstark

Description

@zhstark

After deploying using docker image, I created an app space and git push the basic gradio application code as following:

import gradio as gr

def greet(name):
    return "Hello " + name + "!!"

iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()

Then it's always building with no log.

screenshot

Image

Image

I deploy the docker as following:

docker run -it -d     --name omnibus-csghub     --hostname omnibus-csghub     -p 9168:80     -p 2222:2222     -p 5000:5000     -p 8000:8000     -p 9000:9000     -e SERVER_DOMAIN=8.141.7.84     -e SERVER_PORT=9168     -e CSGHUB_WITH_K8S=1     -v ~/.kube/config:/etc/.kube/config     -v /var/run/docker.sock:/var/run/docker.sock     opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/omnibus-csghub:v1.5.0

I checked the related log in csghub-server.log, found some logs those maybe related to this problem:

{"time":"2025-04-07T08:41:40.817263363Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":18,"status":200,"current_user":"","auth_type

[bun]  08:40:30.730   SELECT                   71µs  SELECT "space"."id", "space"."repository_id", "space"."sdk", "space"."sdk_version", "space"."templaate", "space"."cover_image_url", "space"."env", "space"."hardware", "space"."secrets", "space"."has_app_file", "space"."sku", "space"."variables", "space"."created_at", "space"."updated_at", "repository"."id" AS "repository__id", "repository"."user_id" AS "repository__user_id", "repository"."path" AS "repository__path", "repository"."git_path" AS "repository__git_path", "repository"."name" AS "repository__name", "repository"."nickname" AS "repository__nickname", "repository"."description" AS "repository__description", "repository"."private" AS "repository__private", "repository"."labels" AS "repository__labels", "repository"."license" AS "repository__license", "repository"."readme" AS "repository__readme", "repository"."default_branch" AS "repository__default_branch", "repository"."likes" AS "repository__likes", "repository"."download_count" AS "repository__download_count", "repository"."repository_type" AS "repository__repository_type", "repository"."http_clone_url" AS "repository__http_clone_url", "repository"."ssh_clone_url" AS "repository__ssh_clone_url", "repository"."source" AS "repository__source", "repository"."sync_status" AS "repository__sync_status", "repository"."sensitive_check_status" AS "repository__sensitive_check_status", "repository"."ms_path" AS "repository__ms_path", "repository"."csg_path" AS "repository__csg_path", "repository"."hf_path" AS "repository__hf_path", "repository"."created_at" AS "repository__created_at", "repository"."updated_at" AS "repository__updated_at", "repository__user"."id" AS "repository__user__id", "repository__user"."git_id" AS "repository__user__git_id", "repository__user"."name" AS "repository__user__name", "repository__user"."username" AS "repository__user__username", "repository__user"."email" AS "repository__user__email", "repository__user"."password" AS "repository__user__password", "repository__user"."uuid" AS "repository__user__uuid", "repository__user"."reg_provider" AS "repository__user__reg_provider", "repository__user"."gender" AS "repository__user__gender", "repository__user"."role_mask" AS "repository__user__role_mask", "repository__user"."phone" AS "repository__user__phone", "repository__user"."phone_verified" AS "repository__user__phone_verified", "repository__user"."email_verified" AS "repository__user__email_verified", "repository__user"."last_login_at" AS "repository__user__last_login_at", "repository__user"."avatar" AS "repository__user__avatar", "repository__user"."company_verified" AS "repository__user__company_verified", "repository__user"."password_hash" AS "repository__user__password_hash", "repository__user"."homepage" AS "repository__user__homepage", "repository__user"."bio" AS "repository__user__bio", "repository__user"."can_change_user_name" AS "repository__user__can_change_user_name", "repository__user"."created_at" AS "repository__user__created_at", "repository__user"."updated_at" AS "repository__user__updated_at" FROM "spaces" AS "space" LEFT JOIN "repositories" AS "repository" ON ("repository"."id" = "space"."repository_id") LEFT JOIN "users" AS "repository__user" ON ("repository__user"."id" = "repository"."user_id") WHERE (repository.path = 'root/test2' and repository.repository_type = 'space')           *errors.errorString: context canceled
{"time":"2025-04-07T08:40:30.73032488Z","level":"ERROR","msg":"failed to get space status","error":"can't find space by path:failed to find space: context canceled","namespace":"root","name":"test2"}
{"time":"2025-04-07T08:40:30.730441581Z","level":"INFO","msg":"space handler status request context done","error":"context canceled"}
{"time":"2025-04-07T08:40:30.730463161Z","level":"INFO","msg":"http request","ip":"124.127.113.66","method":"GET","latency(ms)":900455,"status":200,"current_user":"root","auth_type":"JWT","url":"/api/v1/spaces/root/test2/status","full_path":"/api/v1/spaces/:namespace/:name/status"}
{"time":"2025-04-07T08:40:31.075075533Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":11,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}
{"time":"2025-04-07T08:40:33.306096823Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":10,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}
{"time":"2025-04-07T08:40:35.555699448Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":12,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}
{"time":"2025-04-07T08:40:37.809075373Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":13,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}
{"time":"2025-04-07T08:40:38.998444697Z","level":"ERROR","msg":"failed to call builder status api","error":"Get \"http://127.0.0.1:8089/root/test_app_space/status?build_id=1\": EOF","task":{}}
{"time":"2025-04-07T08:40:40.097473303Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":30,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}
{"time":"2025-04-07T08:40:42.3645991Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":14,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}
{"time":"2025-04-07T08:40:44.614568904Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":12,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}
{"time":"2025-04-07T08:40:46.855273527Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":12,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}
{"time":"2025-04-07T08:40:49.000723569Z","level":"ERROR","msg":"failed to call builder status api","error":"Get \"http://127.0.0.1:8089/root/test_app_space/status?build_id=1\": EOF","task":{}}
{"time":"2025-04-07T08:40:49.093561776Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":11,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}
{"time":"2025-04-07T08:40:51.330139585Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":12,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}
{"time":"2025-04-07T08:40:53.567828114Z","level":"INFO","msg":"http request","ip":"8.141.7.84","method":"GET","latency(ms)":11,"status":200,"current_user":"","auth_type":"","url":"/api/v1/tags","full_path":"/api/v1/tags"}

Desktop:

OS: Ubuntu 20.04
Browser firefox
Version: v1.5.0

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions