Utility to migate ChirpStack v3 data into ChirpStack v4.

ChirpStack v3 to v4 data-migration

This utilty migrates data from a single ChirpStack Application Server instance and one or multiple ChirpStack Network Server instances (in case of multiple-regions) into the new ChirpStack v4 data-structure.

Help:

Usage:
  chirpstack-v3-to-v4 [flags]

Flags:
      --as-config-file string         Path to chirpstack-application-server.toml configuration file
      --cs-config-file string         Path to chirpstack.toml configuration file
      --device-session-ttl-days int   Device-session TTL in days (default 31)
  -h, --help                          help for chirpstack-v3-to-v4
      --ns-config-file stringArray    Path to chirpstack-network-server.toml configuration file (can be repeated)

Usage example:

./chirpstack-v3-to-v4 \
	--cs-config-file /etc/chirpstack/chirpstack.toml \
	--as-config-file /etc/chirpstack-application-server/chirpstack-application-server.toml \
	--ns-config-file /etc/chirpstack-network-server/chirpstack-network-server.toml

Warning: only run this against an empty ChirpStack v4 database as this utilty will drop all tenants and users from the ChirpStack v4 database.

Building from source

For creating a snapshot release:

make snapshot

For creating a release:

make release
Owner
ChirpStack
ChirpStack open-source LoRaWAN Network Server
ChirpStack
Similar Resources

Simple utility to set the WSL2 subnet to a specific range

WSL subnet utility This is a small Go utility to set the WSL2 host and subnet. It achieves this by: deleting the existing WSL network creating a new o

Oct 22, 2022

DNS benchmarking utility For Golang

DNSBench — DNS benchmarking utility Installation go get -u github.com/leonklingele/dnsbench/... dnsbench -help Run benchmark dnsbench -domains google.

Apr 30, 2022

MAC Address & Prefix Utility for Go

macaddr MAC Address & Prefix Utility for Go Installation go get -d github.com/thatmattlove/go-macaddr Usage Single MAC Address mac, err := macaddr.Pa

Feb 7, 2022

Fetch-npm-package - A small utility that can be used to fetch a given version of a NPM package

Use fetch-npm-package package version output-dir E.g. fetch-npm-package is

May 21, 2022

A little library for turning TCP connections into go channels.

netutils By Tim Henderson ([email protected]) This is a little library that was part of a larger project that I decided to pull out and make public.

Aug 13, 2020

turn a directory into a GUI, slash example of VNC-based GUI

dirgui @rsnous on Jan 11, 2021: "idea: filesystem-GUI adapter, where a directory turns into a form, executable files inside that directory turn into

May 3, 2022

Deskreen turns any device with a web browser into a secondary screen for your computer

Deskreen turns any device with a web browser into a secondary screen for your computer

Deskreen Website: https://deskreen.com ▶️ Deskreen Youtube channel (video tutorials, demos, use cases for Deskreen day to day usage) Deskreen turns an

Jan 7, 2023

wire protocol for multiplexing connections or streams into a single connection, based on a subset of the SSH Connection Protocol

qmux qmux is a wire protocol for multiplexing connections or streams into a single connection. It is based on the SSH Connection Protocol, which is th

Dec 26, 2022

Connect your devices into a single private WireGuard®-based mesh network.

Wiretrustee A WireGuard®-based mesh network that connects your devices into a single private network. Why using Wiretrustee? Connect multiple devices

