Newbie. Can't seem to get it to even start up

91 views
Skip to first unread message

don

unread,
Oct 4, 2012, 5:44:28 PM10/4/12
to its-electr...@googlegroups.com
I'm quite sure I have the right IP address, not sure what I'm doing wrong... Get this from Terminal on my Mac:

Last login: Thu Oct  4 16:32:52 on ttys000
Dons-iMac-3:~ don$ cd desktop/its-electric
Dons-iMac-3:its-electric don$ java -jar its-electric-1.8.jar -g http://192.168.1.6 -m 1 -d its-electric-db
Oct 4, 2012 4:35:17 PM org.tupelo_schneck.electric.Main openEnvironment
INFO: Environment opened.
delete-until option would delete everything, ignoring
2012-10-04 16:35:17.749:INFO:oejs.Server:jetty-7.5.1.v20110908
2012-10-04 16:35:17.801:INFO:oejsh.ContextHandler:started o.e.j.s.ServletContextHandler{/,null}
2012-10-04 16:35:17.844:INFO:oejs.AbstractConnector:Started SelectChann...@0.0.0.0:8081 STARTING
java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:227)
at sun.net.www.http.HttpClient.New(HttpClient.java:300)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
at org.tupelo_schneck.electric.ImportIterator.<init>(ImportIterator.java:65)
at org.tupelo_schneck.electric.Main.changesFromImport(Main.java:235)
at org.tupelo_schneck.electric.Main$MultiImporter.runReal(Main.java:311)
at org.tupelo_schneck.electric.Main$MultiImporter.run(Main.java:283)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
j

Ron Knapp

unread,
Oct 4, 2012, 6:07:02 PM10/4/12
to its-electr...@googlegroups.com
192.168.1.6 is the ip of the ted 5000?


Here is start_apple.sh    that I used to run it on a mac it is an
old jar version so that would have to change.
a lot of these values are prob defaults and not needed, but I
think you need the -server option.




cd /opt/its-electric
exec /usr/bin/java -server -Xmx256m -Dorg.apache.commons.logging.Log=org.apache.
commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.defaultlog
=debug -jar /opt/its-electric/its-electric-1.7.4.jar -g http://192.168.1.75 -p 8
081 -m 4 -l stderr -u username /opt/its-electric/electricDb >> /opt/its-electric
/its-electric.log 2>&1 <<<password


--
You received this message because you are subscribed to the Google Groups "its-electric-software" group.
To view this discussion on the web visit https://groups.google.com/d/msg/its-electric-software/-/9dHoWM6yOAQJ.
To post to this group, send email to its-electr...@googlegroups.com.
To unsubscribe from this group, send email to its-electric-sof...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/its-electric-software?hl=en.

Robert Tupelo-Schneck

unread,
Oct 5, 2012, 12:23:03 AM10/5/12
to its-electr...@googlegroups.com
The "-g" option needs to match the "Footprints" web page for your
TED5000. What do you get when you put http://192.168.1.6 into a
browser?

Robert

don

unread,
Oct 5, 2012, 1:10:03 PM10/5/12
to its-electr...@googlegroups.com
I get the 'Footprints' Dashboard, everything works normally; kWh readings, history, etc.

Don

I tried leaving off the -g and got this:

Last login: Thu Oct  4 16:35:03 on ttys000
Dons-iMac-3:~ don$ cd desktop/its-electric
Dons-iMac-3:its-electric don$ java -jar its-electric-1.8.jar http://192.168.1.6 -m 1 -d its-electric-db
Oct 5, 2012 12:05:31 PM org.tupelo_schneck.electric.Main openEnvironment
INFO: Environment opened.
delete-until option would delete everything, ignoring
2012-10-05 12:05:32.113:INFO:oejs.Server:jetty-7.5.1.v20110908
2012-10-05 12:05:32.203:INFO:oejsh.ContextHandler:started o.e.j.s.ServletContextHandler{/,null}
2012-10-05 12:05:32.263:INFO:oejs.AbstractConnector:Started SelectChann...@0.0.0.0:8081 STARTING
java.net.UnknownHostException: TED5000
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)

Robert Tupelo-Schneck

unread,
Oct 5, 2012, 9:56:25 PM10/5/12
to its-electr...@googlegroups.com
So just to be clear... "http://192.168.1.6" in a browser gets
Footprints, but "java -jar its-electric-1.8.jar -g http://192.168.1.6
-m 1 -d its-electric-db" in Terminal gets the SocketTimeoutException?
On the same machine?

Robert
> --
> You received this message because you are subscribed to the Google Groups
> "its-electric-software" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/its-electric-software/-/R_gP5DTuuBwJ.

don

unread,
Oct 6, 2012, 1:32:23 AM10/6/12
to its-electr...@googlegroups.com
Yes same machine. Attached is a screen shot of the browser return. The terminal session has been copied and pasted from the same iMac. Fwiw, the MTU is connected via a Vonage router... I can't think what else might be a problem. Not really my field of expertise though... I assigned the TED a fixed IP in the router so it's always 192.168.1.6.
image.jpg

don

unread,
Oct 6, 2012, 1:37:21 AM10/6/12
to its-electr...@googlegroups.com

Of course now that I look at that screen shot I see that the address is 15.6 in the browser and not 1.6 like in the terminal...

Oops.

Don
Reply all
Reply to author
Forward
0 new messages