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

[Support]: ZTNET container exits with code 0 #440

Closed
1 of 2 tasks
fuyukihidekii opened this issue Jun 13, 2024 · 9 comments
Closed
1 of 2 tasks

[Support]: ZTNET container exits with code 0 #440

fuyukihidekii opened this issue Jun 13, 2024 · 9 comments
Labels
support support request for ZTNET

Comments

@fuyukihidekii
Copy link

fuyukihidekii commented Jun 13, 2024

📝 Inquiry

Hi there, ZTNET container exits with code 0 while interacting with the web interface and restarts on its own. However if i let it running w/o interacting with the web UI, it does keep running. There's no other zerotier program running either in the host or in containers.

I did changed the postgres user and password before running it for the first time, but i believe that this is not causing the problem.

I would like to know if is there any other information or debug step that i can follow to properly report this.

🔖 Version

v0.6.6

🔧 Deployment Type

  • Docker
  • Standalone

💻 Operating System

Other Linux

📚 Any Other Information That May Be Helpful

I have attached a log, my docker-compose.yml and information about my system / docker/ hardware.

/etc/os-release

NAME="openSUSE Tumbleweed"
# VERSION="20240612"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20240612"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
# CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20240612:*:*:*:*:*:*:*"
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse:tumbleweed:20240612"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

neofetch

                                     ......            fuyukihidekii@RV415 
     .,cdxxxoc,.               .:kKMMMNWMMMNk:.        ---------------- 
    cKMMN0OOOKWMMXo. A        ;0MWk:'      ':OMMk.     OS: openSUSE Tumbleweed x86_64 
  ;WMK;'       'lKMMNM,     :NMK'             'OMW;    Host: RV415 P07RAT 
 cMW;             WMMMN   ,XMK'                 oMM.   Kernel: 6.9.3-1-default 
