Skip to content

[Bug]: After updating the ztnet container, all the names of peers on the network were reset #719

@X3il

Description

@X3il

🐛 Describe the Bug

Inside the network, in the list of peers, after updating the ztnet container, all the names were reset, there are about 60 peers, the names are very important

🔍 Steps to Reproduce

  1. Logged into SSH on the host machine.
  2. Entered docker compose pull (it downloaded the updated ztnet image)
  3. Entered docker stop ztnet
  4. Entered docker rm ztnet
  5. Entered docker compose up -d (it reported that other containers were already enabled, and recreated the ztnet container)

🌐 Browser

Edge

🔧 Deployment Type

  • Docker
  • Standalone

✨ Expected Behavior

I think this happened because of errors in the indexes of queries from the database, or because of the "erasing" of these indexes in the database itself, I don't know

📋 ZTNET Logs

root@zerotier-controller:~# docker logs ztnet
Creating .env file...
Applying migrations to the database...
warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
For more information, see: https://pris.ly/prisma-config

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "ztnet", schema "public" at "postgres:5432"

44 migrations found in prisma/migrations


No pending migrations to apply.
Migrations applied successfully!
Seeding the database...
warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
For more information, see: https://pris.ly/prisma-config

Environment variables loaded from .env
Running seed command `ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts` ...
Seeding:: User Options complete!
Seeding:: Updating user ID complete!

🌱  The seed command has been executed.
Database seeded successfully!
Executing command
   ▲ Next.js 15.2.4
   - Local:        http://############:3000
   - Network:      http://############:3000

 ✓ Starting...
 ✓ Ready in 254ms
Creating .env file...
Applying migrations to the database...
warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
For more information, see: https://pris.ly/prisma-config

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "ztnet", schema "public" at "postgres:5432"

44 migrations found in prisma/migrations


No pending migrations to apply.
Migrations applied successfully!
Seeding the database...
warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
For more information, see: https://pris.ly/prisma-config

Environment variables loaded from .env
Running seed command `ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts` ...
Seeding:: User Options complete!
Seeding:: Updating user ID complete!

🌱  The seed command has been executed.
Database seeded successfully!
Executing command
   ▲ Next.js 15.2.4
   - Local:        http://############:3000
   - Network:      http://############:3000

 ✓ Starting...
 ✓ Ready in 217ms
Socket is initializing

🖼 Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions