Deployer builds new webapp code but old code is served #860

Closed
opened 2024-07-04 03:19:48 +00:00 by dboreham · 11 comments
Owner

Investigating why new snowball frontend code is not deployed.

Investigating why new snowball frontend code is not deployed.
Author
Owner
$ kubectl get ingress | grep dashboard.staging
laconic-231be47f026140f4-ingress   <none>   dashboard.staging.apps.snowballtools.com                        204.130.133.180,204.130.133.182,204.130.133.199   80, 443   15d
``` $ kubectl get ingress | grep dashboard.staging laconic-231be47f026140f4-ingress <none> dashboard.staging.apps.snowballtools.com 204.130.133.180,204.130.133.182,204.130.133.199 80, 443 15d ```
Author
Owner
$ kubectl get deployment | grep 231be47f026140f4
laconic-231be47f026140f4-deployment   1/1     1            1           15d
``` $ kubectl get deployment | grep 231be47f026140f4 laconic-231be47f026140f4-deployment 1/1 1 1 15d ```
Author
Owner
$ kubectl describe deployment laconic-231be47f026140f4-deployment
Name:                   laconic-231be47f026140f4-deployment
Namespace:              default
CreationTimestamp:      Tue, 18 Jun 2024 11:01:22 -0600
Labels:                 <none>
Annotations:            deployment.kubernetes.io/revision: 13
Selector:               app=laconic-231be47f026140f4
Replicas:               1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
  Labels:       app=laconic-231be47f026140f4
  Annotations:  kubectl.kubernetes.io/restartedAt: 2024-07-03T18:32:26.189704+00:00
  Containers:
   webapp:
    Image:      container-registry.apps.snowballtools.com/laconic-registry/bc2dfc7143a3ccab693331780d488afa:deploy
    Port:       80/TCP
    Host Port:  0/TCP
    Limits:
      cpu:     1
      memory:  2G
    Requests:
      cpu:     100m
      memory:  200M
    Environment:
      CERC_SCRIPT_DEBUG:
      LACONIC_HOSTED_CONFIG_server_url:                        https://snowballtools-base-api.staging.apps.snowballtools.com
      LACONIC_HOSTED_CONFIG_github_clientid:                   Ov23liOaoahRTYd4nSCV
      LACONIC_HOSTED_CONFIG_github_templaterepo:               snowball-tools/test-progressive-web-app
      LACONIC_HOSTED_CONFIG_github_pwa_templaterepo:           snowball-tools/test-progressive-web-app
      LACONIC_HOSTED_CONFIG_github_image_upload_templaterepo:  snowball-tools/image-upload-pwa-example
      LACONIC_HOSTED_CONFIG_wallet_connect_id:                 eda9ba18042a5ea500f358194611ece2
      LACONIC_HOSTED_CONFIG_lit_relay_api_key:                 15DDD969-E75F-404D-AAD9-58A37C4FD354_snowball
      LACONIC_HOSTED_CONFIG_aplchemy_api_key:                  THvPart_gqI5x02RNYSBntlmwA66I_qc
      LACONIC_HOSTED_CONFIG_bugsnag_api_key:                   8c480cd5386079f9dd44f9581264a073
      LACONIC_HOSTED_CONFIG_passkey_wallet_rpid:               dashboard.staging.apps.snowballtools.com
      LACONIC_HOSTED_CONFIG_turnkey_api_base_url:              https://api.turnkey.com
      LACONIC_HOSTED_CONFIG_turnkey_organization_id:           5049ae99-5bca-40b3-8317-504384d4e591
    Mounts:                                                    <none>
  Volumes:                                                     <none>
  Node-Selectors:                                              <none>
  Tolerations:                                                 <none>
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Available      True    MinimumReplicasAvailable
  Progressing    True    NewReplicaSetAvailable