.MMc             ''^*~l. xMN:                    KM0   Uptime: 56 mins 
'MM.                   .NMO                      oMM   Packages: 2410 (rpm) 
.MM,                 .kMMl                       xMN   Shell: bash 5.2.26 
 KM0               .kMM0' .dl>~,.               .WMd   Resolution: 1366x768 
 'XM0.           ,OMMK'    OMMM7'              .XMK    DE: Plasma 6.0.5 
   *WMO:.    .;xNMMk'       NNNMKl.          .xWMx     WM: KWin 
     ^ONMMNXMMMKx;          V  'xNMWKkxllox0NMWk'      Theme: Breeze [GTK2/3] 
         '''''                    ':dOOXXKOxl'         Icons: breeze [GTK2/3] 
                                                       Terminal: konsole 
                                                       CPU: AMD E-300 APU (2) @ 1.300GHz 
                                                       GPU: AMD ATI Radeon HD 6310 
                                                       Memory: 2678MiB / 7775MiB

docker-compose.yml

services:
  postgres:
    image: postgres:15.2-alpine
    container_name: postgres
    restart: unless-stopped
    environment:
      POSTGRES_USER: RV415
      POSTGRES_PASSWORD: [redacted-for-support-post]
      POSTGRES_DB: ztnet
    volumes:
      - postgres-data:/var/lib/postgresql/data
    networks:
      - app-network

  zerotier:
    image: zyclonite/zerotier:1.14.0
    hostname: zerotier
    container_name: zerotier
    restart: unless-stopped
    volumes:
      - zerotier:/var/lib/zerotier-one
    cap_add:
      - NET_ADMIN
      - SYS_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    networks:
      - app-network
    ports:
      - "9993:9993/udp"
    environment:
      - ZT_OVERRIDE_LOCAL_CONF=true
      - ZT_ALLOW_MANAGEMENT_FROM=172.31.255.0/29

  ztnet:
    image: sinamics/ztnet:latest
    container_name: ztnet
    working_dir: /app
    volumes:
      - zerotier:/var/lib/zerotier-one
    restart: unless-stopped
    ports:
      - 3000:3000
    # - 127.0.0.1:3000:3000  <--- Use / Uncomment this line to restrict access to localhost only
    environment:
      POSTGRES_HOST: postgres
      POSTGRES_PORT: 5432
      POSTGRES_USER: RV415
      POSTGRES_PASSWORD: [redacted-for-support-post]
      POSTGRES_DB: ztnet
      NEXTAUTH_URL: "http:https://192.168.3.5:3000" # !! Important !! Set the NEXTAUTH_URL environment variable to the canonical URL or IP of your site with port 3000
      NEXTAUTH_SECRET: "random_secret"
      NEXTAUTH_URL_INTERNAL: "http:https://ztnet:3000" # Internal NextAuth URL for 'ztnet' container on port 3000. Do not change unless modifying container name.
    networks:
      - app-network
    links:
      - postgres
    depends_on:
      - postgres
      - zerotier

  ############################################################################
  #                                                                          #
  # Uncomment the section below to enable HTTPS reverse proxy with Caddy.    #
  #                                                                          #
  # Steps:                                                                   #
  # 1. Replace <YOUR-PUBLIC-HOST-NAME> with your actual public domain name.  #
  # 2. Uncomment the caddy_data volume definition in the volumes section.    #
  #                                                                          #
  ############################################################################

  # https-proxy:
  #   image: caddy:latest
  #   container_name: ztnet-https-proxy
  #   restart: unless-stopped
  #   depends_on:
  #     - ztnet
  #   command: caddy reverse-proxy --from <YOUR-PUBLIC-HOST-NAME> --to ztnet:3000
  #   volumes:
  #     - caddy_data:/data
  #   networks:
  #     - app-network
  #   links:
  #     - ztnet
  #   ports:
  #     - "80:80"
  #     - "443:443"

volumes:
  zerotier:
  postgres-data:
  # caddy_data:

networks:
  app-network:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 172.31.255.0/29

docker compose ps -a

NAME       IMAGE                       COMMAND                  SERVICE    CREATED             STATUS          PORTS
postgres   postgres:15.2-alpine        "docker-entrypoint.s…"   postgres   About an hour ago   Up 37 minutes   5432/tcp
zerotier   zyclonite/zerotier:1.14.0   "entrypoint.sh -U"       zerotier   About an hour ago   Up 37 minutes   0.0.0.0:9993->9993/udp, :::9993->9993/udp
ztnet      sinamics/ztnet:latest       "/app/init-db.sh nod…"   ztnet      About an hour ago   Up 26 minutes   0.0.0.0:3000->3000/tcp, :::3000->3000/tcp

docker compose logs -f -t

zerotier  | 2024-06-13T16:23:57.305068953Z Starting Control Plane...
zerotier  | 2024-06-13T16:23:57.305213035Z Starting V6 Control Plane...
ztnet     | 2024-06-13T16:24:00.433346314Z Creating .env file...
ztnet     | 2024-06-13T16:24:00.762188793Z Applying migrations to the database...
ztnet     | 2024-06-13T16:24:08.859648713Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:24:08.865541121Z Prisma schema loaded from prisma/schema.prisma
ztnet     | 2024-06-13T16:24:08.928066023Z Datasource "db": PostgreSQL database "ztnet", schema "public" at "postgres:5432"
ztnet     | 2024-06-13T16:24:09.575880438Z
ztnet     | 2024-06-13T16:24:09.576054556Z 31 migrations found in prisma/migrations
ztnet     | 2024-06-13T16:24:09.576083521Z
ztnet     | 2024-06-13T16:24:10.000953943Z
ztnet     | 2024-06-13T16:24:10.004674997Z No pending migrations to apply.
ztnet     | 2024-06-13T16:24:10.240317009Z npm notice
ztnet     | 2024-06-13T16:24:10.240462885Z npm notice New minor version of npm available! 10.7.0 -> 10.8.1
ztnet     | 2024-06-13T16:24:10.240494076Z npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
ztnet     | 2024-06-13T16:24:10.240521859Z npm notice To update run: npm install -g [email protected]
ztnet     | 2024-06-13T16:24:10.240548384Z npm notice
ztnet     | 2024-06-13T16:24:10.306219069Z Migrations applied successfully!
ztnet     | 2024-06-13T16:24:10.306370497Z Seeding the database...
ztnet     | 2024-06-13T16:24:16.734777152Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:24:16.741144481Z Running seed command `ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts` ...
postgres  | 2024-06-13T16:23:55.939774562Z
postgres  | 2024-06-13T16:23:55.939916198Z PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres  | 2024-06-13T16:23:55.939984908Z
postgres  | 2024-06-13T16:23:56.626313915Z 2024-06-13 16:23:56.624 UTC [1] LOG:  starting PostgreSQL 15.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924, 64-bit
postgres  | 2024-06-13T16:23:56.626408043Z 2024-06-13 16:23:56.625 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres  | 2024-06-13T16:23:56.626437108Z 2024-06-13 16:23:56.625 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres  | 2024-06-13T16:23:57.081640475Z 2024-06-13 16:23:57.079 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres  | 2024-06-13T16:23:57.383224856Z 2024-06-13 16:23:57.379 UTC [23] LOG:  database system was shut down at 2024-06-13 16:23:23 UTC
postgres  | 2024-06-13T16:23:57.509755610Z 2024-06-13 16:23:57.508 UTC [1] LOG:  database system is ready to accept connections
ztnet     | 2024-06-13T16:24:26.273975571Z Seeding:: User Options complete!
ztnet     | 2024-06-13T16:24:26.646310308Z Seeding:: Updating user ID complete!
ztnet     | 2024-06-13T16:24:26.760930368Z
ztnet     | 2024-06-13T16:24:26.761125508Z 🌱  The seed command has been executed.
ztnet     | 2024-06-13T16:24:27.357267932Z Database seeded successfully!
ztnet     | 2024-06-13T16:24:27.357462859Z Executing command
ztnet     | 2024-06-13T16:24:29.685317419Z    ▲ Next.js 14.1.4
ztnet     | 2024-06-13T16:24:29.687729845Z    - Local:        http:https://aec652dcb7d1:3000
ztnet     | 2024-06-13T16:24:29.688669647Z    - Network:      http:https://172.31.255.4:3000
ztnet     | 2024-06-13T16:24:29.689451823Z
ztnet     | 2024-06-13T16:24:30.551591518Z  ✓ Ready in 925ms
ztnet exited with code 0
ztnet     | 2024-06-13T16:25:18.622342140Z Applying migrations to the database...
ztnet     | 2024-06-13T16:25:24.653094542Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:25:24.657397810Z Prisma schema loaded from prisma/schema.prisma
ztnet     | 2024-06-13T16:25:24.697597344Z Datasource "db": PostgreSQL database "ztnet", schema "public" at "postgres:5432"
ztnet     | 2024-06-13T16:25:25.158588672Z
ztnet     | 2024-06-13T16:25:25.160392614Z 31 migrations found in prisma/migrations
ztnet     | 2024-06-13T16:25:25.160772241Z
ztnet     | 2024-06-13T16:25:25.486803250Z
ztnet     | 2024-06-13T16:25:25.491542817Z No pending migrations to apply.
ztnet     | 2024-06-13T16:25:25.706706091Z Migrations applied successfully!
ztnet     | 2024-06-13T16:25:25.707875542Z Seeding the database...
ztnet     | 2024-06-13T16:25:31.509290339Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:25:31.515643313Z Running seed command `ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts` ...
ztnet     | 2024-06-13T16:25:38.244351110Z Seeding:: User Options complete!
ztnet     | 2024-06-13T16:25:38.524026250Z Seeding:: Updating user ID complete!
ztnet     | 2024-06-13T16:25:38.599097222Z
ztnet     | 2024-06-13T16:25:38.599292235Z 🌱  The seed command has been executed.
ztnet     | 2024-06-13T16:25:38.906486234Z Database seeded successfully!
ztnet     | 2024-06-13T16:25:38.906603562Z Executing command
ztnet     | 2024-06-13T16:25:40.386974869Z    ▲ Next.js 14.1.4
ztnet     | 2024-06-13T16:25:40.390151851Z    - Local:        http:https://aec652dcb7d1:3000
ztnet     | 2024-06-13T16:25:40.390309382Z    - Network:      http:https://172.31.255.4:3000
ztnet     | 2024-06-13T16:25:40.391884103Z
ztnet     | 2024-06-13T16:25:41.231344354Z  ✓ Ready in 904ms
postgres  | 2024-06-13T16:28:57.470210425Z 2024-06-13 16:28:57.469 UTC [21] LOG:  checkpoint starting: time
postgres  | 2024-06-13T16:29:00.139039012Z 2024-06-13 16:29:00.138 UTC [21] LOG:  checkpoint complete: wrote 18 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.414 s, sync=0.884 s, total=2.670 s; sync files=11, longest=0.222 s, average=0.081 s; distance=68 kB, estimate=68 kB
ztnet exited with code 0
ztnet     | 2024-06-13T16:30:31.850033009Z Applying migrations to the database...
ztnet     | 2024-06-13T16:30:38.460963796Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:30:38.464646051Z Prisma schema loaded from prisma/schema.prisma
ztnet     | 2024-06-13T16:30:38.511522471Z Datasource "db": PostgreSQL database "ztnet", schema "public" at "postgres:5432"
ztnet     | 2024-06-13T16:30:38.978300911Z
ztnet     | 2024-06-13T16:30:38.979152865Z 31 migrations found in prisma/migrations
ztnet     | 2024-06-13T16:30:38.979283921Z
ztnet     | 2024-06-13T16:30:39.306581071Z
ztnet     | 2024-06-13T16:30:39.307801568Z No pending migrations to apply.
ztnet     | 2024-06-13T16:30:39.532928853Z Migrations applied successfully!
ztnet     | 2024-06-13T16:30:39.533057566Z Seeding the database...
ztnet     | 2024-06-13T16:30:46.850686181Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:30:46.861191216Z Running seed command `ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts` ...
ztnet     | 2024-06-13T16:30:54.422663146Z Seeding:: User Options complete!
ztnet     | 2024-06-13T16:30:54.709325010Z Seeding:: Updating user ID complete!
ztnet     | 2024-06-13T16:30:54.790301560Z
ztnet     | 2024-06-13T16:30:54.790546715Z 🌱  The seed command has been executed.
ztnet     | 2024-06-13T16:30:55.083449950Z Database seeded successfully!
ztnet     | 2024-06-13T16:30:55.083811392Z Executing command
ztnet     | 2024-06-13T16:30:56.548953867Z    ▲ Next.js 14.1.4
ztnet     | 2024-06-13T16:30:56.551265703Z    - Local:        http:https://aec652dcb7d1:3000
ztnet     | 2024-06-13T16:30:56.551388784Z    - Network:      http:https://172.31.255.4:3000
ztnet     | 2024-06-13T16:30:56.552751844Z
ztnet     | 2024-06-13T16:30:57.402337522Z  ✓ Ready in 912ms
postgres  | 2024-06-13T16:33:57.239684763Z 2024-06-13 16:33:57.238 UTC [21] LOG:  checkpoint starting: time
postgres  | 2024-06-13T16:34:00.503993048Z 2024-06-13 16:34:00.501 UTC [21] LOG:  checkpoint complete: wrote 19 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.823 s, sync=1.045 s, total=3.263 s; sync files=14, longest=0.286 s, average=0.075 s; distance=79 kB, estimate=79 kB
ztnet exited with code 0
ztnet     | 2024-06-13T16:37:46.652067113Z Applying migrations to the database...
ztnet     | 2024-06-13T16:37:54.152474100Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:37:54.157103283Z Prisma schema loaded from prisma/schema.prisma
ztnet     | 2024-06-13T16:37:54.231753445Z Datasource "db": PostgreSQL database "ztnet", schema "public" at "postgres:5432"
postgres  | 2024-06-13T16:37:54.682906356Z 2024-06-13 16:37:54.678 UTC [99] LOG:  could not receive data from client: Connection reset by peer
ztnet     | 2024-06-13T16:37:54.797089033Z
ztnet     | 2024-06-13T16:37:54.797211826Z 31 migrations found in prisma/migrations
ztnet     | 2024-06-13T16:37:54.797240030Z
ztnet     | 2024-06-13T16:37:55.168075943Z
ztnet     | 2024-06-13T16:37:55.171921267Z No pending migrations to apply.
ztnet     | 2024-06-13T16:37:55.621711220Z Migrations applied successfully!
ztnet     | 2024-06-13T16:37:55.623419118Z Seeding the database...
ztnet     | 2024-06-13T16:38:02.687954673Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:38:02.694633060Z Running seed command `ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts` ...
ztnet     | 2024-06-13T16:38:09.760785756Z Seeding:: User Options complete!
ztnet     | 2024-06-13T16:38:10.054471297Z Seeding:: Updating user ID complete!
ztnet     | 2024-06-13T16:38:10.129022408Z
ztnet     | 2024-06-13T16:38:10.129223257Z 🌱  The seed command has been executed.
ztnet     | 2024-06-13T16:38:10.453067326Z Database seeded successfully!
ztnet     | 2024-06-13T16:38:10.453188662Z Executing command
ztnet     | 2024-06-13T16:38:12.136913481Z    ▲ Next.js 14.1.4
ztnet     | 2024-06-13T16:38:12.138645091Z    - Local:        http:https://aec652dcb7d1:3000
ztnet     | 2024-06-13T16:38:12.139732292Z    - Network:      http:https://172.31.255.4:3000
ztnet     | 2024-06-13T16:38:12.140966217Z
ztnet     | 2024-06-13T16:38:12.988664095Z  ✓ Ready in 909ms
postgres  | 2024-06-13T16:38:57.603200193Z 2024-06-13 16:38:57.602 UTC [21] LOG:  checkpoint starting: time
postgres  | 2024-06-13T16:39:00.802313793Z 2024-06-13 16:39:00.801 UTC [21] LOG:  checkpoint complete: wrote 21 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=2.024 s, sync=0.806 s, total=3.200 s; sync files=14, longest=0.174 s, average=0.058 s; distance=79 kB, estimate=79 kB
ztnet exited with code 0
ztnet     | 2024-06-13T16:40:22.249850553Z Applying migrations to the database...
ztnet     | 2024-06-13T16:40:28.307125036Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:40:28.311188032Z Prisma schema loaded from prisma/schema.prisma
ztnet     | 2024-06-13T16:40:28.341148098Z Datasource "db": PostgreSQL database "ztnet", schema "public" at "postgres:5432"
postgres  | 2024-06-13T16:40:28.716486659Z 2024-06-13 16:40:28.714 UTC [118] LOG:  could not receive data from client: Connection reset by peer
ztnet     | 2024-06-13T16:40:28.794100435Z
ztnet     | 2024-06-13T16:40:28.795951549Z 31 migrations found in prisma/migrations
ztnet     | 2024-06-13T16:40:28.796863723Z
ztnet     | 2024-06-13T16:40:29.128650298Z
ztnet     | 2024-06-13T16:40:29.132868231Z No pending migrations to apply.
postgres  | 2024-06-13T16:40:29.139187215Z 2024-06-13 16:40:29.136 UTC [119] LOG:  could not receive data from client: Connection reset by peer
ztnet     | 2024-06-13T16:40:29.479958691Z Migrations applied successfully!
ztnet     | 2024-06-13T16:40:29.481011720Z Seeding the database...
ztnet     | 2024-06-13T16:40:35.848831689Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:40:35.855534376Z Running seed command `ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts` ...
ztnet     | 2024-06-13T16:40:42.848031681Z Seeding:: User Options complete!
ztnet     | 2024-06-13T16:40:43.130943989Z Seeding:: Updating user ID complete!
ztnet     | 2024-06-13T16:40:43.212275608Z
ztnet     | 2024-06-13T16:40:43.212460556Z 🌱  The seed command has been executed.
ztnet     | 2024-06-13T16:40:43.611959860Z Database seeded successfully!
ztnet     | 2024-06-13T16:40:43.612093194Z Executing command
ztnet     | 2024-06-13T16:40:45.374948238Z    ▲ Next.js 14.1.4
ztnet     | 2024-06-13T16:40:45.377078994Z    - Local:        http:https://aec652dcb7d1:3000
ztnet     | 2024-06-13T16:40:45.378295212Z    - Network:      http:https://172.31.255.4:3000
ztnet     | 2024-06-13T16:40:45.378445994Z
ztnet     | 2024-06-13T16:40:46.310011491Z  ✓ Ready in 994ms
ztnet exited with code 0
ztnet     | 2024-06-13T16:41:21.950238317Z Applying migrations to the database...
ztnet     | 2024-06-13T16:41:29.455596535Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:41:29.460290609Z Prisma schema loaded from prisma/schema.prisma
ztnet     | 2024-06-13T16:41:29.505686368Z Datasource "db": PostgreSQL database "ztnet", schema "public" at "postgres:5432"
ztnet     | 2024-06-13T16:41:29.981458761Z
ztnet     | 2024-06-13T16:41:29.983130013Z 31 migrations found in prisma/migrations
ztnet     | 2024-06-13T16:41:29.984060729Z
ztnet     | 2024-06-13T16:41:30.377977801Z
ztnet     | 2024-06-13T16:41:30.393499197Z No pending migrations to apply.
ztnet     | 2024-06-13T16:41:31.084107908Z Migrations applied successfully!
ztnet     | 2024-06-13T16:41:31.084244079Z Seeding the database...
ztnet     | 2024-06-13T16:41:38.344859416Z Environment variables loaded from .env
ztnet     | 2024-06-13T16:41:38.350944243Z Running seed command `ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts` ...
ztnet     | 2024-06-13T16:41:45.966499941Z Seeding:: User Options complete!
ztnet     | 2024-06-13T16:41:46.258347861Z Seeding:: Updating user ID complete!
ztnet     | 2024-06-13T16:41:46.335860549Z
ztnet     | 2024-06-13T16:41:46.336045474Z 🌱  The seed command has been executed.
ztnet     | 2024-06-13T16:41:46.626462881Z Database seeded successfully!
ztnet     | 2024-06-13T16:41:46.626651936Z Executing command
ztnet     | 2024-06-13T16:41:48.129124807Z    ▲ Next.js 14.1.4
ztnet     | 2024-06-13T16:41:48.132458421Z    - Local:        http:https://aec652dcb7d1:3000
ztnet     | 2024-06-13T16:41:48.132605904Z    - Network:      http:https://172.31.255.4:3000
ztnet     | 2024-06-13T16:41:48.134360862Z
ztnet     | 2024-06-13T16:41:48.999578865Z  ✓ Ready in 935ms

docker info

Client:
 Version:    26.1.0-ce
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  0.15.0
    Path:     /usr/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  2.27.1
    Path:     /usr/lib/docker/cli-plugins/docker-compose

Server:
 Containers: 5
  Running: 3
  Paused: 0
  Stopped: 2
 Images: 6
 Server Version: 26.1.0-ce
 Storage Driver: overlay2
  Backing Filesystem: btrfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2 oci
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3a4de459a68952ffb703bbe7f2290861a75b6b67
 runc version: v1.2.0-rc.1-0-g275e6d85f78a
 init version: 
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.9.3-1-default
 Operating System: openSUSE Tumbleweed
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 7.594GiB
 Name: RV415
 ID: 560a4ec7-a916-4fb6-8887-7daca1a602c0
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

@fuyukihidekii fuyukihidekii added the support support request for ZTNET label Jun 13, 2024
@sinamics
Copy link
Owner

sinamics commented Jun 14, 2024

Thank you for the logs and detailed report.
Im not sure what could be the issue.

I tested opensuse-15.5-default_20231118_amd64.tar.xz in a proxmox container, but was not able to replicate the issue.
Will need to test the openSUSE Tumbleweed.

@sinamics
Copy link
Owner

Tested openSUSE Tumbleweed version 20240613
Been running for an hour without issues, will keep it running and check.

sinamics@localhost:~> cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20240613"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20240613"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
# CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20240613:*:*:*:*:*:*:*"
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse:tumbleweed:20240613"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
sinamics@localhost:~> uname -a
Linux localhost.localdomain 6.9.3-1-default #1 SMP PREEMPT_DYNAMIC Thu May 30 08:29:01 UTC 2024 (279162a) x86_64 x86_64 x86_64 GNU/Linux
sinamics@localhost:~> docker info
Client:
 Version:    26.1.0-ce
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  0.15.0
    Path:     /usr/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  2.27.1
    Path:     /usr/lib/docker/cli-plugins/docker-compose

Server:
 Containers: 3
  Running: 3
  Paused: 0
  Stopped: 0
 Images: 3
 Server Version: 26.1.0-ce
 Storage Driver: overlay2
  Backing Filesystem: btrfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 oci runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3a4de459a68952ffb703bbe7f2290861a75b6b67
 runc version: v1.2.0-rc.1-0-g275e6d85f78a
 init version: 
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.9.3-1-default
 Operating System: openSUSE Tumbleweed
 OSType: linux
 Architecture: x86_64
 CPUs: 1
 Total Memory: 1.927GiB
 Name: localhost.localdomain
 ID: 489e7928-3ee0-4c21-b15e-83530b1a6eb0
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

@fuyukihidekii
Copy link
Author

I'll try reinstalling ZTNET and run it with defaults.

I'm unsure if it could be caused by my hardware or any software misconfiguration on my side, as it only happens while interacting with the GUI.

@fuyukihidekii
Copy link
Author

I tested it in a different hardware with other distros (Debian and Arch), it worked.

Within this specific one running Tumbleweed (RV415), I made a second and clean install of the OS (20240613 build) and ZTNET in Docker, seems to be working fine now.

I'll close this, as it's not reproducible and maybe it's caused by a broken environment on my side.

Thank you for your attention and time.

@fuyukihidekii fuyukihidekii closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2024
@sinamics
Copy link
Owner

great, glad you got it working.

@fuyukihidekii
Copy link
Author

fuyukihidekii commented Jun 14, 2024

update

I had a Debian 12 container with zerotier-one client installed on it, which was not running while I tried to use ZTNET but after purging everything from docker and reinstalling only ZTNET in the "RV415" machine, it works now.

update-1 to the comment: the docker-compose file used on the clean install on RV415 was the default provided in the guide, without any changes.

@fuyukihidekii
Copy link
Author

Hi there!

I started a deeper investigation for finding out the specific reason of the "code 0" on my legacy machine.

About the machine

For reference, the legacy machine is the Samsung Sens RV415 (NP-RV415-CD3BR), a laptop launched circa 2011 with the AMD E-300 APU.

According to the "x86_64 microarchitecture levels" defined in 2020, this APU have few x86-64-v2 extensions, however it does not comply with any of the defined levels.

Output of: "lscpu"

$ lscpu | grep "Flags:"

    Flags:    fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb
              rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm
              extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt hw_pstate vmmcall arat npt lbrv svm_lock nrip_save pausefilter

The problem

ZTNet crashes while interacting with the web interface, specially after the login while the UI is loading.

The crash

I experimented building the docker image and it fails with:

Dockerfile layer: `RUN SKIP_ENV_VALIDATION=1 npm run build`
Output: `Compiler server unexpectedly exited with code: null and signal: SIGILL`
Output of: "docker build --progress=plain ."

#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile:
#1 transferring dockerfile: 3.29kB 0.0s done
#1 DONE 2.1s

#2 [internal] load metadata for docker.io/library/node:22.1-bookworm-slim
#2 DONE 3.1s

#3 [internal] load .dockerignore
#3 transferring context:
#3 transferring context: 124B done
#3 DONE 1.8s

#4 [internal] load build context
#4 DONE 0.0s

#5 [runner  1/18] FROM docker.io/library/node:22.1-bookworm-slim@sha256:d9911e842c571d37bf81095e842277b2bb51759df4a2901e85c53afa0378b75c
#5 resolve docker.io/library/node:22.1-bookworm-slim@sha256:d9911e842c571d37bf81095e842277b2bb51759df4a2901e85c53afa0378b75c
#5 resolve docker.io/library/node:22.1-bookworm-slim@sha256:d9911e842c571d37bf81095e842277b2bb51759df4a2901e85c53afa0378b75c 0.9s done
#5 sha256:d9911e842c571d37bf81095e842277b2bb51759df4a2901e85c53afa0378b75c 1.21kB / 1.21kB done
#5 sha256:10638531a497c1b728a1986e6ccd7739cba0d25fb1ab60c040e8ba3e18721736 1.37kB / 1.37kB done
#5 sha256:2a2dd6150694bf9f6e8532fbbbd79dee3bb1dc13d4f86364370563cd4632370f 7.69kB / 7.69kB done
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 0B / 29.15MB 0.4s
#5 sha256:44f5fe9df22b4c549ef3e662bd64e1e6edb8d3738224047ce56d83ab2f498943 0B / 3.35kB 0.8s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 0B / 44.57MB 1.1s
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 3.15MB / 29.15MB 1.4s
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 5.24MB / 29.15MB 1.7s
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 9.44MB / 29.15MB 2.0s
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 11.53MB / 29.15MB 2.2s
#5 sha256:44f5fe9df22b4c549ef3e662bd64e1e6edb8d3738224047ce56d83ab2f498943 3.35kB / 3.35kB 2.3s
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 14.68MB / 29.15MB 2.4s
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 16.78MB / 29.15MB 2.6s
#5 sha256:44f5fe9df22b4c549ef3e662bd64e1e6edb8d3738224047ce56d83ab2f498943 3.35kB / 3.35kB 2.4s done
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 18.87MB / 29.15MB 2.8s
#5 sha256:2d052f3a5a65962935721e2ec8798d2206d915d2f57fc717d2b181afbe198234 0B / 1.71MB 3.0s
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 20.97MB / 29.15MB 3.1s
#5 ...

#4 [internal] load build context
#4 transferring context: 14.75MB 1.8s done
#4 DONE 4.3s

#5 [runner  1/18] FROM docker.io/library/node:22.1-bookworm-slim@sha256:d9911e842c571d37bf81095e842277b2bb51759df4a2901e85c53afa0378b75c
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 24.12MB / 29.15MB 3.4s
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 26.21MB / 29.15MB 3.6s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 3.15MB / 44.57MB 3.6s
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 29.15MB / 29.15MB 4.0s
#5 sha256:2d052f3a5a65962935721e2ec8798d2206d915d2f57fc717d2b181afbe198234 1.05MB / 1.71MB 4.0s
#5 sha256:2d052f3a5a65962935721e2ec8798d2206d915d2f57fc717d2b181afbe198234 1.71MB / 1.71MB 4.3s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 6.29MB / 44.57MB 4.6s
#5 sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 29.15MB / 29.15MB 4.6s done
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 9.44MB / 44.57MB 4.9s
#5 sha256:2d052f3a5a65962935721e2ec8798d2206d915d2f57fc717d2b181afbe198234 1.71MB / 1.71MB 4.9s done
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 12.58MB / 44.57MB 5.2s
#5 extracting sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae
#5 sha256:9c4698de6f519f79976b624169d014df13014c527b52a05b83ef570ca634358c 0B / 450B 5.3s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 15.73MB / 44.57MB 5.5s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 18.87MB / 44.57MB 5.8s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 22.02MB / 44.57MB 6.0s
#5 sha256:9c4698de6f519f79976b624169d014df13014c527b52a05b83ef570ca634358c 450B / 450B 5.8s done
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 25.17MB / 44.57MB 6.3s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 28.31MB / 44.57MB 6.5s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 31.46MB / 44.57MB 6.8s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 34.60MB / 44.57MB 7.1s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 38.80MB / 44.57MB 7.5s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 41.94MB / 44.57MB 7.8s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 44.57MB / 44.57MB 8.1s
#5 sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 44.57MB / 44.57MB 9.1s done
#5 extracting sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 5.0s
#5 extracting sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae 10.1s done
#5 extracting sha256:44f5fe9df22b4c549ef3e662bd64e1e6edb8d3738224047ce56d83ab2f498943
#5 extracting sha256:44f5fe9df22b4c549ef3e662bd64e1e6edb8d3738224047ce56d83ab2f498943 0.2s done
#5 extracting sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca
#5 extracting sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 5.1s
#5 extracting sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 10.3s
#5 extracting sha256:0a48b351116c315c1164b6b68566396daf2af6df1a3d78b85251131ddabd56ca 11.8s done
#5 extracting sha256:2d052f3a5a65962935721e2ec8798d2206d915d2f57fc717d2b181afbe198234
#5 extracting sha256:2d052f3a5a65962935721e2ec8798d2206d915d2f57fc717d2b181afbe198234 0.9s done
#5 extracting sha256:9c4698de6f519f79976b624169d014df13014c527b52a05b83ef570ca634358c
#5 extracting sha256:9c4698de6f519f79976b624169d014df13014c527b52a05b83ef570ca634358c 0.2s done
#5 DONE 134.7s

#6 [runner  2/18] WORKDIR /app
#6 DONE 2.2s

#7 [runner  3/18] RUN addgroup --system --gid 1001 nodejs
#7 ...

#8 [ztmkworld_builder 2/4] COPY ztnodeid/build/linux_amd64/ztmkworld ztmkworld_amd64
#8 DONE 5.9s

#9 [deps 2/5] RUN npx prisma generate
#9 ...

#10 [ztmkworld_builder 3/4] COPY ztnodeid/build/linux_arm64/ztmkworld ztmkworld_arm64
#10 ...

#7 [runner  3/18] RUN addgroup --system --gid 1001 nodejs
#7 7.338 Adding group `nodejs' (GID 1001) ...
#7 8.017 Done.
#7 DONE 9.1s

#10 [ztmkworld_builder 3/4] COPY ztnodeid/build/linux_arm64/ztmkworld ztmkworld_arm64
#10 ...

#11 [runner  4/18] RUN adduser --system --uid 1001 nextjs
#11 ...

#10 [ztmkworld_builder 3/4] COPY ztnodeid/build/linux_arm64/ztmkworld ztmkworld_arm64
#10 DONE 7.1s

#11 [runner  4/18] RUN adduser --system --uid 1001 nextjs
#11 ...

#12 [ztmkworld_builder 4/4] RUN     case "linux/amd64" in     "linux/amd64") cp ztmkworld_amd64 /usr/local/bin/ztmkworld ;;     "linux/arm64") cp ztmkworld_arm64 /usr/local/bin/ztmkworld ;;     *) echo "Unsupported architecture" && exit 1 ;;     esac &&     chmod +x /usr/local/bin/ztmkworld
#12 ...

#9 [deps 2/5] RUN npx prisma generate
#9 14.84 npm warn exec The following package was not found and will be installed: [email protected]
#9 ...

#11 [runner  4/18] RUN adduser --system --uid 1001 nextjs
#11 14.72 Adding system user `nextjs' (UID 1001) ...
#11 14.72 Adding new user `nextjs' (UID 1001) with group `nogroup' ...
#11 14.94 useradd warning: nextjs's uid 1001 is greater than SYS_UID_MAX 999
#11 15.56 Not creating `/nonexistent'.
#11 DONE 42.0s

#9 [deps 2/5] RUN npx prisma generate
#9 ...

#12 [ztmkworld_builder 4/4] RUN     case "linux/amd64" in     "linux/amd64") cp ztmkworld_amd64 /usr/local/bin/ztmkworld ;;     "linux/arm64") cp ztmkworld_arm64 /usr/local/bin/ztmkworld ;;     *) echo "Unsupported architecture" && exit 1 ;;     esac &&     chmod +x /usr/local/bin/ztmkworld
#12 DONE 38.7s

#9 [deps 2/5] RUN npx prisma generate
#9 ...

#13 [runner  5/18] RUN apt update && apt install -y curl sudo postgresql-client && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#13 10.04
#13 10.04 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#13 10.04
#13 10.19 Get:1 http:https://deb.debian.org/debian bookworm InRelease [151 kB]
#13 10.45 Get:2 http:https://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
#13 10.49 Get:3 http:https://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
#13 10.85 Get:4 http:https://deb.debian.org/debian bookworm/main amd64 Packages [8786 kB]
#13 11.80 Get:5 http:https://deb.debian.org/debian bookworm-updates/main amd64 Packages [13.8 kB]
#13 12.15 Get:6 http:https://deb.debian.org/debian-security bookworm-security/main amd64 Packages [160 kB]
#13 17.18 Fetched 9214 kB in 7s (1305 kB/s)
#13 17.18 Reading package lists...
#13 20.78 Building dependency tree...
#13 21.68 Reading state information...
#13 21.79 All packages are up to date.
#13 21.83
#13 21.83 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#13 21.83
#13 21.87 Reading package lists...
#13 25.33 Building dependency tree...
#13 25.89 Reading state information...
#13 29.46 The following additional packages will be installed:
#13 29.47   ca-certificates krb5-locales libbrotli1 libcurl4 libgdbm-compat4 libgdbm6
#13 29.48   libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0
#13 29.48   libldap-2.5-0 libldap-common libnghttp2-14 libperl5.36 libpq5 libpsl5
#13 29.48   libreadline8 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
#13 29.50   libssh2-1 libssl3 netbase openssl perl perl-modules-5.36
#13 29.50   postgresql-client-15 postgresql-client-common publicsuffix readline-common
#13 29.50   sensible-utils
#13 29.54 Suggested packages:
#13 29.54   gdbm-l10n krb5-doc krb5-user libsasl2-modules-gssapi-mit
#13 29.54   | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp
#13 29.55   libsasl2-modules-sql perl-doc libterm-readline-gnu-perl
#13 29.55   | libterm-readline-perl-perl make libtap-harness-archive-perl postgresql-15
#13 29.55   postgresql-doc-15 readline-doc
#13 34.70 The following NEW packages will be installed:
#13 34.70   ca-certificates curl krb5-locales libbrotli1 libcurl4 libgdbm-compat4
#13 34.70   libgdbm6 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3
#13 34.71   libkrb5support0 libldap-2.5-0 libldap-common libnghttp2-14 libperl5.36
#13 34.72   libpq5 libpsl5 libreadline8 librtmp1 libsasl2-2 libsasl2-modules
#13 34.72   libsasl2-modules-db libssh2-1 libssl3 netbase openssl perl perl-modules-5.36
#13 34.72   postgresql-client postgresql-client-15 postgresql-client-common publicsuffix
#13 34.73   readline-common sensible-utils sudo
#13 35.13 0 upgraded, 36 newly installed, 0 to remove and 0 not upgraded.
#13 35.13 Need to get 17.6 MB of archives.
#13 35.13 After this operation, 80.4 MB of additional disk space will be used.
#13 35.13 Get:1 http:https://deb.debian.org/debian bookworm/main amd64 perl-modules-5.36 all 5.36.0-7+deb12u1 [2815 kB]
#13 35.59 Get:2 http:https://deb.debian.org/debian bookworm/main amd64 libgdbm6 amd64 1.23-3 [72.2 kB]
#13 35.64 Get:3 http:https://deb.debian.org/debian bookworm/main amd64 libgdbm-compat4 amd64 1.23-3 [48.2 kB]
#13 35.68 Get:4 http:https://deb.debian.org/debian bookworm/main amd64 libperl5.36 amd64 5.36.0-7+deb12u1 [4218 kB]
#13 36.36 Get:5 http:https://deb.debian.org/debian bookworm/main amd64 perl amd64 5.36.0-7+deb12u1 [239 kB]
#13 36.41 Get:6 http:https://deb.debian.org/debian bookworm/main amd64 sudo amd64 1.9.13p3-1+deb12u1 [1889 kB]
#13 36.71 Get:7 http:https://deb.debian.org/debian bookworm/main amd64 netbase all 6.4 [12.8 kB]
#13 36.75 Get:8 http:https://deb.debian.org/debian bookworm/main amd64 readline-common all 8.2-1.3 [69.0 kB]
#13 36.76 Get:9 http:https://deb.debian.org/debian bookworm/main amd64 sensible-utils all 0.0.17+nmu1 [19.0 kB]
#13 36.78 Get:10 http:https://deb.debian.org/debian bookworm/main amd64 libssl3 amd64 3.0.11-1~deb12u2 [2019 kB]
#13 37.06 Get:11 http:https://deb.debian.org/debian bookworm/main amd64 openssl amd64 3.0.11-1~deb12u2 [1419 kB]
#13 37.29 Get:12 http:https://deb.debian.org/debian bookworm/main amd64 ca-certificates all 20230311 [153 kB]
#13 37.32 Get:13 http:https://deb.debian.org/debian bookworm/main amd64 krb5-locales all 1.20.1-2+deb12u1 [62.7 kB]
#13 37.35 Get:14 http:https://deb.debian.org/debian bookworm/main amd64 libbrotli1 amd64 1.0.9-2+b6 [275 kB]
#13 37.41 Get:15 http:https://deb.debian.org/debian bookworm/main amd64 libkrb5support0 amd64 1.20.1-2+deb12u1 [32.4 kB]
#13 37.44 Get:16 http:https://deb.debian.org/debian bookworm/main amd64 libk5crypto3 amd64 1.20.1-2+deb12u1 [78.9 kB]
#13 37.47 Get:17 http:https://deb.debian.org/debian bookworm/main amd64 libkeyutils1 amd64 1.6.3-2 [8808 B]
#13 47.04 Get:18 http:https://deb.debian.org/debian bookworm/main amd64 libkrb5-3 amd64 1.20.1-2+deb12u1 [332 kB]
#13 47.16 Get:19 http:https://deb.debian.org/debian bookworm/main amd64 libgssapi-krb5-2 amd64 1.20.1-2+deb12u1 [134 kB]
#13 47.21 Get:20 http:https://deb.debian.org/debian bookworm/main amd64 libsasl2-modules-db amd64 2.1.28+dfsg-10 [20.3 kB]
#13 47.26 Get:21 http:https://deb.debian.org/debian bookworm/main amd64 libsasl2-2 amd64 2.1.28+dfsg-10 [59.7 kB]
#13 47.27 Get:22 http:https://deb.debian.org/debian bookworm/main amd64 libldap-2.5-0 amd64 2.5.13+dfsg-5 [183 kB]
#13 47.35 Get:23 http:https://deb.debian.org/debian bookworm/main amd64 libnghttp2-14 amd64 1.52.0-1+deb12u1 [72.4 kB]
#13 47.39 Get:24 http:https://deb.debian.org/debian bookworm/main amd64 libpsl5 amd64 0.21.2-1 [58.7 kB]
#13 47.43 Get:25 http:https://deb.debian.org/debian bookworm/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2+b2 [60.8 kB]
#13 47.48 Get:26 http:https://deb.debian.org/debian bookworm/main amd64 libssh2-1 amd64 1.10.0-3+b1 [179 kB]
#13 47.56 Get:27 http:https://deb.debian.org/debian bookworm/main amd64 libcurl4 amd64 7.88.1-10+deb12u5 [390 kB]
#13 47.68 Get:28 http:https://deb.debian.org/debian bookworm/main amd64 curl amd64 7.88.1-10+deb12u5 [315 kB]
#13 47.81 Get:29 http:https://deb.debian.org/debian bookworm/main amd64 libldap-common all 2.5.13+dfsg-5 [29.3 kB]
#13 47.83 Get:30 http:https://deb.debian.org/debian-security bookworm-security/main amd64 libpq5 amd64 15.6-0+deb12u1 [188 kB]
#13 47.89 Get:31 http:https://deb.debian.org/debian bookworm/main amd64 libreadline8 amd64 8.2-1.3 [166 kB]
#13 47.97 Get:32 http:https://deb.debian.org/debian bookworm/main amd64 libsasl2-modules amd64 2.1.28+dfsg-10 [66.6 kB]
#13 48.02 Get:33 http:https://deb.debian.org/debian bookworm/main amd64 postgresql-client-common all 248 [35.1 kB]
#13 48.03 Get:34 http:https://deb.debian.org/debian-security bookworm-security/main amd64 postgresql-client-15 amd64 15.6-0+deb12u1 [1697 kB]
#13 ...

#9 [deps 2/5] RUN npx prisma generate
#9 101.0 prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
#9 101.0 Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.
#9 ...

#13 [runner  5/18] RUN apt update && apt install -y curl sudo postgresql-client && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#13 48.43 Get:35 http:https://deb.debian.org/debian bookworm/main amd64 postgresql-client all 15+248 [10.1 kB]
#13 48.48 Get:36 http:https://deb.debian.org/debian bookworm/main amd64 publicsuffix all 20230209.2326-1 [126 kB]
#13 52.10 debconf: delaying package configuration, since apt-utils is not installed
#13 52.82 Fetched 17.6 MB in 14s (1297 kB/s)
#13 ...

#9 [deps 2/5] RUN npx prisma generate
#9 111.3 prisma:warn We could not find your Prisma schema in the default locations (see: https://pris.ly/d/prisma-schema-location.
#9 111.3 If you have a Prisma schema file in a custom path, you will need to run
#9 111.3 `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
#9 111.3 If you do not have a Prisma schema file yet, you can ignore this message.
#9 111.3
#9 111.8 npm notice
#9 111.8 npm notice New minor version of npm available! 10.7.0 -> 10.8.1
#9 111.8 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
#9 111.8 npm notice To update run: npm install -g [email protected]
#9 111.8 npm notice
#9 ...

#13 [runner  5/18] RUN apt update && apt install -y curl sudo postgresql-client && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#13 61.64 Selecting previously unselected package perl-modules-5.36.
#13 61.64 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 6090 files and directories currently installed.)
#13 61.69 Preparing to unpack .../00-perl-modules-5.36_5.36.0-7+deb12u1_all.deb ...
#13 62.18 Unpacking perl-modules-5.36 (5.36.0-7+deb12u1) ...
#13 67.92 Selecting previously unselected package libgdbm6:amd64.
#13 67.93 Preparing to unpack .../01-libgdbm6_1.23-3_amd64.deb ...
#13 68.76 Unpacking libgdbm6:amd64 (1.23-3) ...
#13 ...

#9 [deps 2/5] RUN npx prisma generate
#9 DONE 121.5s

#14 [deps 3/5] COPY prisma ./
#14 ...

#13 [runner  5/18] RUN apt update && apt install -y curl sudo postgresql-client && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#13 70.35 Selecting previously unselected package libgdbm-compat4:amd64.
#13 70.36 Preparing to unpack .../02-libgdbm-compat4_1.23-3_amd64.deb ...
#13 70.56 Unpacking libgdbm-compat4:amd64 (1.23-3) ...
#13 72.14 Selecting previously unselected package libperl5.36:amd64.
#13 72.15 Preparing to unpack .../03-libperl5.36_5.36.0-7+deb12u1_amd64.deb ...
#13 72.36 Unpacking libperl5.36:amd64 (5.36.0-7+deb12u1) ...
#13 76.26 Selecting previously unselected package perl.
#13 76.27 Preparing to unpack .../04-perl_5.36.0-7+deb12u1_amd64.deb ...
#13 76.42 Unpacking perl (5.36.0-7+deb12u1) ...
#13 79.29 Selecting previously unselected package sudo.
#13 79.30 Preparing to unpack .../05-sudo_1.9.13p3-1+deb12u1_amd64.deb ...
#13 79.56 Unpacking sudo (1.9.13p3-1+deb12u1) ...
#13 81.63 Selecting previously unselected package netbase.
#13 81.65 Preparing to unpack .../06-netbase_6.4_all.deb ...
#13 81.74 Unpacking netbase (6.4) ...
#13 83.72 Selecting previously unselected package readline-common.
#13 83.74 Preparing to unpack .../07-readline-common_8.2-1.3_all.deb ...
#13 84.76 Unpacking readline-common (8.2-1.3) ...
#13 85.99 Selecting previously unselected package sensible-utils.
#13 86.01 Preparing to unpack .../08-sensible-utils_0.0.17+nmu1_all.deb ...
#13 86.15 Unpacking sensible-utils (0.0.17+nmu1) ...
#13 ...

#14 [deps 3/5] COPY prisma ./
#14 DONE 17.2s

#13 [runner  5/18] RUN apt update && apt install -y curl sudo postgresql-client && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#13 ...

#15 [deps 4/5] COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
#15 ...

#13 [runner  5/18] RUN apt update && apt install -y curl sudo postgresql-client && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#13 87.61 Selecting previously unselected package libssl3:amd64.
#13 87.62 Preparing to unpack .../09-libssl3_3.0.11-1~deb12u2_amd64.deb ...
#13 87.87 Unpacking libssl3:amd64 (3.0.11-1~deb12u2) ...
#13 90.94 Selecting previously unselected package openssl.
#13 90.95 Preparing to unpack .../10-openssl_3.0.11-1~deb12u2_amd64.deb ...
#13 91.09 Unpacking openssl (3.0.11-1~deb12u2) ...
#13 94.33 Selecting previously unselected package ca-certificates.
#13 94.34 Preparing to unpack .../11-ca-certificates_20230311_all.deb ...
#13 94.79 Unpacking ca-certificates (20230311) ...
#13 99.47 Selecting previously unselected package krb5-locales.
#13 99.49 Preparing to unpack .../12-krb5-locales_1.20.1-2+deb12u1_all.deb ...
#13 99.58 Unpacking krb5-locales (1.20.1-2+deb12u1) ...
#13 101.1 Selecting previously unselected package libbrotli1:amd64.
#13 101.1 Preparing to unpack .../13-libbrotli1_1.0.9-2+b6_amd64.deb ...
#13 101.3 Unpacking libbrotli1:amd64 (1.0.9-2+b6) ...
#13 103.2 Selecting previously unselected package libkrb5support0:amd64.
#13 103.2 Preparing to unpack .../14-libkrb5support0_1.20.1-2+deb12u1_amd64.deb ...
#13 103.7 Unpacking libkrb5support0:amd64 (1.20.1-2+deb12u1) ...
#13 105.5 Selecting previously unselected package libk5crypto3:amd64.
#13 105.5 Preparing to unpack .../15-libk5crypto3_1.20.1-2+deb12u1_amd64.deb ...
#13 105.8 Unpacking libk5crypto3:amd64 (1.20.1-2+deb12u1) ...
#13 108.2 Selecting previously unselected package libkeyutils1:amd64.
#13 108.2 Preparing to unpack .../16-libkeyutils1_1.6.3-2_amd64.deb ...
#13 108.4 Unpacking libkeyutils1:amd64 (1.6.3-2) ...
#13 110.3 Selecting previously unselected package libkrb5-3:amd64.
#13 110.3 Preparing to unpack .../17-libkrb5-3_1.20.1-2+deb12u1_amd64.deb ...
#13 110.9 Unpacking libkrb5-3:amd64 (1.20.1-2+deb12u1) ...
#13 ...

#15 [deps 4/5] COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
#15 DONE 25.6s

#13 [runner  5/18] RUN apt update && apt install -y curl sudo postgresql-client && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#13 ...

#16 [deps 5/5] RUN     if [ -f yarn.lock ]; then yarn --frozen-lockfile;     elif [ -f package-lock.json ]; then npm ci;     elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile;     else echo "Lockfile not found." && exit 1;     fi
#16 ...

#13 [runner  5/18] RUN apt update && apt install -y curl sudo postgresql-client && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#13 112.7 Selecting previously unselected package libgssapi-krb5-2:amd64.
#13 112.7 Preparing to unpack .../18-libgssapi-krb5-2_1.20.1-2+deb12u1_amd64.deb ...
#13 112.9 Unpacking libgssapi-krb5-2:amd64 (1.20.1-2+deb12u1) ...
#13 114.2 Selecting previously unselected package libsasl2-modules-db:amd64.
#13 114.2 Preparing to unpack .../19-libsasl2-modules-db_2.1.28+dfsg-10_amd64.deb ...
#13 114.4 Unpacking libsasl2-modules-db:amd64 (2.1.28+dfsg-10) ...
#13 116.0 Selecting previously unselected package libsasl2-2:amd64.
#13 116.0 Preparing to unpack .../20-libsasl2-2_2.1.28+dfsg-10_amd64.deb ...
#13 116.2 Unpacking libsasl2-2:amd64 (2.1.28+dfsg-10) ...
#13 117.4 Selecting previously unselected package libldap-2.5-0:amd64.
#13 117.4 Preparing to unpack .../21-libldap-2.5-0_2.5.13+dfsg-5_amd64.deb ...
#13 117.5 Unpacking libldap-2.5-0:amd64 (2.5.13+dfsg-5) ...
#13 118.4 Selecting previously unselected package libnghttp2-14:amd64.
#13 118.4 Preparing to unpack .../22-libnghttp2-14_1.52.0-1+deb12u1_amd64.deb ...
#13 118.7 Unpacking libnghttp2-14:amd64 (1.52.0-1+deb12u1) ...
#13 119.4 Selecting previously unselected package libpsl5:amd64.
#13 119.4 Preparing to unpack .../23-libpsl5_0.21.2-1_amd64.deb ...
#13 119.5 Unpacking libpsl5:amd64 (0.21.2-1) ...
#13 120.2 Selecting previously unselected package librtmp1:amd64.
#13 120.3 Preparing to unpack .../24-librtmp1_2.4+20151223.gitfa8646d.1-2+b2_amd64.deb ...
#13 120.3 Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ...
#13 121.7 Selecting previously unselected package libssh2-1:amd64.
#13 121.7 Preparing to unpack .../25-libssh2-1_1.10.0-3+b1_amd64.deb ...
#13 121.9 Unpacking libssh2-1:amd64 (1.10.0-3+b1) ...
#13 122.7 Selecting previously unselected package libcurl4:amd64.
#13 122.7 Preparing to unpack .../26-libcurl4_7.88.1-10+deb12u5_amd64.deb ...
#13 122.8 Unpacking libcurl4:amd64 (7.88.1-10+deb12u5) ...
#13 123.6 Selecting previously unselected package curl.
#13 123.6 Preparing to unpack .../27-curl_7.88.1-10+deb12u5_amd64.deb ...
#13 123.7 Unpacking curl (7.88.1-10+deb12u5) ...
#13 124.3 Selecting previously unselected package libldap-common.
#13 124.3 Preparing to unpack .../28-libldap-common_2.5.13+dfsg-5_all.deb ...
#13 124.4 Unpacking libldap-common (2.5.13+dfsg-5) ...
#13 125.2 Selecting previously unselected package libpq5:amd64.
#13 125.2 Preparing to unpack .../29-libpq5_15.6-0+deb12u1_amd64.deb ...
#13 125.3 Unpacking libpq5:amd64 (15.6-0+deb12u1) ...
#13 126.3 Selecting previously unselected package libreadline8:amd64.
#13 126.3 Preparing to unpack .../30-libreadline8_8.2-1.3_amd64.deb ...
#13 126.4 Unpacking libreadline8:amd64 (8.2-1.3) ...
#13 127.3 Selecting previously unselected package libsasl2-modules:amd64.
#13 127.3 Preparing to unpack .../31-libsasl2-modules_2.1.28+dfsg-10_amd64.deb ...
#13 127.4 Unpacking libsasl2-modules:amd64 (2.1.28+dfsg-10) ...
#13 128.1 Selecting previously unselected package postgresql-client-common.
#13 128.1 Preparing to unpack .../32-postgresql-client-common_248_all.deb ...
#13 128.2 Unpacking postgresql-client-common (248) ...
#13 129.2 Selecting previously unselected package postgresql-client-15.
#13 129.2 Preparing to unpack .../33-postgresql-client-15_15.6-0+deb12u1_amd64.deb ...
#13 129.4 Unpacking postgresql-client-15 (15.6-0+deb12u1) ...
#13 130.8 Selecting previously unselected package postgresql-client.
#13 130.8 Preparing to unpack .../34-postgresql-client_15+248_all.deb ...
#13 130.9 Unpacking postgresql-client (15+248) ...
#13 131.4 Selecting previously unselected package publicsuffix.
#13 131.4 Preparing to unpack .../35-publicsuffix_20230209.2326-1_all.deb ...
#13 131.6 Unpacking publicsuffix (20230209.2326-1) ...
#13 132.5 Setting up libkeyutils1:amd64 (1.6.3-2) ...
#13 132.8 Setting up libpsl5:amd64 (0.21.2-1) ...
#13 133.2 Setting up libbrotli1:amd64 (1.0.9-2+b6) ...
#13 133.5 Setting up libssl3:amd64 (3.0.11-1~deb12u2) ...
#13 133.8 Setting up libnghttp2-14:amd64 (1.52.0-1+deb12u1) ...
#13 134.1 Setting up krb5-locales (1.20.1-2+deb12u1) ...
#13 134.5 Setting up libldap-common (2.5.13+dfsg-5) ...
#13 135.2 Setting up libkrb5support0:amd64 (1.20.1-2+deb12u1) ...
#13 135.5 Setting up libsasl2-modules-db:amd64 (2.1.28+dfsg-10) ...
#13 136.0 Setting up perl-modules-5.36 (5.36.0-7+deb12u1) ...
#13 136.3 Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ...
#13 136.6 Setting up sudo (1.9.13p3-1+deb12u1) ...
#13 137.6 invoke-rc.d: could not determine current runlevel
#13 137.6 invoke-rc.d: policy-rc.d denied execution of start.
#13 137.7 Setting up libk5crypto3:amd64 (1.20.1-2+deb12u1) ...
#13 138.1 Setting up libsasl2-2:amd64 (2.1.28+dfsg-10) ...
#13 138.4 Setting up sensible-utils (0.0.17+nmu1) ...
#13 138.7 Setting up libssh2-1:amd64 (1.10.0-3+b1) ...
#13 139.1 Setting up netbase (6.4) ...
#13 140.3 Setting up libkrb5-3:amd64 (1.20.1-2+deb12u1) ...
#13 140.5 Setting up openssl (3.0.11-1~deb12u2) ...
#13 140.9 Setting up readline-common (8.2-1.3) ...
#13 141.2 Setting up publicsuffix (20230209.2326-1) ...
#13 141.5 Setting up libgdbm6:amd64 (1.23-3) ...
#13 141.9 Setting up libreadline8:amd64 (8.2-1.3) ...
#13 142.3 Setting up libsasl2-modules:amd64 (2.1.28+dfsg-10) ...
#13 142.6 Setting up libldap-2.5-0:amd64 (2.5.13+dfsg-5) ...
#13 144.2 Setting up ca-certificates (20230311) ...
#13 145.1 debconf: unable to initialize frontend: Dialog
#13 145.1 debconf: (TERM is not set, so the dialog frontend is not usable.)
#13 145.1 debconf: falling back to frontend: Readline
#13 145.2 debconf: unable to initialize frontend: Readline
#13 145.2 debconf: (This frontend requires a controlling tty.)
#13 145.2 debconf: falling back to frontend: Teletype
#13 150.2 Updating certificates in /etc/ssl/certs...
#13 153.6 140 added, 0 removed; done.
#13 155.2 Setting up libgssapi-krb5-2:amd64 (1.20.1-2+deb12u1) ...
#13 155.7 Setting up libgdbm-compat4:amd64 (1.23-3) ...
#13 156.1 Setting up libcurl4:amd64 (7.88.1-10+deb12u5) ...
#13 156.4 Setting up curl (7.88.1-10+deb12u5) ...
#13 156.7 Setting up libperl5.36:amd64 (5.36.0-7+deb12u1) ...
#13 ...

#16 [deps 5/5] RUN     if [ -f yarn.lock ]; then yarn --frozen-lockfile;     elif [ -f package-lock.json ]; then npm ci;     elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile;     else echo "Lockfile not found." && exit 1;     fi
#16 44.39 npm warn deprecated [email protected]: Use your platform's native DOMException instead
#16 46.07 npm warn deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
#16 47.77 npm warn deprecated @types/[email protected]: This is a stub types definition. socket.io-client provides its own type definitions, so you do not need this installed.
#16 48.77 npm warn deprecated @types/[email protected]: This is a stub types definition. lru-cache provides its own type definitions, so you do not need this installed.
#16 ...

#13 [runner  5/18] RUN apt update && apt install -y curl sudo postgresql-client && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#13 157.0 Setting up libpq5:amd64 (15.6-0+deb12u1) ...
#13 157.3 Setting up perl (5.36.0-7+deb12u1) ...
#13 157.8 Setting up postgresql-client-common (248) ...
#13 158.3 Setting up postgresql-client-15 (15.6-0+deb12u1) ...
#13 163.0 update-alternatives: using /usr/share/postgresql/15/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
#13 164.7 Setting up postgresql-client (15+248) ...
#13 165.0 Processing triggers for libc-bin (2.36-9+deb12u7) ...
#13 165.4 Processing triggers for ca-certificates (20230311) ...
#13 165.6 Updating certificates in /etc/ssl/certs...
#13 169.3 0 added, 0 removed; done.
#13 169.3 Running hooks in /etc/ca-certificates/update.d...
#13 169.3 done.
#13 169.9
#13 169.9 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#13 169.9
#13 DONE 227.5s

#16 [deps 5/5] RUN     if [ -f yarn.lock ]; then yarn --frozen-lockfile;     elif [ -f package-lock.json ]; then npm ci;     elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile;     else echo "Lockfile not found." && exit 1;     fi
#16 ...

#17 [runner  6/18] RUN npm install @prisma/client @paralleldrive/cuid2
#17 152.4
#17 152.4 added 3 packages in 2m
#17 152.4
#17 152.4 1 package is looking for funding
#17 152.4   run `npm fund` for details
#17 152.4 npm notice
#17 152.4 npm notice New minor version of npm available! 10.7.0 -> 10.8.1
#17 152.4 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
#17 152.4 npm notice To update run: npm install -g [email protected]
#17 152.4 npm notice
#17 ...

#16 [deps 5/5] RUN     if [ -f yarn.lock ]; then yarn --frozen-lockfile;     elif [ -f package-lock.json ]; then npm ci;     elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile;     else echo "Lockfile not found." && exit 1;     fi
#16 421.2
#16 421.2 > [email protected] postinstall
#16 421.2 > prisma generate
#16 421.2
#16 424.2 prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
#16 424.2 Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.
#16 426.8 Prisma schema loaded from schema.prisma
#16 427.0 prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
#16 427.0 Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.
#16 ...

#17 [runner  6/18] RUN npm install @prisma/client @paralleldrive/cuid2
#17 DONE 324.5s

#16 [deps 5/5] RUN     if [ -f yarn.lock ]; then yarn --frozen-lockfile;     elif [ -f package-lock.json ]; then npm ci;     elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile;     else echo "Lockfile not found." && exit 1;     fi
#16 441.1
#16 441.1 ✔ Generated Prisma Client (v5.12.1) to ./node_modules/@prisma/client in 4.13s
#16 441.1
#16 441.1 Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
#16 441.1 ```
#16 441.1 import { PrismaClient } from '@prisma/client'
#16 441.1 const prisma = new PrismaClient()
#16 441.1 ```
#16 441.1 or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
#16 441.1 ```
#16 441.1 import { PrismaClient } from '@prisma/client/edge'
#16 441.1 const prisma = new PrismaClient()
#16 441.1 ```
#16 441.1
#16 441.1 See other ways of importing Prisma Client: http:https://pris.ly/d/importing-client
#16 441.1
#16 441.1 ┌─────────────────────────────────────────────────────────────┐
#16 441.1 │  Deploying your app to serverless or edge functions?        │
#16 441.1 │  Try Prisma Accelerate for connection pooling and caching.  │
#16 441.1 │  https://pris.ly/cli/accelerate                             │
#16 441.1 └─────────────────────────────────────────────────────────────┘
#16 441.1
#16 441.1
#16 441.1 warn Versions of [email protected] and @prisma/[email protected] don't match.
#16 441.1 This might lead to unexpected behavior.
#16 441.1 Please make sure they have the same version.
#16 441.7
#16 441.7 added 883 packages, and audited 884 packages in 7m
#16 441.7
#16 441.7 128 packages are looking for funding
#16 441.7   run `npm fund` for details
#16 441.8
#16 441.8 6 high severity vulnerabilities
#16 441.8
#16 441.8 To address all issues, run:
#16 441.8   npm audit fix
#16 441.8
#16 441.8 Run `npm audit` for details.
#16 ...

#18 [runner  7/18] RUN npm install -g prisma ts-node
#18 ...

#16 [deps 5/5] RUN     if [ -f yarn.lock ]; then yarn --frozen-lockfile;     elif [ -f package-lock.json ]; then npm ci;     elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile;     else echo "Lockfile not found." && exit 1;     fi
#16 DONE 457.6s

#18 [runner  7/18] RUN npm install -g prisma ts-node
#18 102.4
#18 102.4 added 26 packages in 1m
#18 ...

#19 [builder 2/4] COPY --from=deps /app/node_modules ./node_modules
#19 ...

#18 [runner  7/18] RUN npm install -g prisma ts-node
#18 DONE 139.2s

#19 [builder 2/4] COPY --from=deps /app/node_modules ./node_modules
#19 ...

#20 [runner  8/18] RUN mkdir -p /var/lib/zerotier-one && chown -R nextjs:nodejs /var/lib/zerotier-one && chmod -R 777 /var/lib/zerotier-one
#20 DONE 7.4s

#19 [builder 2/4] COPY --from=deps /app/node_modules ./node_modules
#19 DONE 35.1s

#21 [builder 3/4] COPY . .
#21 DONE 7.4s

#22 [builder 4/4] RUN SKIP_ENV_VALIDATION=1 npm run build
#22 5.936
#22 5.936 > [email protected] build
#22 5.936 > next build
#22 5.936
#22 10.92 Attention: Next.js now collects completely anonymous telemetry regarding usage.
#22 10.93 This information is used to shape Next.js' roadmap and prioritize features.
#22 10.93 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:
#22 10.93 https://nextjs.org/telemetry
#22 10.93
#22 11.63    ▲ Next.js 14.1.4
#22 11.63    - Experiments (use at your own risk):
#22 11.63      · instrumentationHook
#22 11.63
#22 11.63    Skipping linting
#22 11.64    Checking validity of types ...
#22 111.8    Creating an optimized production build ...
#22 127.1 (node:42) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
#22 127.1 (Use `node --trace-deprecation ...` to show where the warning was created)
#22 230.1 Compiler server unexpectedly exited with code: null and signal: SIGILL
#22 230.3 npm notice
#22 230.3 npm notice New minor version of npm available! 10.7.0 -> 10.8.1
#22 230.3 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
#22 230.3 npm notice To update run: npm install -g [email protected]
#22 230.3 npm notice
#22 DONE 240.4s

#23 [runner  9/18] COPY --from=builder /app/next.config.mjs ./
#23 CACHED

#24 [runner 10/18] COPY --from=builder /app/public ./public
#24 CACHED

#25 [runner 11/18] COPY --from=builder /app/package.json ./package.json
#25 CACHED

#26 [runner 12/18] COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
#26 ERROR: failed to calculate checksum of ref 2dee697f-6f57-43fa-9adb-22eda0a62c4c::l4c3q8kq0xzhs7nalujvzvrcn: "/app/.next/standalone": not found

#27 [runner 13/18] COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
#27 ERROR: failed to calculate checksum of ref 2dee697f-6f57-43fa-9adb-22eda0a62c4c::l4c3q8kq0xzhs7nalujvzvrcn: "/app/.next/static": not found
------
 > [runner 12/18] COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./:
------
------
 > [runner 13/18] COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static:
------
Dockerfile:81
--------------------
  79 |     # https://nextjs.org/docs/advanced-features/output-file-tracing
  80 |     COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
  81 | >>> COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
  82 |     COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma
  83 |     COPY --from=builder --chown=nextjs:nodejs /app/init-db.sh ./init-db.sh
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 2dee697f-6f57-43fa-9adb-22eda0a62c4c::l4c3q8kq0xzhs7nalujvzvrcn: "/app/.next/static": not found

As i am unable to build the project and not much skilled enough to debug a Docker container, i extracted the '/app' folder from the official v0.6.6 image and replicated the environment on the host machine (running Arch Linux) according to the Dockerfile, before jumping into the core dump.

The 'code 0' is caused by the following crash:

$ node server.js
  ▲ Next.js 14.2.4
  - Local:        http:https://localhost:3000
  - Network:      http:https://0.0.0.0:3000

 ✓ Starting...
 ✓ Ready in 1723ms
Illegal instruction (core dumped)

Core dump

Going further, analysing the generated core dump, the backtrace points to the Sharp 'libvips-cpp.so.42' prebuilt as root cause of the crash.

Output of: "coredumpctl debug 2517"

$ coredumpctl debug 2517
           PID: 2517 (next-server (v)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 4 (ILL)
     Timestamp: Thu 2024-06-20 09:24:18 -03 (2min 3s ago)
  Command Line: $'next-server (v'
    Executable: /usr/bin/node
 Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/[email protected]
          Unit: [email protected]
     User Unit: [email protected]
         Slice: user-1000.slice
     Owner UID: 1000 (fuyukihidekii)
       Boot ID: 98e22fc87cd0402b94bcf6cd748772d1
    Machine ID: e4d25bfafac149ec84734fd07be7c045
      Hostname: RV415
       Storage: /var/lib/systemd/coredump/core.next-server\x20(v.0.98e22fc87cd0402b94bcf6cd748772d1.2517.1718886258000000.zst (present)
  Size on Disk: 18.7M
       Message: Process 2517 (next-server (v) of user 0 dumped core.

                Stack trace of thread 2517:
                #0  0x00007127af130d83 n/a (libvips-cpp.so.42 + 0x330d83)
                #1  0xaf13b8eb00000000 n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

GNU gdb (GDB) 14.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http:https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http:https://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/node...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Reading symbols from /root/.cache/debuginfod_client/49f9a337ee9f1d1c6cd93dd895e1be8ee782e9f3/debuginfo...

warning: Can't open file anon_inode:[io_uring] which was expanded to anon_inode:[io_uring] during file-backed mapping note processing
[New LWP 2517]
[New LWP 2524]
[New LWP 2552]
[New LWP 2550]
[New LWP 2530]
[New LWP 2528]
[New LWP 2531]
[New LWP 2540]
[New LWP 2522]
[New LWP 2523]
[New LWP 2518]
[New LWP 2529]
[New LWP 2527]
[New LWP 2539]
[New LWP 2521]
[New LWP 2525]
--Type <RET> for more, q to quit, c to continue without paging--
[New LWP 2519]
[New LWP 2526]
[New LWP 2520]
[New LWP 2583]
Downloading separate debug info for /opt/ztnet/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node
Downloading separate debug info for /opt/ztnet/node_modules/sharp/build/Release/sharp-linux-x64.node
Downloading separate debug info for /opt/ztnet/node_modules/sharp/build/Release/../.././vendor/8.14.5/linux-x64/lib/libvips-cpp.so.42
Downloading separate debug info for system-supplied DSO at 0x7127ccc8b000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `next-server (v'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x00007127af130d83 in ?? () from /opt/ztnet/node_modules/sharp/build/Release/../.././vendor/8.14.5/linux-x64/lib/libvips-cpp.so.42
--Type <RET> for more, q to quit, c to continue without paging--
[Current thread is 1 (Thread 0x7127ccad3240 (LWP 2517))]
(gdb) bt
#0  0x00007127af130d83 in ?? () from /opt/ztnet/node_modules/sharp/build/Release/../.././vendor/8.14.5/linux-x64/lib/libvips-cpp.so.42
#1  0x0000000000000000 in ?? ()
(gdb)

From there, having an idea of what is wrong on my end i proceeded to search about this lib in and the sharp project and i found out that:

Sharp requires an x86_64-v2 CPU in order to work properly with their prebuilt "libvips-cpp.so.42" [1].

Sharp can load the "libvips-cpp.so.42" from the "$PATH" if avaliable, instead of their prebuilt binary [2].

The solution

Installing libvips from the OS repositories before the ZTNET dependencies will do the trick on legacy CPUs that does not support the required features, without touching ZTNET code.

References

[1] Sharp documentation - prebuilt binaries; since the following PRs: lovell/sharp-libvips#88 & lovell/sharp-libvips#155

[2] Sharp documentation - custom libvips

@sinamics
Copy link
Owner

sinamics commented Jun 21, 2024

Thank you for the detailed report. I know that the Sharp package has caused issues for FreeBSD due to the libvips version. Since Next.js uses Sharp for the <Image> tag and I'm only using that tag for the logo, I can likely remove it and use a traditional <img> tag instead. This way, I can eliminate the Sharp package entirely.

@fuyukihidekii
Copy link
Author

Following your answer

Since Next.js uses Sharp for the <Image> tag and I'm only using that tag for the logo, I can likely remove it and use a traditional <img> tag instead. This way, I can eliminate the Sharp package entirely.

I removed libvips from the host machine and tried the following changes:

diff --git a/package.json b/package.json
index 8588d52..5b6a0dc 100644
--- a/package.json
+++ b/package.json
@@ -57,7 +57,6 @@
 		"react-dom": "18.2.0",
 		"react-hot-toast": "^2.4.0",
 		"react-timeago": "^7.1.0",
-		"sharp": "0.32.6",
 		"socket.io": "^4.7.2",
 		"socket.io-client": "^4.7.2",
 		"superjson": "1.9.1",
@@ -106,4 +105,4 @@
 	"prisma": {
 		"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
 	}
-}
\ No newline at end of file
+}
diff --git a/src/components/layouts/header.tsx b/src/components/layouts/header.tsx
index 29ed42f..465ef97 100644
--- a/src/components/layouts/header.tsx
+++ b/src/components/layouts/header.tsx
@@ -1,6 +1,5 @@
 import { useSession } from "next-auth/react";
 import { useTheme } from "next-themes";
-import Image from "next/image";
 import { globalSiteTitle } from "~/utils/global";
 import { useSidebarStore } from "~/utils/store";
 import ZtnetLogo from "docs/images/logo/ztnet_200x178.png";
@@ -30,11 +29,11 @@ const Header = () => {
 			<div className="header-content flex flex-row items-center">
 				<div className="hidden md:inline-flex">
 					<Link href="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/network" className="inline-flex flex-row items-center gap-2">
-						<Image
+						<img
 							style={{ width: 25, height: 25 }}
 							alt="ztnet logo"
 							title="ztnet logo"
-							src={ZtnetLogo}
+							src={ZtnetLogo.src}
 						/>
 						<span className="ml-1 text-2xl font-bold uppercase leading-10 text-accent">
 							{globalSiteTitle}

Probably isn't the 'proper way' but it worked out.

I'm able to build the project for standalone and docker now, and it doesn't crash upon login or interacting with the web interface.

Thanks!

fuyukihidekii added a commit to fuyukihidekii/ztnet that referenced this issue Jun 21, 2024
fuyukihidekii added a commit to fuyukihidekii/ztnet that referenced this issue Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support support request for ZTNET
Projects
None yet
Development

No branches or pull requests

2 participants