gotthardp / lorawan-server

Compact server for private LoRaWAN networks
https://gotthardp.github.io/lorawan-server
MIT License
956 stars 329 forks source link

installation on Raspberry Pi 2 Latest Jessie Fails. #160

Closed Rustie0125 closed 7 years ago

Rustie0125 commented 7 years ago

Non of the menthods used in the installation guides works correctly. fresh jessie install run the package as follows but nothing Get the latest sources by:

git clone https://github.com/gotthardp/lorawan-server.git cd lorawan-server If you already obtained the sources you can upgrade to the latest version by:

cd lorawan-server git pull make upgrade Then build and release the lorawan-server by:

make release

does not succesfully upgrade or release

gotthardp commented 7 years ago

You mean new installation or upgrade? Upgrade is broken I know.

Rustie0125 commented 7 years ago

New install

Please safe our environment and do not print this email.

On Jul 15, 2017, at 00:25, Petr Gotthard notifications@github.com wrote:

You mean new installation or upgrade? Upgrade is broken I know.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Rustie0125 commented 7 years ago

It might be something im doing wrong but i have tried it a few times and get different results. the installation and running for Linux instructions is not very clear.

gotthardp commented 7 years ago

What errors are you getting from the apt-get install?

Rustie0125 commented 7 years ago

Following the instructions from the top this is the result to the first command root@raspberrypi:~# lorawan-server-0.4.6.deb -bash: lorawan-server-0.4.6.deb: command not found root@raspberrypi:~# root@raspberrypi:~# -bash: root@raspberrypi:~#: command not found root@raspberrypi:~#

When following the the steps for linux binary this is result.

lib/worker_pool-2.2.3/ebin/wpool_time_checker.beam lib/worker_pool-2.2.3/ebin/wpool_utils.beam lib/worker_pool-2.2.3/ebin/wpool_worker.beam releases/0.4.6/vm.args root@raspberrypi:~/lorawan-server# bin/lorawan-server bin/lorawan-server: 24: bin/lorawan-server: erl: not found root@raspberrypi:~/lorawan-server#

Rustie0125 commented 7 years ago

I reloaded the image onto the PI and started again. When i run the command to start the server i get the following result.

root@raspberrypi:~/lorawan-server# bin/lorawan-server -bash: root@raspberrypi:~/lorawan-server#: No such file or directory root@raspberrypi:~/lorawan-server# {"init terminating in do_boot",{{badmatch,{error,{lorawan_server,{bad_return,{{lorawan_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,prerequisite_failed}},[{lorawan_app,start,2,[{file,"/home/travis/build/gotthardp/lorawan-server/_build/default/lib/lorawan_server/src/lorawan_app.erl"},{line,19}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}}},[{lorawan_app,start,0,[{file,"/home/travis/build/gotthardp/lorawan-server/_build/default/lib/lorawan_server/src/lorawan_app.erl"},{line,16}]},{init,start_it,1,[]},{init,start_em,1,[]}]}} -bash: init terminating in do_boot: command not found root@raspberrypi:~/lorawan-server# root@raspberrypi:~/lorawan-server# Crash dump was written to: erl_crash.dump -bash: Crash: command not found root@raspberrypi:~/lorawan-server# init terminating in do_boot () -bash: syntax error near unexpected token(' root@raspberrypi:~/lorawan-server# root@raspberrypi:~/lorawan-server# -bash: root@raspberrypi:~/lorawan-server#: No such file or directory root@raspberrypi:~/lorawan-server# `

gotthardp commented 7 years ago

First of all, if you are using the .deb image, install it using sudo dpkg -i /path/to/deb/file and start it by systemctl start lorawan-server. The bin/lorawan-server command is intended for those who are not using the .deb package.

Rustie0125 commented 7 years ago

Hi Petr

Thank you for the reply, I have tried both mentioned neither works.

Please safe our environment and do not print this email.

On Jul 18, 2017, at 17:28, Petr Gotthard notifications@github.com wrote:

