Forwarder debug: Difference between revisions

From lechacal
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
First of all connect to the emonWRT with SSH.
==Purpose==
Use [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe Putty] program if you are on windows. Just open a terminal in Linux. User is root and default password is admin.
If you run into problems it might useful to run the forwarder in debug mode. It will output verbosely if connections are sucessful and data from the EmontX received as normal.


You will need to issue the ps command to find the process number of the forwarder program:
==Steps==
$ ps | grep emon
1/ Connect to the EmonWRT with SSH.
Use [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe Putty] program if you are on windows.
If using Linux just open a terminal.
User is root and default password is admin.


From the output of this command you should see a line with /usr/bin/emonwrt_forwarder.sh. Take a note of the first number on that line (say it is 1280). It should look like:
2/ Stop the forwarder service like so
  1280 root      1536 S    {emonwrt_forward} /bin/sh /usr/bin/emonwrt_forwarder.sh
  $ /etc/init.d/emonwrt stop


then kill the process with:
3/ You can now run the process manually like so:
$ kill 1280
 
You can now run the process manually like so:
  $ /usr/bin/emonwrt_forwarder.sh -d
  $ /usr/bin/emonwrt_forwarder.sh -d


The forwarder will run and output debuging information in the terminal. You can stop it anytime using the Ctrl^C.
The forwarder will run and output debuging information in the terminal. You can stop it anytime using the Ctrl^C.


Restart the EmonWRT to resume to normal.
4/ You can then start the forwarder for normal operation again like so
$ /etc/init.d/emonwrt start

Latest revision as of 23:11, 4 June 2014

Purpose

If you run into problems it might useful to run the forwarder in debug mode. It will output verbosely if connections are sucessful and data from the EmontX received as normal.

Steps

1/ Connect to the EmonWRT with SSH. Use Putty program if you are on windows. If using Linux just open a terminal. User is root and default password is admin.

2/ Stop the forwarder service like so

$ /etc/init.d/emonwrt stop

3/ You can now run the process manually like so:

$ /usr/bin/emonwrt_forwarder.sh -d

The forwarder will run and output debuging information in the terminal. You can stop it anytime using the Ctrl^C.

4/ You can then start the forwarder for normal operation again like so

$ /etc/init.d/emonwrt start