Migration 3 to 4

Hi
I have few questions from v3 to v4 migration - ChirpStack open-source LoRaWAN® Network Server documentation
I have old server version 3.14.8 (app, net, gw) and NEW with v4 latest update

RUN script
./dist/chirpstack-v3-to-v4_linux_amd64_v1/chirpstack-v3-to-v4 --cs-config-file /etc/chirpstack/chirpstack.toml --as-config-file /tmp/chirpstack-application-server.toml --ns-config-file /tmp/chirpstack-network-server.toml --drop-tenants-and-users

  1. I don;t understand if chirpstack-v3-to-v4 script should be run on NEW server? Or I have to have both version onone server?
  2. Where are the IPs of OLD server ,when in chirpstack-application-server.toml are only localhost records, then NEW server don’t know how to connnect to remote (OLD) DB

Sorry for dumb questions, maybe I missed something.

hi,

for your questions:

1.) you run the migration script on the new server. for me, the command you showed under “RUN script” is good. And you only need the new chirpstack server installed there (v4)

2.) if you only use localhost records, you need to edit your v3 config files ( chirpstack-application-server.toml and chirpstack-network-server.toml. Because the migrate utility reads the information from these config files (password, user, old database). Maybe also redis.

make sure you have access from the new server to the old database (firewall, pg_hba)

regards,
Sil

Hi Sil, thank for answer, I changed every record of localhost or 0.0.0.0 to 192.168.100.2 and firs step of migration was done , but second not