First of all, if you are using the .deb image, install it using sudo dpkg -i /path/to/deb/file and start it by systemctl start lorawan-server. The bin/lorawan-server command is intended for those who are not using the .deb package.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

gotthardp commented 7 years ago

If you share with me with the details (the error logs) I may be able to help you.

Rustie0125 commented 7 years ago

I tried to find the erl_dump file reported in the log but could not find it manually or with file search via winSCP

On Tue, Jul 18, 2017 at 5:52 PM, Petr Gotthard notifications@github.com wrote:

If you share with me with the details (the error logs) I may be able to help you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316109017, or mute the thread https://github.com/notifications/unsubscribe-auth/Aaphcmv_svhEqHSVgqKp_1DDW80s1SLJks5sPNTRgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

Could you please:

Do NOT try anything else, otherwise you mess up the logs and everything.

Rustie0125 commented 7 years ago

following the steps above seems to produce no errors, but when i try open the webpage on any of the following it does not work. 192.168.11.17:8080 192.168.11.17:1680

gotthardp commented 7 years ago

Please try systemctl status lorawan-server to get some info on the service

Rustie0125 commented 7 years ago

in the log files same error is reported as before.

2017-07-19 04:46:39.693 [error] <0.120.0> CRASH REPORT Process <0.120.0> with 0 neighbours exited with reason: no match of right hand value {error,prerequisite_failed} in lorawan_app:start/2 line 19 in application_master:init/4 line 133 2017-07-19 04:48:54.526 [error] <0.120.0> CRASH REPORT Process <0.120.0> with 0 neighbours exited with reason: no match of right hand value {error,prerequisite_failed} in lorawan_app:start/2 line 19 in application_master:init/4 line 133 2017-07-19 04:53:24.165 [error] <0.120.0> CRASH REPORT Process <0.120.0> with 0 neighbours exited with reason: no match of right hand value {error,prerequisite_failed} in lorawan_app:start/2 line 19 in application_master:init/4 line 133

Rustie0125 commented 7 years ago

in the crash log

