datnus
September 16, 2022, 4:13am
#1
Hi all,
For ChirpStack v4, could we make something to install chirpstack-rest-api v4 via ‘sudo apt install chirpstack-rest-api’ in Ubuntu?
Or the only way to install is to build from source?
ChirpStack-rest-API: GitHub - chirpstack/chirpstack-rest-api: ChirpStack gRPC API to REST proxy.
Thanks a lot for your effort.
1 Like
martin
September 16, 2022, 9:05am
#2
Or maybe release package like with chirpstack-v3-to-v4 tool may be nicer, so you can just wget, unpack and install the service with pre-compiled binary?
brocaar
September 28, 2022, 8:26am
#3
Yes, that is the plan but I didn’t have time yet to integrate this properly in the build and release pipeline
3 Likes
datnus
September 30, 2022, 1:37am
#4
Let me try to build in Ubuntu.
The instruction seems for Docker.
Thanks a lot.
Hello,
I have issue when i try to compile the package.
opened 10:21PM - 29 Oct 22 UTC
Hello,
I am building againt ubuntu server 22 x86_64 GNU/Linux
I am not able … to build the binary. I have installed go, goreleaser, and build essential.
If a try a make:
main.go:17:2: import "github.com/chirpstack/chirpstack-rest-api/ui" is a program, not an importable package
If i try a make dist
⨯ release failed after 2m6s error=failed to build for linux_amd64_v1: exit status 1: go: downloading github.com/goreleaser/goreleaser v1.10.2
I try to understand how gRPC call works, but, I have only few hours left to change version from 3 to 4 and i want to use this to handle the gap for the moment. Can you help me ?
IvanP
November 2, 2022, 2:56pm
#6
Hello,
can you put step by step instruction for built on ubuntu, because when I try to build get error on every line that can find ./Makefile: line 30: go: command not found
./Makefile: line 32: devshell:: command not found …
Thank you
tiib
November 4, 2022, 10:19am
#7
go: command not found
seems like you do not have go installed or in your path.
The best way in my opinion to run or build the api is to use the docker-container and access it with make devshell
Inside the container you can then call the build command for example.
brocaar
November 16, 2022, 11:21am
#8
3 Likes
datnus
November 16, 2022, 3:19pm
#9
Awesome.
Let me test the REST API at weekend.
Thanks a lot for your great effort.
datnus
November 17, 2022, 9:42am
#10
Tested.
Working perfectly.
Just need to take note some parameters or endpoint urls or json format may change compared to v3.
The script for NGINX proxy.
location /rest-api/ {
proxy_pass http://localhost:8090/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
}
system
Closed
February 15, 2023, 9:43am
#11
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.