OldReplicaSets:  laconic-231be47f026140f4-deployment-866d67899b (0/0 replicas created), laconic-231be47f026140f4-deployment-6cb899fdd5 (0/0 replicas created), laconic-231be47f026140f4-deployment-b7484dcf7 (0/0 replicas created), laconic-231be47f026140f4-deployment-59865bb646 (0/0 replicas created), laconic-231be47f026140f4-deployment-7ddffb94f8 (0/0 replicas created), laconic-231be47f026140f4-deployment-6db559bb67 (0/0 replicas created), laconic-231be47f026140f4-deployment-6c5b7cf6c4 (0/0 replicas created), laconic-231be47f026140f4-deployment-6fc5f5b594 (0/0 replicas created), laconic-231be47f026140f4-deployment-589f696c4f (0/0 replicas created), laconic-231be47f026140f4-deployment-67d7c85fbc (0/0 replicas created)
NewReplicaSet:   laconic-231be47f026140f4-deployment-755f77794b (1/1 replicas created)
Events:          <none>
``` $ kubectl describe deployment laconic-231be47f026140f4-deployment Name: laconic-231be47f026140f4-deployment Namespace: default CreationTimestamp: Tue, 18 Jun 2024 11:01:22 -0600 Labels: <none> Annotations: deployment.kubernetes.io/revision: 13 Selector: app=laconic-231be47f026140f4 Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable StrategyType: RollingUpdate MinReadySeconds: 0 RollingUpdateStrategy: 25% max unavailable, 25% max surge Pod Template: Labels: app=laconic-231be47f026140f4 Annotations: kubectl.kubernetes.io/restartedAt: 2024-07-03T18:32:26.189704+00:00 Containers: webapp: Image: container-registry.apps.snowballtools.com/laconic-registry/bc2dfc7143a3ccab693331780d488afa:deploy Port: 80/TCP Host Port: 0/TCP Limits: cpu: 1 memory: 2G Requests: cpu: 100m memory: 200M Environment: CERC_SCRIPT_DEBUG: LACONIC_HOSTED_CONFIG_server_url: https://snowballtools-base-api.staging.apps.snowballtools.com LACONIC_HOSTED_CONFIG_github_clientid: Ov23liOaoahRTYd4nSCV LACONIC_HOSTED_CONFIG_github_templaterepo: snowball-tools/test-progressive-web-app LACONIC_HOSTED_CONFIG_github_pwa_templaterepo: snowball-tools/test-progressive-web-app LACONIC_HOSTED_CONFIG_github_image_upload_templaterepo: snowball-tools/image-upload-pwa-example LACONIC_HOSTED_CONFIG_wallet_connect_id: eda9ba18042a5ea500f358194611ece2 LACONIC_HOSTED_CONFIG_lit_relay_api_key: 15DDD969-E75F-404D-AAD9-58A37C4FD354_snowball LACONIC_HOSTED_CONFIG_aplchemy_api_key: THvPart_gqI5x02RNYSBntlmwA66I_qc LACONIC_HOSTED_CONFIG_bugsnag_api_key: 8c480cd5386079f9dd44f9581264a073 LACONIC_HOSTED_CONFIG_passkey_wallet_rpid: dashboard.staging.apps.snowballtools.com LACONIC_HOSTED_CONFIG_turnkey_api_base_url: https://api.turnkey.com LACONIC_HOSTED_CONFIG_turnkey_organization_id: 5049ae99-5bca-40b3-8317-504384d4e591 Mounts: <none> Volumes: <none> Node-Selectors: <none> Tolerations: <none> Conditions: Type Status Reason ---- ------ ------ Available True MinimumReplicasAvailable Progressing True NewReplicaSetAvailable OldReplicaSets: laconic-231be47f026140f4-deployment-866d67899b (0/0 replicas created), laconic-231be47f026140f4-deployment-6cb899fdd5 (0/0 replicas created), laconic-231be47f026140f4-deployment-b7484dcf7 (0/0 replicas created), laconic-231be47f026140f4-deployment-59865bb646 (0/0 replicas created), laconic-231be47f026140f4-deployment-7ddffb94f8 (0/0 replicas created), laconic-231be47f026140f4-deployment-6db559bb67 (0/0 replicas created), laconic-231be47f026140f4-deployment-6c5b7cf6c4 (0/0 replicas created), laconic-231be47f026140f4-deployment-6fc5f5b594 (0/0 replicas created), laconic-231be47f026140f4-deployment-589f696c4f (0/0 replicas created), laconic-231be47f026140f4-deployment-67d7c85fbc (0/0 replicas created) NewReplicaSet: laconic-231be47f026140f4-deployment-755f77794b (1/1 replicas created) Events: <none> ```
Author
Owner

Pushing container image laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local

`Pushing container image laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local`
Author
Owner
2024-07-04 03:05:58.870477 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000035 (step): Processing ...
2024-07-04 03:05:58.870546 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000019 (step): BEGIN - process_app_deployment_request
laconic -c /etc/config/laconic.yml cns name resolve crn://snowballtools/applications/deployment-test-app@0.1.24
2024-07-04 03:05:59.487884 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.617350 (step): Retrieved app record crn://snowballtools/applications/deployment-test-app@0.1.24
2024-07-04 03:05:59.487982 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000014 (step): Determined requested name: deployment-ci-test
laconic -c /etc/config/laconic.yml cns name resolve crn://laconic/dns/deployment-ci-test.apps.snowballtools.com
laconic -c /etc/config/laconic.yml cns name resolve crn://laconic/deployments/deployment-ci-test.apps.snowballtools.com
2024-07-04 03:06:01.023541 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:01.535576 (step): Building container image laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local
2024-07-04 03:06:01.023890 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000279 (step): Cloning repository https://github.com/snowball-tools/test-progressive-web-app to /tmp/tmpw2o0vsgq/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky ...
Cloning into '/tmp/tmpw2o0vsgq/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky'...
Note: switching to '05819619487a0d2dbc5453b6d1ccff3044c0dd26'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 0581961 v0.1.24
2024-07-04 03:06:01.976987 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.953090 (step): Building webapp ...
STEP 1/11: FROM node:20-bullseye-slim
STEP 2/11: ARG USERNAME=node
--> Using cache 88ab9fb9c71ea424dfdf7466c5a9e920200a9e266aa1f23e8040d41787491398
--> 88ab9fb9c71
STEP 3/11: ARG NPM_GLOBAL=/usr/local/share/npm-global
--> Using cache 007cd1a2b7692005f09a9e61dda86c1dba104482173785c4d7deb89d398b8be7
--> 007cd1a2b76
STEP 4/11: ENV PATH=${NPM_GLOBAL}/bin:${PATH}
--> Using cache f3fab25347014983fd1e64889eb8d60dcf4a64c0cde8e974a3280620d13f6325
--> f3fab253470
STEP 5/11: ENV NPM_CONFIG_UPDATE_NOTIFIER=false
--> Using cache 94c97009399458c45536b4b60f3db8910bc9a08cfcadc7182b026348843bf535
--> 94c97009399
STEP 6/11: RUN     if ! cat /etc/group | grep -e "^npm:" > /dev/null 2>&1; then groupadd -r npm; fi     && usermod -a -G npm ${USERNAME}     && umask 0002     && mkdir -p ${NPM_GLOBAL}     && touch /usr/local/etc/npmrc     && chown ${USERNAME}:npm ${NPM_GLOBAL} /usr/local/etc/npmrc     && chmod g+s ${NPM_GLOBAL}     && npm config -g set prefix ${NPM_GLOBAL}     && su ${USERNAME} -c "npm config -g set prefix ${NPM_GLOBAL}"     && su ${USERNAME} -c "umask 0002 && npm install -g eslint"     && su ${USERNAME} -c "umask 0002 && npm install -g semver"     && su ${USERNAME} -c "umask 0002 && npm install -g pnpm"     && npm cache clean --force > /dev/null 2>&1
--> Using cache 4426fde57f796f1117f831d19ca6290065e82c992ea98edf2a5ee0fbd9c0112a
--> 4426fde57f7
STEP 7/11: RUN apt-get update && export DEBIAN_FRONTEND=noninteractive     && apt-get -y install --no-install-recommends jq gettext-base procps
--> Using cache 6a9ae9c063afdccb4ce73e24f78c66475b908b34abd3645784a5254eb4fe1dc5
--> 6a9ae9c063a
STEP 8/11: COPY --from=docker.io/mikefarah/yq:latest /usr/bin/yq /usr/local/bin/yq
--> Using cache ef36cb657947ba5bc9eb5ad06a1280414fed17c9f5be251bef4e3af7a82eee1f
--> ef36cb65794
STEP 9/11: EXPOSE 80
--> Using cache 24f0715802a1d2745716fc573cacade7d0070c224737f730da475ad213fc9688
--> 24f0715802a
STEP 10/11: COPY /scripts /scripts
--> Using cache 974e66741d0257f55f4189757ff2acac0d24439a211f59cb9a662e68e583df65
--> 974e66741d0
STEP 11/11: ENTRYPOINT ["/scripts/start-serving-app.sh"]
--> Using cache 1ef0659c5bfd6455511ca8eeeb01bafd9a05b146905bd066d77183ec577fd8d2
COMMIT cerc/nextjs-base:local
--> 1ef0659c5bf
Successfully tagged localhost/cerc/nextjs-base:local
1ef0659c5bfd6455511ca8eeeb01bafd9a05b146905bd066d77183ec577fd8d2
time="2024-07-04T03:06:03Z" level=warning msg="missing \"CERC_BUILD_TOOL\" build argument. Try adding \"--build-arg CERC_BUILD_TOOL=<VALUE>\" to the command line"
STEP 1/7: FROM cerc/nextjs-base:local
STEP 2/7: ARG CERC_NEXT_VERSION=keep
--> ae20d19cb21
STEP 3/7: ARG CERC_BUILD_TOOL
--> 270f2b83900
STEP 4/7: WORKDIR /app
--> 4569e1d6038
STEP 5/7: COPY . .
--> 84d437d2df0
STEP 6/7: RUN rm -rf node_modules build .next*
--> 7527d99ae47
STEP 7/7: RUN /scripts/build-app.sh /app