2017-07-19 04:53:24 =CRASH REPORT==== crasher: initial call: application_master:init/4 pid: <0.120.0> registered_name: [] exception exit: {{bad_return,{{lorawan_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,prerequisite_failed}},[{lorawan_app,start,2,[{file,"/home/travis/build/gotthardp/lorawan-server/_build/default/lib/lorawan_server/src/lorawan_app.erl"},{line,19}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]} ancestors: [<0.119.0>] messages: [{'EXIT',<0.121.0>,normal}] links: [<0.119.0>,<0.7.0>] dictionary: [] trap_exit: true status: running heap_size: 987 stack_size: 27 reductions: 178 neighbours:

Rustie0125 commented 7 years ago

result.

● lorawan-server.service - LoRaWAN Server

Loaded: loaded (/lib/systemd/system/lorawan-server.service; disabled)

Active: inactive (dead)

On Wed, Jul 19, 2017 at 7:36 AM, Petr Gotthard notifications@github.com wrote:

Please try systemctl status lorawan-server to get some info on the service

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316277874, or mute the thread https://github.com/notifications/unsubscribe-auth/Aaphcvwryil570gZAMcM5TIz4_Hhga1Jks5sPZXQgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

Prerequisite failed means you have old Erlang. Version 19 or higher is required.

Rustie0125 commented 7 years ago

okay installing erlang again

On Wed, Jul 19, 2017 at 7:45 AM, Petr Gotthard notifications@github.com wrote:

Prerequisite failed means you have old Erlang. Version 19 or higher is required.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316279054, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphckFMrq-osSxtVIYyI5wLwr4Zeq6kks5sPZf1gaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

Rustie0125 commented 7 years ago

So Erlang install reports " latest version installed "

when i run the server and check state this is result .

pi@raspberrypi:~ $ sudo systemctl status lorawan-server

● lorawan-server.service - LoRaWAN Server

Loaded: loaded (/lib/systemd/system/lorawan-server.service; disabled)

Active: active (running) since Wed 2017-07-19 05:47:06 UTC; 2s ago

Process: 6170 ExecStop=/usr/lib/lorawan-server/bin/lorawanctl stop

(code=exited, status=0/SUCCESS)

Main PID: 6245 (lorawan-server)

CGroup: /system.slice/lorawan-server.service

       ├─6245 /bin/sh /usr/lib/lorawan-server/bin/lorawan-server

       ├─6254 /usr/lib/erlang/erts-6.2/bin/beam.smp -Bd -- -root

/usr/lib/erlang -progname erl -- -home /var/lib/lorawan-server -- -noshell -n...

       └─6261 /usr/lib/erlang/erts-6.2/bin/epmd -daemon

Jul 19 05:47:06 raspberrypi systemd[1]: Started LoRaWAN Server.

Jul 19 05:47:08 raspberrypi lorawan-server[6245]: {"init terminating in

do_boot",{{badmatch,{error,{lorawan_server,{bad_return,{{lorawan_ap...},{line

Hint: Some lines were ellipsized, use -l to show in full.

When i check Status again, result is

pi@raspberrypi:~ $ sudo systemctl status lorawan-server

● lorawan-server.service - LoRaWAN Server

Loaded: loaded (/lib/systemd/system/lorawan-server.service; disabled)

Active: failed (Result: exit-code) since Wed 2017-07-19 05:47:13 UTC;

1min 2s ago

Process: 6290 ExecStop=/usr/lib/lorawan-server/bin/lorawanctl stop

(code=exited, status=0/SUCCESS)

Process: 6245 ExecStart=/usr/lib/lorawan-server/bin/lorawan-server

(code=exited, status=1/FAILURE)

Main PID: 6245 (code=exited, status=1/FAILURE)

Jul 19 05:47:06 raspberrypi systemd[1]: Started LoRaWAN Server.

Jul 19 05:47:08 raspberrypi lorawan-server[6245]: {"init terminating in

do_boot",{{badmatch,{error,{lorawan_server,{bad_return,{{lorawan_ap...},{line

Jul 19 05:47:12 raspberrypi lorawan-server[6245]: Crash dump was written

to: erl_crash.dump

Jul 19 05:47:12 raspberrypi lorawan-server[6245]: init terminating in

do_boot ()

Jul 19 05:47:12 raspberrypi systemd[1]: lorawan-server.service: main

process exited, code=exited, status=1/FAILURE

Jul 19 05:47:12 raspberrypi lorawanctl[6290]: lorawan@raspberrypi command

failed: nodedown

Jul 19 05:47:13 raspberrypi systemd[1]: Unit lorawan-server.service entered

failed state.

Hint: Some lines were ellipsized, use -l to show in full.

On Wed, Jul 19, 2017 at 7:46 AM, Johann van Niekerk johann0125@gmail.com wrote:

okay installing erlang again

On Wed, Jul 19, 2017 at 7:45 AM, Petr Gotthard notifications@github.com wrote:

Prerequisite failed means you have old Erlang. Version 19 or higher is required.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316279054, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphckFMrq-osSxtVIYyI5wLwr4Zeq6kks5sPZf1gaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

It means latest package not latest erlang. Here https://www.erlang-solutions.com/resources/download.html are instructions on how to install v19 or v20.

Rustie0125 commented 7 years ago

installed latest erlang but getting same error. going to start fresh install, erlang first then lorawan server and see. will let you know

On Wed, Jul 19, 2017 at 7:54 AM, Petr Gotthard notifications@github.com wrote:

It means latest package not latest erlang. Here https://www.erlang-solutions.com/resources/download.html are instructions on how to install v19 or v20.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316280320, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcheTR5XbxFdzF198VmgXUHgHpvgzks5sPZoXgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

To double check please type erl. This will type version info.

Rustie0125 commented 7 years ago

Hi Petr

I have no idea what is going on. New install updated the pi, update erlang to 20 installed the lorawan.deb when i run the command to start get the following.

Length: 2806738 (2.7M) [application/octet-stream]

Saving to: ‘lorawan-server_0.4.7_all.deb’

lorawan-server_0.4.7_all.deb 100%[==========================================================================================================================================>] 2.68M 298KB/s in 10s

2017-07-19 06:45:21 (265 KB/s) - ‘lorawan-server_0.4.7_all.deb’ saved [2806738/2806738]

pi@raspberrypi:~ $ sudo erl

Erlang/OTP 20 [erts-9.0] [source] [smp:4:4] [ds:4:4:10] [async-threads:10]

[hipe] [kernel-poll:false]

Eshell V9.0 (abort with ^G)

1>

[2]+ Stopped sudo erl

pi@raspberrypi:~ $ sudo systemctl start lorawan-server

Failed to start lorawan-server.service: Unit lorawan-server.service failed

to load: No such file or directory.

pi@raspberrypi:~ $ sudo systemctl start lorawan-server

Failed to start lorawan-server.service: Unit lorawan-server.service failed

to load: No such file or directory.

pi@raspberrypi:~ $

On Wed, Jul 19, 2017 at 8:28 AM, Petr Gotthard notifications@github.com wrote:

To double check please type erl. This will type version info.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316285530, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcjN1YBCQWVOqkJSo-X1p2mLOC3Mpks5sPaIVgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

Rustie0125 commented 7 years ago

After reboot

pi@raspberrypi:~ $ sudo systemctl start lorawan-server

pi@raspberrypi:~ $ sudo systemctl status lorawan-server

● lorawan-server.service - LoRaWAN Server

Loaded: loaded (/lib/systemd/system/lorawan-server.service; disabled)

Active: failed (Result: exit-code) since Wed 2017-07-19 07:12:37 UTC;

29s ago

Process: 1199 ExecStop=/usr/lib/lorawan-server/bin/lorawanctl stop

(code=exite d, status=217/USER)

Process: 1197 ExecStart=/usr/lib/lorawan-server/bin/lorawan-server

(code=exite d, status=217/USER)

Main PID: 1197 (code=exited, status=217/USER)

Jul 19 07:12:37 raspberrypi systemd[1]: Started LoRaWAN Server.

Jul 19 07:12:37 raspberrypi systemd[1]: lorawan-server.service: main

process...R

Jul 19 07:12:37 raspberrypi systemd[1]: lorawan-server.service: control

proc...7

Jul 19 07:12:37 raspberrypi systemd[1]: Unit lorawan-server.service

entered ....

Hint: Some lines were ellipsized, use -l to show in full.

pi@raspberrypi:~ $

On Wed, Jul 19, 2017 at 8:48 AM, Johann van Niekerk johann0125@gmail.com wrote:

Hi Petr

I have no idea what is going on. New install updated the pi, update erlang to 20 installed the lorawan.deb when i run the command to start get the following.

Length: 2806738 (2.7M) [application/octet-stream]

Saving to: ‘lorawan-server_0.4.7_all.deb’

lorawan-server_0.4.7_all.deb 100%[====================================================== ====================================================================================>] 2.68M 298KB/s in 10s

2017-07-19 06:45:21 (265 KB/s) - ‘lorawan-server_0.4.7_all.deb’ saved [2806738/2806738]

pi@raspberrypi:~ $ sudo erl

Erlang/OTP 20 [erts-9.0] [source] [smp:4:4] [ds:4:4:10] [async-threads:10]

[hipe] [kernel-poll:false]

Eshell V9.0 (abort with ^G)

1>

[2]+ Stopped sudo erl

pi@raspberrypi:~ $ sudo systemctl start lorawan-server

Failed to start lorawan-server.service: Unit lorawan-server.service failed

to load: No such file or directory.

pi@raspberrypi:~ $ sudo systemctl start lorawan-server

Failed to start lorawan-server.service: Unit lorawan-server.service failed

to load: No such file or directory.

pi@raspberrypi:~ $

On Wed, Jul 19, 2017 at 8:28 AM, Petr Gotthard notifications@github.com wrote:

To double check please type erl. This will type version info.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316285530, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcjN1YBCQWVOqkJSo-X1p2mLOC3Mpks5sPaIVgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

What the error log says, please?

Rustie0125 commented 7 years ago

Where are they located again ?

On Wed, Jul 19, 2017 at 9:34 AM, Petr Gotthard notifications@github.com wrote:

What the error log says, please?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316298397, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcrgP_4HIvo82zB0jGhl4pFHE_8hBks5sPbFzgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

Rustie0125 commented 7 years ago

dont think the log files was created can not find them anywhere

On Wed, Jul 19, 2017 at 10:37 AM, Johann van Niekerk johann0125@gmail.com wrote:

Where are they located again ?

On Wed, Jul 19, 2017 at 9:34 AM, Petr Gotthard notifications@github.com wrote:

What the error log says, please?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316298397, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcrgP_4HIvo82zB0jGhl4pFHE_8hBks5sPbFzgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

Logs should be in /var/lib/lorawan-server/...

Rustie0125 commented 7 years ago

there is no lorawan file under that path

On Wed, Jul 19, 2017 at 11:29 AM, Petr Gotthard notifications@github.com wrote:

Logs should be in /var/lib/lorawan-server/...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316327589, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcvjL4RYvt15I7FR6Y1FSnzTmZBxOks5sPcxwgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

Rustie0125 commented 7 years ago

used a new image on a new SD and tried the binary release installation method. everthing installs fine when i run the server get the same error as other method. as follows.

pi@raspberrypi:~/lorawan-server $ sudo bin/lorawan-server

{"init terminating in do_boot",{{badmatch,{error,{lorawan_server,{bad_return,{{lorawan_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,prerequisite_failed}},[{lorawan_app,start,2,[{file,"/home/travis/build/gotthardp/lorawan-server/_build/default/lib/lorawan_server/src/lorawan_app.erl"},{line,19}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}}},[{lorawan_app,start,0,[{file,"/home/travis/build/gotthardp/lorawan-server/_build/default/lib/lorawan_server/src/lorawan_app.erl"},{line,16}]},{init,start_it,1,[]},{init,start_em,1,[]}]}} Crash dump was written to: erl_crash.dump init terminating in do_boot () pi@raspberrypi:~/lorawan-server $

On Wed, Jul 19, 2017 at 11:39 AM, Johann van Niekerk johann0125@gmail.com wrote:

there is no lorawan file under that path

On Wed, Jul 19, 2017 at 11:29 AM, Petr Gotthard notifications@github.com wrote:

Logs should be in /var/lib/lorawan-server/...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316327589, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcvjL4RYvt15I7FR6Y1FSnzTmZBxOks5sPcxwgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

The same error has the same reason-- old Erlang. Could it be you have two erlangs installed?

Rustie0125 commented 7 years ago

So I rolled back to 19.2 erlang on fresh install and it worked this time.

On Wed, Jul 19, 2017 at 11:54 AM, Petr Gotthard notifications@github.com wrote:

The same error has the same reason-- old Erlang. Could it be you have two erlangs installed?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316334252, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcuUyoqu_m57_PApa-3Uq7SdADWaSks5sPdJlgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

Cool. Glad it works.

Rustie0125 commented 7 years ago

Hi Petr

Have you looked into writing a packet forwarder for the IC880A host system ? the ISMT exmaples does not have a packet forwarder and the TTN packet forwarder seems over kill for what it needs todo, I have tried to modify the TTN release to work with your server with no luck....

On Wed, Jul 19, 2017 at 4:34 PM, Petr Gotthard notifications@github.com wrote:

Cool. Glad it works.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316407259, or mute the thread https://github.com/notifications/unsubscribe-auth/Aaphcj1nrzA8BqWek4RXhbABiLWgvedEks5sPhQGgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

The IC880A should be compatible with https://github.com/Lora-net/packet_forwarder. Also, the TTN gateway software is just a fork of that. All forks of the packet_forwarder are compatible with my server. I do not consider developing another GW software.

Rustie0125 commented 7 years ago

i have tried setting up the global.conf file of the TTN fork to point at the IP address of your server and 8080 port but it does not register on your server. The GW EUI has been updated to to the MAc generated EUI in the Global file aswell where else does it need to be changed to work with your private server ?

I have a IC880A with a Pi 2 Host succesfuuly connected to TTN, on the same network your server is running, I have added the EUI to the server but not sure what is required by "NetID" ?

On Thu, Jul 20, 2017 at 9:11 AM, Petr Gotthard notifications@github.com wrote:

The IC880A should be compatible with https://github.com/Lora-net/ packet_forwarder. Also, the TTN gateway software is just a fork of that. All forks of the packet_forwarder are compatible with my server. I do not consider developing another GW software.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316617225, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcrCVh1E_m4ul01O6wkGMhn4RBpQdks5sPv25gaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

The port 1680 is used for the packet_forwarder

Rustie0125 commented 7 years ago

I Have tried 1680 before, and now again to confirm, The Gateway EUI has been updated in the global and local json file. the server is pointing at the local server IP address. when i reboot the system it connects to TTN server but no luck on the local server. Iv added a gateway on the local server with the same EUI namely" B827EBFFFEE37A71" but i have no idea what to input on NetID? and i see its mandatory

On Thu, Jul 20, 2017 at 10:25 AM, Petr Gotthard notifications@github.com wrote:

The port 1680 is used for the packet_forwarder

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316633476, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcjDq2TttJCx0cmx4TBB3afE2fqVtks5sPw70gaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

NetID can be e.g. 000000.

Rustie0125 commented 7 years ago

No Response

have a look at the screen shots attached. will the gateway be able to be connected to TTN and local server simultaneously.?

thank you for the help

On Thu, Jul 20, 2017 at 10:54 AM, Petr Gotthard notifications@github.com wrote:

NetID can be e.g. 000000.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316640752, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcjyHa_qmNUFSX40mTSZ2-lNjfTnzks5sPxXTgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

The gateway can connect to one server only. (I don't see any screenshots attached,)

Rustie0125 commented 7 years ago

thats strange, they are attached ? PNGs

So What iv done sofar, the Server is running on a Pi plugged into the network 192.168.11.17 the TTN packet forwarder is installed on another pi with the IC880A gateway. in the /opt/ttn-gateway/packet_forwarder/basic_pkt_fwd directory in the global_conf, I changed to the following

"gateway_conf": {

    "gateway_ID": "B827EBFFFEE37A71",
    /* change with default server address/ports, or overwrite in

local_conf.json / "server_address": "192.168.11.17", "serv_port_up": 1680, "serv_port_down": 1680, / adjust the following parameters for your network / "keepalive_interval": 10, "stat_interval": 30, "push_timeout_ms": 100, / forward only valid packets */ "forward_crc_valid": true, "forward_crc_error": false, "forward_crc_disabled": false } }

Saved and restarted the the gateway with connection to the internet turned off (NO TTN access) but still no luck on the server.

On Thu, Jul 20, 2017 at 11:14 AM, Petr Gotthard notifications@github.com wrote:

The gateway can connect to one server only. (I don't see any screenshots attached,)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316646030, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcogyMx2YwluzfaCarQiWwJVHQM3Aks5sPxqIgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

Rustie0125 commented 7 years ago

Hi Petr

I managed to get the gateway talking to the private server, I have registered a node on the server and can see in the log that there is errors in the config like "bad_mic" is there a manual for the web application or tutorial on the interface?

On Thu, Jul 20, 2017 at 11:36 AM, Johann van Niekerk johann0125@gmail.com wrote:

thats strange, they are attached ? PNGs

So What iv done sofar, the Server is running on a Pi plugged into the network 192.168.11.17 the TTN packet forwarder is installed on another pi with the IC880A gateway. in the /opt/ttn-gateway/packet_forwarder/basic_pkt_fwd directory in the global_conf, I changed to the following

"gateway_conf": {

    "gateway_ID": "B827EBFFFEE37A71",
    /* change with default server address/ports, or overwrite in

local_conf.json / "server_address": "192.168.11.17", "serv_port_up": 1680, "serv_port_down": 1680, / adjust the following parameters for your network / "keepalive_interval": 10, "stat_interval": 30, "push_timeout_ms": 100, / forward only valid packets */ "forward_crc_valid": true, "forward_crc_error": false, "forward_crc_disabled": false } }

Saved and restarted the the gateway with connection to the internet turned off (NO TTN access) but still no luck on the server.

On Thu, Jul 20, 2017 at 11:14 AM, Petr Gotthard notifications@github.com wrote:

The gateway can connect to one server only. (I don't see any screenshots attached,)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316646030, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcogyMx2YwluzfaCarQiWwJVHQM3Aks5sPxqIgaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

There is nothing beyond the documents in the doc folder. The error you have means you misconfigured the security keys.

Rustie0125 commented 7 years ago

Okay thank you.

I am in the process of trying the binary for windows. I have installed Erlang. but the instruction does not explain how to install or unpack the lorawan server on windows. running bin/lorawan-service.bat in erlang does nothing as expected

On Fri, Jul 21, 2017 at 8:29 AM, Petr Gotthard notifications@github.com wrote:

There is nothing beyond the documents in the doc folder. The error you have means you misconfigured the security keys.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316915967, or mute the thread https://github.com/notifications/unsubscribe-auth/Aaphct8R5wDvRewHPsbgGFcORj5fEhBJks5sQEVegaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

There are instructions even for Windows: https://github.com/gotthardp/lorawan-server/blob/master/doc/Installation.md#using-the-binary-release-on-windows

Rustie0125 commented 7 years ago

Yes that is the instructions that make no sense and is incomplete

On Fri, Jul 21, 2017 at 10:24 AM, Petr Gotthard notifications@github.com wrote:

There are instructions even for Windows: https://github.com/gotthardp/ lorawan-server/blob/master/doc/Installation.md#using-the- binary-release-on-windows

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gotthardp/lorawan-server/issues/160#issuecomment-316938302, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphcsMgZUDJwBf9KKjNQpoQhPtZu-Enks5sQGA9gaJpZM4OYNBP .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

gotthardp commented 7 years ago

Nothing is perfect, but comments like yours are not constructive. Several people successfully installed the server based on these instructions, so they are not rubbish. If you want me to help you, you should help me by providing following the available guidelines and let me know in which step you got some failure.

Rustie0125 commented 7 years ago

Petr

I understand that but sending you mail and saying that the instructions is not sufficient and you sending the same link back saying here is the instruction is not helpful either.

You binary windows instructions says 1) "install Erlang" 2) "unpack the release " what release ? Link? After unzipping what do I do with that file? Double click on bat file? Past folder into specific directory ? 3) " run by " bin/lorawan-server.bat Copy and past " bin/LoraWAN-server.bat" into Erlang? Copy and past into win CMD? After bat file is run. How do you access the webpage ?what will default IP be?

Server configuration. Does the LoraWAN-server/releases//says.config refer to windows build , Linux or Mac ?

The over all steps is incomplete to help a noob getting the server running.

Please safe our environment and do not print this email.

On Jul 21, 2017, at 10:54, Petr Gotthard notifications@github.com wrote:

Nothing is perfect, but comments like yours are not constructive. Several people successfully installed the server based on these instructions, so they are not rubbish. If you want me to help you, you should help me by providing following the available guidelines and let me know in which step you got some failure.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

gotthardp commented 7 years ago

I made some amendments to the documentation to make it more clear: