package-registry stack is broken #893

Open
opened 2024-07-25 15:27:24 +00:00 by dboreham · 2 comments
Owner

The stack for locally hosted gitea is not working. If you follow the instructions here you get a missing file error. If you try creating a deployment (instructions are for pre-deployment SO) it throws an exception.

The stack for locally hosted gitea is not working. If you follow the instructions [here ](https://git.vdb.to/cerc-io/stack-orchestrator/src/branch/main/stack_orchestrator/data/stacks/build-support/README.md)you get a missing file error. If you try creating a deployment (instructions are for pre-deployment SO) it throws an exception.
Author
Owner

Deployment case:

[+] Running 0/2
 ⠏ server Pulling                                                                                                                                               10.0s
[+] Running 0/2                                                                                                                                                 10.0s
 ⠋ server Pulling                                                                                                                                               10.0s
 ⠋ db Pulling                                                                                                                                                   10.0s
error getting credentials - err: exit status 1, out: ``
Traceback (most recent call last):
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/compose/deploy_docker.py", line 35, in up
    return self.docker.compose.up(detach=detach, services=services)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/python_on_whales/components/compose/cli_wrapper.py", line 1042, in up
    run(full_cmd, capture_stdout=quiet, capture_stderr=quiet)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/python_on_whales/utils.py", line 202, in run
    raise DockerException(
python_on_whales.exceptions.DockerException: The docker command executed was `/usr/bin/docker compose --file package-registry-deploy/compose/docker-compose-gitea.yml --file package-registry-deploy/compose/docker-compose-act-runner.yml --env-file package-registry-deploy/config.env --project-name laconic-afcfdba8bb1374a5 up --detach`.
It returned with code 1
The content of stdout can be found above the stacktrace (it wasn't captured).
The content of stderr can be found above the stacktrace (it wasn't captured).

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/bin/laconic-so", line 33, in <module>
    sys.exit(load_entry_point('laconic-stack-orchestrator', 'console_scripts', 'laconic-so')())
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/deployment.py", line 82, in start
    up_operation(ctx, services_list, stay_attached)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/deploy.py", line 105, in up_operation
    deploy_context.deployer.up(detach=not stay_attached, services=services_list)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/compose/deploy_docker.py", line 37, in up
    raise DeployerException(e)
stack_orchestrator.deploy.deployer.DeployerException: The docker command executed was `/usr/bin/docker compose --file package-registry-deploy/compose/docker-compose-gitea.yml --file package-registry-deploy/compose/docker-compose-act-runner.yml --env-file package-registry-deploy/config.env --project-name laconic-afcfdba8bb1374a5 up --detach`.
It returned with code 1
The content of stdout can be found above the stacktrace (it wasn't captured).
The content of stderr can be found above the stacktrace (it wasn't captured).
Deployment case: ``` [+] Running 0/2 ⠏ server Pulling 10.0s [+] Running 0/2 10.0s ⠋ server Pulling 10.0s ⠋ db Pulling 10.0s error getting credentials - err: exit status 1, out: `` Traceback (most recent call last): File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/compose/deploy_docker.py", line 35, in up return self.docker.compose.up(detach=detach, services=services) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/python_on_whales/components/compose/cli_wrapper.py", line 1042, in up run(full_cmd, capture_stdout=quiet, capture_stderr=quiet) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/python_on_whales/utils.py", line 202, in run raise DockerException( python_on_whales.exceptions.DockerException: The docker command executed was `/usr/bin/docker compose --file package-registry-deploy/compose/docker-compose-gitea.yml --file package-registry-deploy/compose/docker-compose-act-runner.yml --env-file package-registry-deploy/config.env --project-name laconic-afcfdba8bb1374a5 up --detach`. It returned with code 1 The content of stdout can be found above the stacktrace (it wasn't captured). The content of stderr can be found above the stacktrace (it wasn't captured). During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/bin/laconic-so", line 33, in <module> sys.exit(load_entry_point('laconic-stack-orchestrator', 'console_scripts', 'laconic-so')()) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/deployment.py", line 82, in start up_operation(ctx, services_list, stay_attached) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/deploy.py", line 105, in up_operation deploy_context.deployer.up(detach=not stay_attached, services=services_list) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/compose/deploy_docker.py", line 37, in up raise DeployerException(e) stack_orchestrator.deploy.deployer.DeployerException: The docker command executed was `/usr/bin/docker compose --file package-registry-deploy/compose/docker-compose-gitea.yml --file package-registry-deploy/compose/docker-compose-act-runner.yml --env-file package-registry-deploy/config.env --project-name laconic-afcfdba8bb1374a5 up --detach`. It returned with code 1 The content of stdout can be found above the stacktrace (it wasn't captured). The content of stderr can be found above the stacktrace (it wasn't captured). ```
Author
Owner

Non-deployment case:

stat /home/david/cerc/hosting/gitea/docker-compose-gitea.yml: no such file or directory
Traceback (most recent call last):
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/compose/deploy_docker.py", line 35, in up
    return self.docker.compose.up(detach=detach, services=services)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/python_on_whales/components/compose/cli_wrapper.py", line 1042, in up
    run(full_cmd, capture_stdout=quiet, capture_stderr=quiet)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/python_on_whales/utils.py", line 202, in run
    raise DockerException(
python_on_whales.exceptions.DockerException: The docker command executed was `/usr/bin/docker compose --file /home/david/cerc/hosting/gitea/docker-compose-gitea.yml --file /home/david/cerc/hosting/act-runner/docker-compose-act-runner.yml --project-name laconic-de556d6c1dd4b210 up --detach`.
It returned with code 14
The content of stdout can be found above the stacktrace (it wasn't captured).
The content of stderr can be found above the stacktrace (it wasn't captured).

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/bin/laconic-so", line 33, in <module>
    sys.exit(load_entry_point('laconic-stack-orchestrator', 'console_scripts', 'laconic-so')())
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/deploy.py", line 196, in up
    up_operation(ctx, extra_args_list)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/deploy.py", line 105, in up_operation
    deploy_context.deployer.up(detach=not stay_attached, services=services_list)
  File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/compose/deploy_docker.py", line 37, in up
    raise DeployerException(e)
stack_orchestrator.deploy.deployer.DeployerException: The docker command executed was `/usr/bin/docker compose --file /home/david/cerc/hosting/gitea/docker-compose-gitea.yml --file /home/david/cerc/hosting/act-runner/docker-compose-act-runner.yml --project-name laconic-de556d6c1dd4b210 up --detach`.
It returned with code 14
The content of stdout can be found above the stacktrace (it wasn't captured).
Non-deployment case: ``` stat /home/david/cerc/hosting/gitea/docker-compose-gitea.yml: no such file or directory Traceback (most recent call last): File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/compose/deploy_docker.py", line 35, in up return self.docker.compose.up(detach=detach, services=services) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/python_on_whales/components/compose/cli_wrapper.py", line 1042, in up run(full_cmd, capture_stdout=quiet, capture_stderr=quiet) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/python_on_whales/utils.py", line 202, in run raise DockerException( python_on_whales.exceptions.DockerException: The docker command executed was `/usr/bin/docker compose --file /home/david/cerc/hosting/gitea/docker-compose-gitea.yml --file /home/david/cerc/hosting/act-runner/docker-compose-act-runner.yml --project-name laconic-de556d6c1dd4b210 up --detach`. It returned with code 14 The content of stdout can be found above the stacktrace (it wasn't captured). The content of stderr can be found above the stacktrace (it wasn't captured). During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/bin/laconic-so", line 33, in <module> sys.exit(load_entry_point('laconic-stack-orchestrator', 'console_scripts', 'laconic-so')()) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/venv/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/deploy.py", line 196, in up up_operation(ctx, extra_args_list) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/deploy.py", line 105, in up_operation deploy_context.deployer.up(detach=not stay_attached, services=services_list) File "/home/david/projects/cerc/stack-orchestrator/mainline/stack-orchestrator/stack_orchestrator/deploy/compose/deploy_docker.py", line 37, in up raise DeployerException(e) stack_orchestrator.deploy.deployer.DeployerException: The docker command executed was `/usr/bin/docker compose --file /home/david/cerc/hosting/gitea/docker-compose-gitea.yml --file /home/david/cerc/hosting/act-runner/docker-compose-act-runner.yml --project-name laconic-de556d6c1dd4b210 up --detach`. It returned with code 14 The content of stdout can be found above the stacktrace (it wasn't captured). ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#893
No description provided.