added 53 packages in 2s

14 packages are looking for funding
  run `npm fund` for details
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated workbox-cacheable-response@6.6.0: workbox-background-sync@6.6.0

added 457 packages, and audited 458 packages in 15s

81 packages are looking for funding
  run `npm fund` for details

3 vulnerabilities (1 moderate, 2 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues, run:
  npm audit fix --force

Run `npm audit` for details.

real	0m14.852s
user	0m15.606s
sys	0m4.981s
14.0.1

> @cerc-io/test-progressive-web-app@0.1.24 cerc_compile
> next experimental-compile

Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

   ▲ Next.js 14.0.1
   - Environments: .env

   Creating an optimized production build ...
 ⚠ Custom webpack configuration is detected. When using a custom webpack configuration, the Webpack build worker is disabled by default. To force enable it, set the "experimental.webpackBuildWorker" option to "true". Read more: https://nextjs.org/docs/messages/webpack-build-worker-opt-out
> [PWA] Compile server
> [PWA] Compile server
> [PWA] Compile client (static)
> [PWA] Auto register service worker with: /app/node_modules/next-pwa/register.js
> [PWA] Service worker: /app/public/sw.js
> [PWA]   url: /sw.js
> [PWA]   scope: /
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
 ✓ Compiled successfully
   Collecting page data ...
   Finalizing page optimization ...
   Collecting build traces ...

Route (pages)                              Size     First Load JS
┌ λ /
├   └ css/3571059724d711eb.css             664 B
├   /_app
├ λ /404
└ λ /api/hello
+ First Load JS shared by all              82.8 kB
  ├ chunks/framework-bbecb7d54330d002.js   45.6 kB
  ├ chunks/main-304c870100d60b5f.js        35.5 kB
  ├ chunks/pages/_app-bead8ce89d04d2d1.js  663 B
  ├ chunks/webpack-fd8027ecb5121007.js     770 B
  └ css/27d177a30947857b.css               195 B

λ  (Dynamic)  server-rendered on demand using Node.js


real	0m16.727s
user	0m26.870s
sys	0m6.440s
COMMIT laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local
--> 33e601b24ef
Successfully tagged localhost/laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local
33e601b24ef43ebc5850a62257f18485c91d05fd59f765e6cd7013d196688ac5

#################################################################

Built host container for /tmp/tmpw2o0vsgq/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky with tag:

    laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local

To test locally run:

    laconic-so run-webapp --image laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local --env-file /path/to/environment.env

2024-07-04 03:06:02.732002 -  - 0:00:00.000230 (step): Dev Root is: /root/cerc
2024-07-04 03:06:02.732058 -  - 0:00:00.000031 (step): Building base container: cerc/nextjs-base
Building: cerc/nextjs-base
Build script filename: /root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build/cerc-nextjs-base/build.sh
Executing: /root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build/cerc-nextjs-base/build.sh with environment: {'CERC_NPM_REGISTRY_URL': 'https://git.vdb.to/api/packages/cerc-io/npm/', 'CERC_GO_AUTH_TOKEN': '', 'CERC_NPM_AUTH_TOKEN': '', 'CERC_REPO_BASE_DIR': '/root/cerc', 'CERC_CONTAINER_BASE_DIR': PosixPath('/root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build'), 'CERC_HOST_UID': '0', 'CERC_HOST_GID': '0', 'DOCKER_BUILDKIT': '0', 'CERC_DEFAULT_CONTAINER_IMAGE_TAG': 'cerc/nextjs-base:local', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'}
Return code is: 0
2024-07-04 03:06:03.478976 -  - 0:00:00.746936 (step): Base container cerc/nextjs-base build finished.
2024-07-04 03:06:03.479063 -  - 0:00:00.000053 (step): Building app container: laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local
Building: cerc/nextjs-base
Build script filename: /root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build/cerc-nextjs-base/build.sh
Executing: /root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build/cerc-nextjs-base/build.sh with environment: {'CERC_NPM_REGISTRY_URL': 'https://git.vdb.to/api/packages/cerc-io/npm/', 'CERC_GO_AUTH_TOKEN': '', 'CERC_NPM_AUTH_TOKEN': '', 'CERC_REPO_BASE_DIR': '/root/cerc', 'CERC_CONTAINER_BASE_DIR': PosixPath('/root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build'), 'CERC_HOST_UID': '0', 'CERC_HOST_GID': '0', 'DOCKER_BUILDKIT': '0', 'CERC_DEFAULT_CONTAINER_IMAGE_TAG': 'cerc/nextjs-base:local', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'CERC_WEBAPP_BUILD_RUNNING': 'true', 'CERC_CONTAINER_BUILD_WORK_DIR': '/tmp/tmpw2o0vsgq/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky', 'CERC_CONTAINER_BUILD_DOCKERFILE': '/root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build/cerc-nextjs-base/Dockerfile.webapp', 'CERC_CONTAINER_BUILD_TAG': 'laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local'}
Return code is: 0
2024-07-04 03:07:04.582188 -  - 0:01:01.103151 (step): App container cerc/nextjs-base build finished.
2024-07-04 03:07:04.582236 -  - 0:01:01.850451 (total): build-webapp complete
rm -rf /tmp/tmpw2o0vsgq
2024-07-04 03:07:04.715695 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:01:02.738687 (step): Build complete
2024-07-04 03:07:04.715939 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000028 (step): Pushing container image laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local
2024-07-04 03:07:04.715969 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000006 (step): Pushing images ...
Getting image source signatures
Copying blob sha256:30bcddbf56e711047867201dce89ff60c243aa357d98207679ede039c5f23066
Copying blob sha256:0cdd9c69f2751a06e87f57eb97523400420c8571f31ee8ab95cc137d6ddc2841
Copying blob sha256:749a224563c4a3cd3ed0ef048105a31bed146e35f74f5cd407c1b5e4a734aa5e
Copying blob sha256:0baf2321956a506afcddaafe217bc852e4c56a9640530b1b2f98b3378d4b6173
Copying blob sha256:773016ed597d057105767ab9dd1cd284f49095ee493f21c80f50321187a8c9c1
Copying blob sha256:fcd02abdde1ce3e68945792253690ddb2a602ce4f702813a71898069674ef856
Copying blob sha256:e7a5ae09229f0692d4b3c0a3c0b023a0960c483e559acb1cdad87c2e20e6fb0e
Copying blob sha256:a8dcd5678710e32b822bc5364b78437567f4485de4a680c84e395a7248419151
Copying blob sha256:a4aa78afd76506610a5d1ef221547641e84571dccd44fdd540dcd7795b2a6b38
Copying blob sha256:19a83947d0f627a930e323573468bcd8600794614982b4f129e82122a60f0467
Copying blob sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef
Copying blob sha256:004c4f02e6e4c104993987ada617c4ccfb444c927f879acc1f9ce6a19de2c9e9
Copying config sha256:33e601b24ef43ebc5850a62257f18485c91d05fd59f765e6cd7013d196688ac5
Writing manifest to image destination
Storing signatures
2024-07-04 03:07:12.640669 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:07.924725 (step): Finished pushing images.
2024-07-04 03:07:12.640757 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000009 (step): Push complete
2024-07-04 03:07:12.640768 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000003 (step): Updating app image tag laconic-webapp/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky:local from build of laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local
2024-07-04 03:07:13.217331 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.576581 (step): Tag complete
2024-07-04 03:07:13.217403 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000009 (step): Deploying to k8s ...
WARNING: found unimplemented environment variable substitution: ${CERC_SCRIPT_DEBUG}
2024-07-04 03:07:14.793282 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:01.575911 (step): Finished deploying to k8s.
2024-07-04 03:07:14.793377 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000008 (step): Publishing deployment to registry.
2024-07-04 03:07:14.795538 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.002161 (step): Publishing DnsRecord.
record:
  meta:
    so: a37dc0cbed1a4b92ba9e8834254bfa00
  name: deployment-ci-test.apps.snowballtools.com
  request: bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja
  resource_type: A
  type: DnsRecord
  version: 0.0.1

laconic -c /etc/config/laconic.yml cns record publish --filename /tmp/tmprnrufodi/record.yml
laconic -c /etc/config/laconic.yml cns name set crn://laconic/dns/deployment-ci-test.apps.snowballtools.com bafyreibtmlnhcl3p6ysswtzkqapfkrgchs5n5tofemc5qbctsfgxbsmakq
rm -rf /tmp/tmprnrufodi
2024-07-04 03:07:23.037455 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:08.241911 (step): Publishing ApplicationDeploymentRecord.
record:
  application: bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky
  dns: bafyreibtmlnhcl3p6ysswtzkqapfkrgchs5n5tofemc5qbctsfgxbsmakq
  meta:
    config: be9f0b251ed3d0f428d65dcdd66407d2238261ee
    so: a37dc0cbed1a4b92ba9e8834254bfa00
  name: deployment-test-app
  request: bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja
  type: ApplicationDeploymentRecord
  url: https://deployment-ci-test.apps.snowballtools.com
  version: 0.0.1

laconic -c /etc/config/laconic.yml cns record publish --filename /tmp/tmp00d_ihwi/record.yml
laconic -c /etc/config/laconic.yml cns name set crn://laconic/deployments/deployment-ci-test.apps.snowballtools.com bafyreihlyebuychziqbiyl2nblymrg7uxoey2w4szv6cnjmb3ffh3vcbjy
rm -rf /tmp/tmp00d_ihwi
2024-07-04 03:07:33.127851 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:10.090364 (step): Publication complete.
2024-07-04 03:07:33.127950 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000006 (step): END - process_app_deployment_request
2024-07-04 03:07:33.127972 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:01:34.257511 (total): DONE with status DEPLOYED
``` 2024-07-04 03:05:58.870477 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000035 (step): Processing ... 2024-07-04 03:05:58.870546 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000019 (step): BEGIN - process_app_deployment_request laconic -c /etc/config/laconic.yml cns name resolve crn://snowballtools/applications/deployment-test-app@0.1.24 2024-07-04 03:05:59.487884 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.617350 (step): Retrieved app record crn://snowballtools/applications/deployment-test-app@0.1.24 2024-07-04 03:05:59.487982 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000014 (step): Determined requested name: deployment-ci-test laconic -c /etc/config/laconic.yml cns name resolve crn://laconic/dns/deployment-ci-test.apps.snowballtools.com laconic -c /etc/config/laconic.yml cns name resolve crn://laconic/deployments/deployment-ci-test.apps.snowballtools.com 2024-07-04 03:06:01.023541 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:01.535576 (step): Building container image laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local 2024-07-04 03:06:01.023890 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000279 (step): Cloning repository https://github.com/snowball-tools/test-progressive-web-app to /tmp/tmpw2o0vsgq/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky ... Cloning into '/tmp/tmpw2o0vsgq/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky'... Note: switching to '05819619487a0d2dbc5453b6d1ccff3044c0dd26'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c <new-branch-name> Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 0581961 v0.1.24 2024-07-04 03:06:01.976987 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.953090 (step): Building webapp ... STEP 1/11: FROM node:20-bullseye-slim STEP 2/11: ARG USERNAME=node --> Using cache 88ab9fb9c71ea424dfdf7466c5a9e920200a9e266aa1f23e8040d41787491398 --> 88ab9fb9c71 STEP 3/11: ARG NPM_GLOBAL=/usr/local/share/npm-global --> Using cache 007cd1a2b7692005f09a9e61dda86c1dba104482173785c4d7deb89d398b8be7 --> 007cd1a2b76 STEP 4/11: ENV PATH=${NPM_GLOBAL}/bin:${PATH} --> Using cache f3fab25347014983fd1e64889eb8d60dcf4a64c0cde8e974a3280620d13f6325 --> f3fab253470 STEP 5/11: ENV NPM_CONFIG_UPDATE_NOTIFIER=false --> Using cache 94c97009399458c45536b4b60f3db8910bc9a08cfcadc7182b026348843bf535 --> 94c97009399 STEP 6/11: RUN if ! cat /etc/group | grep -e "^npm:" > /dev/null 2>&1; then groupadd -r npm; fi && usermod -a -G npm ${USERNAME} && umask 0002 && mkdir -p ${NPM_GLOBAL} && touch /usr/local/etc/npmrc && chown ${USERNAME}:npm ${NPM_GLOBAL} /usr/local/etc/npmrc && chmod g+s ${NPM_GLOBAL} && npm config -g set prefix ${NPM_GLOBAL} && su ${USERNAME} -c "npm config -g set prefix ${NPM_GLOBAL}" && su ${USERNAME} -c "umask 0002 && npm install -g eslint" && su ${USERNAME} -c "umask 0002 && npm install -g semver" && su ${USERNAME} -c "umask 0002 && npm install -g pnpm" && npm cache clean --force > /dev/null 2>&1 --> Using cache 4426fde57f796f1117f831d19ca6290065e82c992ea98edf2a5ee0fbd9c0112a --> 4426fde57f7 STEP 7/11: RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends jq gettext-base procps --> Using cache 6a9ae9c063afdccb4ce73e24f78c66475b908b34abd3645784a5254eb4fe1dc5 --> 6a9ae9c063a STEP 8/11: COPY --from=docker.io/mikefarah/yq:latest /usr/bin/yq /usr/local/bin/yq --> Using cache ef36cb657947ba5bc9eb5ad06a1280414fed17c9f5be251bef4e3af7a82eee1f --> ef36cb65794 STEP 9/11: EXPOSE 80 --> Using cache 24f0715802a1d2745716fc573cacade7d0070c224737f730da475ad213fc9688 --> 24f0715802a STEP 10/11: COPY /scripts /scripts --> Using cache 974e66741d0257f55f4189757ff2acac0d24439a211f59cb9a662e68e583df65 --> 974e66741d0 STEP 11/11: ENTRYPOINT ["/scripts/start-serving-app.sh"] --> Using cache 1ef0659c5bfd6455511ca8eeeb01bafd9a05b146905bd066d77183ec577fd8d2 COMMIT cerc/nextjs-base:local --> 1ef0659c5bf Successfully tagged localhost/cerc/nextjs-base:local 1ef0659c5bfd6455511ca8eeeb01bafd9a05b146905bd066d77183ec577fd8d2 time="2024-07-04T03:06:03Z" level=warning msg="missing \"CERC_BUILD_TOOL\" build argument. Try adding \"--build-arg CERC_BUILD_TOOL=<VALUE>\" to the command line" STEP 1/7: FROM cerc/nextjs-base:local STEP 2/7: ARG CERC_NEXT_VERSION=keep --> ae20d19cb21 STEP 3/7: ARG CERC_BUILD_TOOL --> 270f2b83900 STEP 4/7: WORKDIR /app --> 4569e1d6038 STEP 5/7: COPY . . --> 84d437d2df0 STEP 6/7: RUN rm -rf node_modules build .next* --> 7527d99ae47 STEP 7/7: RUN /scripts/build-app.sh /app added 53 packages in 2s 14 packages are looking for funding run `npm fund` for details npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser npm WARN deprecated workbox-cacheable-response@6.6.0: workbox-background-sync@6.6.0 added 457 packages, and audited 458 packages in 15s 81 packages are looking for funding run `npm fund` for details 3 vulnerabilities (1 moderate, 2 high) To address issues that do not require attention, run: npm audit fix To address all issues, run: npm audit fix --force Run `npm audit` for details. real 0m14.852s user 0m15.606s sys 0m4.981s 14.0.1 > @cerc-io/test-progressive-web-app@0.1.24 cerc_compile > next experimental-compile Attention: Next.js now collects completely anonymous telemetry regarding usage. This information is used to shape Next.js' roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: https://nextjs.org/telemetry ▲ Next.js 14.0.1 - Environments: .env Creating an optimized production build ... ⚠ Custom webpack configuration is detected. When using a custom webpack configuration, the Webpack build worker is disabled by default. To force enable it, set the "experimental.webpackBuildWorker" option to "true". Read more: https://nextjs.org/docs/messages/webpack-build-worker-opt-out > [PWA] Compile server > [PWA] Compile server > [PWA] Compile client (static) > [PWA] Auto register service worker with: /app/node_modules/next-pwa/register.js > [PWA] Service worker: /app/public/sw.js > [PWA] url: /sw.js > [PWA] scope: / Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme ✓ Compiled successfully Collecting page data ... Finalizing page optimization ... Collecting build traces ... Route (pages) Size First Load JS ┌ λ / ├ └ css/3571059724d711eb.css 664 B ├ /_app ├ λ /404 └ λ /api/hello + First Load JS shared by all 82.8 kB ├ chunks/framework-bbecb7d54330d002.js 45.6 kB ├ chunks/main-304c870100d60b5f.js 35.5 kB ├ chunks/pages/_app-bead8ce89d04d2d1.js 663 B ├ chunks/webpack-fd8027ecb5121007.js 770 B └ css/27d177a30947857b.css 195 B λ (Dynamic) server-rendered on demand using Node.js real 0m16.727s user 0m26.870s sys 0m6.440s COMMIT laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local --> 33e601b24ef Successfully tagged localhost/laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local 33e601b24ef43ebc5850a62257f18485c91d05fd59f765e6cd7013d196688ac5 ################################################################# Built host container for /tmp/tmpw2o0vsgq/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky with tag: laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local To test locally run: laconic-so run-webapp --image laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local --env-file /path/to/environment.env 2024-07-04 03:06:02.732002 - - 0:00:00.000230 (step): Dev Root is: /root/cerc 2024-07-04 03:06:02.732058 - - 0:00:00.000031 (step): Building base container: cerc/nextjs-base Building: cerc/nextjs-base Build script filename: /root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build/cerc-nextjs-base/build.sh Executing: /root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build/cerc-nextjs-base/build.sh with environment: {'CERC_NPM_REGISTRY_URL': 'https://git.vdb.to/api/packages/cerc-io/npm/', 'CERC_GO_AUTH_TOKEN': '', 'CERC_NPM_AUTH_TOKEN': '', 'CERC_REPO_BASE_DIR': '/root/cerc', 'CERC_CONTAINER_BASE_DIR': PosixPath('/root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build'), 'CERC_HOST_UID': '0', 'CERC_HOST_GID': '0', 'DOCKER_BUILDKIT': '0', 'CERC_DEFAULT_CONTAINER_IMAGE_TAG': 'cerc/nextjs-base:local', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'} Return code is: 0 2024-07-04 03:06:03.478976 - - 0:00:00.746936 (step): Base container cerc/nextjs-base build finished. 2024-07-04 03:06:03.479063 - - 0:00:00.000053 (step): Building app container: laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local Building: cerc/nextjs-base Build script filename: /root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build/cerc-nextjs-base/build.sh Executing: /root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build/cerc-nextjs-base/build.sh with environment: {'CERC_NPM_REGISTRY_URL': 'https://git.vdb.to/api/packages/cerc-io/npm/', 'CERC_GO_AUTH_TOKEN': '', 'CERC_NPM_AUTH_TOKEN': '', 'CERC_REPO_BASE_DIR': '/root/cerc', 'CERC_CONTAINER_BASE_DIR': PosixPath('/root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build'), 'CERC_HOST_UID': '0', 'CERC_HOST_GID': '0', 'DOCKER_BUILDKIT': '0', 'CERC_DEFAULT_CONTAINER_IMAGE_TAG': 'cerc/nextjs-base:local', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'CERC_WEBAPP_BUILD_RUNNING': 'true', 'CERC_CONTAINER_BUILD_WORK_DIR': '/tmp/tmpw2o0vsgq/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky', 'CERC_CONTAINER_BUILD_DOCKERFILE': '/root/.shiv/laconic-so_cf50be12e3d3befefa857b01039df3cfc4ce72648636336dbd93c9bb6fcdbc07/site-packages/stack_orchestrator/data/container-build/cerc-nextjs-base/Dockerfile.webapp', 'CERC_CONTAINER_BUILD_TAG': 'laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local'} Return code is: 0 2024-07-04 03:07:04.582188 - - 0:01:01.103151 (step): App container cerc/nextjs-base build finished. 2024-07-04 03:07:04.582236 - - 0:01:01.850451 (total): build-webapp complete rm -rf /tmp/tmpw2o0vsgq 2024-07-04 03:07:04.715695 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:01:02.738687 (step): Build complete 2024-07-04 03:07:04.715939 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000028 (step): Pushing container image laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local 2024-07-04 03:07:04.715969 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000006 (step): Pushing images ... Getting image source signatures Copying blob sha256:30bcddbf56e711047867201dce89ff60c243aa357d98207679ede039c5f23066 Copying blob sha256:0cdd9c69f2751a06e87f57eb97523400420c8571f31ee8ab95cc137d6ddc2841 Copying blob sha256:749a224563c4a3cd3ed0ef048105a31bed146e35f74f5cd407c1b5e4a734aa5e Copying blob sha256:0baf2321956a506afcddaafe217bc852e4c56a9640530b1b2f98b3378d4b6173 Copying blob sha256:773016ed597d057105767ab9dd1cd284f49095ee493f21c80f50321187a8c9c1 Copying blob sha256:fcd02abdde1ce3e68945792253690ddb2a602ce4f702813a71898069674ef856 Copying blob sha256:e7a5ae09229f0692d4b3c0a3c0b023a0960c483e559acb1cdad87c2e20e6fb0e Copying blob sha256:a8dcd5678710e32b822bc5364b78437567f4485de4a680c84e395a7248419151 Copying blob sha256:a4aa78afd76506610a5d1ef221547641e84571dccd44fdd540dcd7795b2a6b38 Copying blob sha256:19a83947d0f627a930e323573468bcd8600794614982b4f129e82122a60f0467 Copying blob sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef Copying blob sha256:004c4f02e6e4c104993987ada617c4ccfb444c927f879acc1f9ce6a19de2c9e9 Copying config sha256:33e601b24ef43ebc5850a62257f18485c91d05fd59f765e6cd7013d196688ac5 Writing manifest to image destination Storing signatures 2024-07-04 03:07:12.640669 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:07.924725 (step): Finished pushing images. 2024-07-04 03:07:12.640757 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000009 (step): Push complete 2024-07-04 03:07:12.640768 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000003 (step): Updating app image tag laconic-webapp/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky:local from build of laconic-webapp/15fc8e1b9fd4008c6db64472535ecbbe:local 2024-07-04 03:07:13.217331 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.576581 (step): Tag complete 2024-07-04 03:07:13.217403 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000009 (step): Deploying to k8s ... WARNING: found unimplemented environment variable substitution: ${CERC_SCRIPT_DEBUG} 2024-07-04 03:07:14.793282 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:01.575911 (step): Finished deploying to k8s. 2024-07-04 03:07:14.793377 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000008 (step): Publishing deployment to registry. 2024-07-04 03:07:14.795538 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.002161 (step): Publishing DnsRecord. record: meta: so: a37dc0cbed1a4b92ba9e8834254bfa00 name: deployment-ci-test.apps.snowballtools.com request: bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja resource_type: A type: DnsRecord version: 0.0.1 laconic -c /etc/config/laconic.yml cns record publish --filename /tmp/tmprnrufodi/record.yml laconic -c /etc/config/laconic.yml cns name set crn://laconic/dns/deployment-ci-test.apps.snowballtools.com bafyreibtmlnhcl3p6ysswtzkqapfkrgchs5n5tofemc5qbctsfgxbsmakq rm -rf /tmp/tmprnrufodi 2024-07-04 03:07:23.037455 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:08.241911 (step): Publishing ApplicationDeploymentRecord. record: application: bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky dns: bafyreibtmlnhcl3p6ysswtzkqapfkrgchs5n5tofemc5qbctsfgxbsmakq meta: config: be9f0b251ed3d0f428d65dcdd66407d2238261ee so: a37dc0cbed1a4b92ba9e8834254bfa00 name: deployment-test-app request: bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja type: ApplicationDeploymentRecord url: https://deployment-ci-test.apps.snowballtools.com version: 0.0.1 laconic -c /etc/config/laconic.yml cns record publish --filename /tmp/tmp00d_ihwi/record.yml laconic -c /etc/config/laconic.yml cns name set crn://laconic/deployments/deployment-ci-test.apps.snowballtools.com bafyreihlyebuychziqbiyl2nblymrg7uxoey2w4szv6cnjmb3ffh3vcbjy rm -rf /tmp/tmp00d_ihwi 2024-07-04 03:07:33.127851 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:10.090364 (step): Publication complete. 2024-07-04 03:07:33.127950 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:00:00.000006 (step): END - process_app_deployment_request 2024-07-04 03:07:33.127972 - bafyreiequ6kznizmibgpk4hrbzifu7ddc747rz4wkgwlrdkgxmbwr3qkja-1720062358-0e9f3759 - 0:01:34.257511 (total): DONE with status DEPLOYED ```
Author
Owner
$ kubectl describe pod/laconic-231be47f026140f4-deployment-755f77794b-n8knj
Name:             laconic-231be47f026140f4-deployment-755f77794b-n8knj
Namespace:        default
Priority:         0
Service Account:  default
Node:             foundation/10.203.8.122
Start Time:       Wed, 03 Jul 2024 12:32:26 -0600
Labels:           app=laconic-231be47f026140f4
                  pod-template-hash=755f77794b
Annotations:      kubectl.kubernetes.io/restartedAt: 2024-07-03T18:32:26.189704+00:00
Status:           Running
IP:               10.42.2.223
IPs:
  IP:           10.42.2.223
Controlled By:  ReplicaSet/laconic-231be47f026140f4-deployment-755f77794b
Containers:
  webapp:
    Container ID:   containerd://0f7f9d9e320f41b3f504da9edc7422a1585208e26f4e603cb41500862c1a1c26
    Image:          container-registry.apps.snowballtools.com/laconic-registry/bc2dfc7143a3ccab693331780d488afa:deploy
    Image ID:       container-registry.apps.snowballtools.com/laconic-registry/bc2dfc7143a3ccab693331780d488afa@sha256:3907d790ee26911d8619311829f175a3f0a1eda92475523c5759e035c5d85462
    Port:           80/TCP
    Host Port:      0/TCP
    State:          Running
      Started:      Wed, 03 Jul 2024 12:32:26 -0600
    Ready:          True
    Restart Count:  0
    Limits:
      cpu:     1
      memory:  2G
    Requests:
      cpu:     100m
      memory:  200M
    Environment:
      CERC_SCRIPT_DEBUG:
      LACONIC_HOSTED_CONFIG_server_url:                        https://snowballtools-base-api.staging.apps.snowballtools.com
      LACONIC_HOSTED_CONFIG_github_clientid:                   Ov23liOaoahRTYd4nSCV
      LACONIC_HOSTED_CONFIG_github_templaterepo:               snowball-tools/test-progressive-web-app
      LACONIC_HOSTED_CONFIG_github_pwa_templaterepo:           snowball-tools/test-progressive-web-app
      LACONIC_HOSTED_CONFIG_github_image_upload_templaterepo:  snowball-tools/image-upload-pwa-example
      LACONIC_HOSTED_CONFIG_wallet_connect_id:                 eda9ba18042a5ea500f358194611ece2
      LACONIC_HOSTED_CONFIG_lit_relay_api_key:                 15DDD969-E75F-404D-AAD9-58A37C4FD354_snowball
      LACONIC_HOSTED_CONFIG_aplchemy_api_key:                  THvPart_gqI5x02RNYSBntlmwA66I_qc
      LACONIC_HOSTED_CONFIG_bugsnag_api_key:                   8c480cd5386079f9dd44f9581264a073
      LACONIC_HOSTED_CONFIG_passkey_wallet_rpid:               dashboard.staging.apps.snowballtools.com
      LACONIC_HOSTED_CONFIG_turnkey_api_base_url:              https://api.turnkey.com
      LACONIC_HOSTED_CONFIG_turnkey_organization_id:           5049ae99-5bca-40b3-8317-504384d4e591
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-nx648 (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             True
  ContainersReady   True
  PodScheduled      True
Volumes:
  kube-api-access-nx648:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   Burstable
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:                      <none>
``` $ kubectl describe pod/laconic-231be47f026140f4-deployment-755f77794b-n8knj Name: laconic-231be47f026140f4-deployment-755f77794b-n8knj Namespace: default Priority: 0 Service Account: default Node: foundation/10.203.8.122 Start Time: Wed, 03 Jul 2024 12:32:26 -0600 Labels: app=laconic-231be47f026140f4 pod-template-hash=755f77794b Annotations: kubectl.kubernetes.io/restartedAt: 2024-07-03T18:32:26.189704+00:00 Status: Running IP: 10.42.2.223 IPs: IP: 10.42.2.223 Controlled By: ReplicaSet/laconic-231be47f026140f4-deployment-755f77794b Containers: webapp: Container ID: containerd://0f7f9d9e320f41b3f504da9edc7422a1585208e26f4e603cb41500862c1a1c26 Image: container-registry.apps.snowballtools.com/laconic-registry/bc2dfc7143a3ccab693331780d488afa:deploy Image ID: container-registry.apps.snowballtools.com/laconic-registry/bc2dfc7143a3ccab693331780d488afa@sha256:3907d790ee26911d8619311829f175a3f0a1eda92475523c5759e035c5d85462 Port: 80/TCP Host Port: 0/TCP State: Running Started: Wed, 03 Jul 2024 12:32:26 -0600 Ready: True Restart Count: 0 Limits: cpu: 1 memory: 2G Requests: cpu: 100m memory: 200M Environment: CERC_SCRIPT_DEBUG: LACONIC_HOSTED_CONFIG_server_url: https://snowballtools-base-api.staging.apps.snowballtools.com LACONIC_HOSTED_CONFIG_github_clientid: Ov23liOaoahRTYd4nSCV LACONIC_HOSTED_CONFIG_github_templaterepo: snowball-tools/test-progressive-web-app LACONIC_HOSTED_CONFIG_github_pwa_templaterepo: snowball-tools/test-progressive-web-app LACONIC_HOSTED_CONFIG_github_image_upload_templaterepo: snowball-tools/image-upload-pwa-example LACONIC_HOSTED_CONFIG_wallet_connect_id: eda9ba18042a5ea500f358194611ece2 LACONIC_HOSTED_CONFIG_lit_relay_api_key: 15DDD969-E75F-404D-AAD9-58A37C4FD354_snowball LACONIC_HOSTED_CONFIG_aplchemy_api_key: THvPart_gqI5x02RNYSBntlmwA66I_qc LACONIC_HOSTED_CONFIG_bugsnag_api_key: 8c480cd5386079f9dd44f9581264a073 LACONIC_HOSTED_CONFIG_passkey_wallet_rpid: dashboard.staging.apps.snowballtools.com LACONIC_HOSTED_CONFIG_turnkey_api_base_url: https://api.turnkey.com LACONIC_HOSTED_CONFIG_turnkey_organization_id: 5049ae99-5bca-40b3-8317-504384d4e591 Mounts: /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-nx648 (ro) Conditions: Type Status Initialized True Ready True ContainersReady True PodScheduled True Volumes: kube-api-access-nx648: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: kube-root-ca.crt ConfigMapOptional: <nil> DownwardAPI: true QoS Class: Burstable Node-Selectors: <none> Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s node.kubernetes.io/unreachable:NoExecute op=Exists for 300s Events: <none> ```
Author
Owner

Logs suggest image should be laconic-webapp/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky:local but we're actually using container-registry.apps.snowballtools.com/laconic-registry/bc2dfc7143a3ccab693331780d488afa:deploy

Logs suggest image should be `laconic-webapp/bafyreialecznd3fapmb46vfxijbn5y7ainh53yc3tbgwzjx75rxla6lyky:local` but we're actually using `container-registry.apps.snowballtools.com/laconic-registry/bc2dfc7143a3ccab693331780d488afa:deploy`
Author
Owner
root@laconic-465b8907d67ec6f7-deployment-7fd948966-pzlxh:/srv/deployments/dashboard.staging.apps.snowballtools.com# more deployment.yml
cluster-id: laconic-231be47f026140f4
``` root@laconic-465b8907d67ec6f7-deployment-7fd948966-pzlxh:/srv/deployments/dashboard.staging.apps.snowballtools.com# more deployment.yml cluster-id: laconic-231be47f026140f4 ```
Author
Owner
root@laconic-465b8907d67ec6f7-deployment-7fd948966-pzlxh:/srv/deployments/dashboard.staging.apps.snowballtools.com/compose# more docker-compose-webapp-template.yml
services:
  webapp:
    image: laconic-webapp/bc2dfc7143a3ccab693331780d488afa:local
    restart: always
    environment:
      CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
    ports:
     - '80'
``` root@laconic-465b8907d67ec6f7-deployment-7fd948966-pzlxh:/srv/deployments/dashboard.staging.apps.snowballtools.com/compose# more docker-compose-webapp-template.yml services: webapp: image: laconic-webapp/bc2dfc7143a3ccab693331780d488afa:local restart: always environment: CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG} ports: - '80' ```
Author
Owner

Some investigation reveals that this seems to be caused by the "deployment container id" not being stable. It is originally derived from the hash of the Python variable for the deployment directory. Probably this value is not stable over time (the path changed or Python changed, or something...). As a result we end up building and pushing a "container to nowhere" that isn't the one specified for the pod.

Some investigation reveals that this seems to be caused by the "deployment container id" not being stable. It is originally derived from the hash of the Python variable for the deployment directory. Probably this value is not stable over time (the path changed or Python changed, or something...). As a result we end up building and pushing a "container to nowhere" that isn't the one specified for the pod.
dboreham self-assigned this 2024-07-04 19:33:53 +00:00
Author
Owner

This is fixed.

This is fixed.
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#860
No description provided.