Dec 31, 2022
Comments
  • Migrate between docker-compose stacks

    Migrate between docker-compose stacks

    Hi there,

    anyone tried to migrate from an current Chirpstack 3 dockerstack to new Chirpstack 4 dockerstack? Currently i merged both verions (3 and 4) into one stack with many services and linked the config files to the new application service from Chirpstack 4... But as user nobody i cant execute the migration script, from outside the stack i cant reach the services /destinations inside the stack, for example the postgres host - currently i have not further ideas. Running the docker-compose file from this repo the image is created but i have no clue how to use it exactly maybe with docker run and some paths and options??

    Thanks in advance.

  • Migration tool is not working

    Migration tool is not working

    ./chirpstack-v3-to-v4 --as-config-file /etc/chirpstack-application-server/chirpstack-application-server.toml --ns-config-file /etc/chirpstack-network-server/chirpstack-network-server.toml --cs-config-file /etc/chirpstack/chirpstack.toml
    2022/10/10 16:15:30 Reading ChirpStack configuration file: /etc/chirpstack/chirpstack.toml
    2022/10/10 16:15:30 Reading AS configuration file: /etc/chirpstack-application-server/chirpstack-application-server.toml
    2022/10/10 16:15:30 Deleting users and tenants from target database
    2022/10/10 16:15:30 Migrating users
    2022/10/10 16:15:30 Migrating organizations
    2022/10/10 16:15:30 Migrating organization users
    2022/10/10 16:15:30 Migrating applications
    2022/10/10 16:15:30 Reading NS configuration file: /etc/chirpstack-network-server/chirpstack-network-server.toml
    2022/10/10 16:15:30 Migrating gateways
    2022/10/10 16:15:30 Migrating device-profiles
    panic: sql: no rows in result set
    
    goroutine 1 [running]:
    main.migrateDeviceProfiles()
            /chirpstack-v3-to-v4/main.go:549 +0x7cc
    main.run(0xa6a4b0, {0x1d24540, 0x0, 0x6})
            /chirpstack-v3-to-v4/main.go:113 +0x37c
    github.com/spf13/cobra.(*Command).execute(0xa6a4b0, {0x1d020c8, 0x6, 0x7})
            /go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x6b0
    github.com/spf13/cobra.(*Command).ExecuteC(0xa6a4b0)
            /go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x414
    github.com/spf13/cobra.(*Command).Execute(...)
            /go/pkg/mod/github.com/spf13/[email protected]/command.go:902
    main.main()
            /chirpstack-v3-to-v4/main.go:79 +0x20
    
Capdns is a network capture utility designed specifically for DNS traffic. This utility is based on tcpdump.
Capdns is a network capture utility designed specifically for DNS traffic. This utility is based on tcpdump.

Capdns is a network capture utility designed specifically for DNS traffic. This utility is based on tcpdump. Some of its features include: Unde

Feb 26, 2022
Web app utility to get server list data from Minecraft servers.

Ping Web app utility to get server list data from Minecraft servers. Avalible at https://ping.turtley12.dev/app, Running yourself Before compiling and

Dec 21, 2021
RuuviBridge - Utility to bridge RuuviTag data between various sources and consumers

RuuviBridge RuuviBridge is designed to act as a "data bridge" between various so

Nov 19, 2022
Node for providing data into Orakuru network

Orakuru's crystal-ball Node for providing data into Orakuru network. Configuration Crystal-ball uses environment variables and configuration files for

Jan 20, 2022
Simple, yet powerful Adcell go client to import data feeds into you projects.
 Simple, yet powerful Adcell go client to import data feeds into you projects.

adcell-go Simple, yet powerful Adcell go client to import data feeds into you projects. Explore the docs » View Demo · Report Bug · Request Feature Ta

Oct 31, 2021
Reads MAWS formatted data and converts it into JSON output stream.

maws2json Usage examples Over serial line (stdin pipe) Lets assume that Vaisala weather station is connected via RS232 to USB serial dongle in /dev/tt

Feb 6, 2022
Data Connector is a Google Sheets Add-on that lets you import (and export) data to/from Google Sheets

Data Connector Data Connector is a Google Sheets Add-on that lets you import (and export) data to/from Google Sheets. Our roadmap: Connect to JSON/XML

Jul 30, 2022
Tiny utility to download file from GitHub

gget I needed a way to download file from GitHub without going to its raw version and I made this tiny program. If there is a way to do it with a cURL

Apr 16, 2022