New stoker-web


 
Also, are you getting anything in the stokerweblogs/cookLogs directory?

I cannot find a file anywhere named cookLog, cookLogs, cooklog, etc, nor a dir named stokerweblogs or stokerweblog anywhere. I always load the GNU utils that include slocate, which maintains an index of all files on the system.
 
Hey Stew,

The missing CookerConfig.json is ok. you should be presented the configuration screen if that file is found to be missing.

Rename the log4j.properties.orig file and remove the .orig. Copy the file to the webapps/stokerweb/WEB-INF/classes directory which tomcat expanded for you. =Delete your catalina.out file, restart stoker-web, give it a minute to start and then email me both the catlalina.out file and the stokerweb.out file.

Thanks

I am a little confused. I have the log4j.properties.orig in both /usr/local/share/stokerweb and in /var/lib/tomcat7/webapps/stokerweb, along with a modified one in each place with the changed location for the logfile:

root@celeron:/var/lib/tomcat7/webapps/stokerweb# diff log4j.properties log4j.properties.orig
5c5
< log4j.appender.file.File=/var/log/stokerweb_app.log
---
> log4j.appender.file.File=\tmp\StokerWebDir\stokerweb_app.log

(There is no space in the filename in the compose window or the filename, but it shows one in the preview.)


I am going to assume that you want me to get rid of both copies of log4j.properties in /var/lib/tomcat7/webapps/stokerweb and have only one copy of my local log4j.properties in /var/lib/tomcat7/webapps/stokerweb/WEB-INF/classes

I will make those changes. Then I will be going outside in a while to setup the stoker, then I will see if things work and if they don't I will be sending email of the logs to your email, which I found instructions for earlier in this thread.
 
I am going to assume that you want me to get rid of both copies of log4j.properties in /var/lib/tomcat7/webapps/stokerweb and have only one copy of my local log4j.properties in /var/lib/tomcat7/webapps/stokerweb/WEB-INF/classes
Yes, but the other copies should harm anything, it just may cause confusion.

The path to the file can change, just make sure the location exists and you have the unix slashes.

Gary
 
No connection in web page?

I can't seem to get StokerWeb to connect to my stoker. I followed the guide for the Jetty deploy on Windows and I see the stokerweb page, but it says no connection and I don't see any gauges or other info. I can login so I assume that means it's finding the stokerwebdir. When I look at the screen output below it looks like it is connecting but that isn't what it shows in the web page. Any thoughts on what I'm doing wrong?


C:\Users\Paul\Desktop>cd C:\ProgramData\StokerWeb\jetty-6.1.23\

C:\ProgramData\StokerWeb\jetty-6.1.23>java -jar start.jar
2012-11-18 15:14:44.733:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
2012-11-18 15:14:44.921:INFO::jetty-6.1.23
2012-11-18 15:14:44.999:INFO::Deploy C:\ProgramData\StokerWeb\jetty-6.1.23\conte
xts\test.xml -> org.mortbay.jetty.webapp.WebAppContext@2cd2434c{/,C:\ProgramData
\StokerWeb\jetty-6.1.23/webapps/test}
2012-11-18 15:14:45.014:INFO::Deploy C:\ProgramData\StokerWeb\jetty-6.1.23\conte
xts\StokerWeb.xml -> org.mortbay.jetty.webapp.WebAppContext@a41f08{/stokerweb,C:
\ProgramData\StokerWeb\jetty-6.1.23/webapps/stokerweb.war}
2012-11-18 15:14:45.061:INFO::Deploy C:\ProgramData\StokerWeb\jetty-6.1.23\conte
xts\javadoc.xml -> org.mortbay.jetty.handler.ContextHandler@7f716083{/javadoc,fi
le:/C:/ProgramData/StokerWeb/jetty-6.1.23/javadoc/}
2012-11-18 15:14:45.092:INFO::Deploy C:\ProgramData\StokerWeb\jetty-6.1.23\conte
xts\test-jndi.xml -> org.mortbay.jetty.webapp.WebAppContext@2810b7f7{/test-jndi,
C:\ProgramData\StokerWeb\jetty-6.1.23/contexts/test-jndi.d}
2012-11-18 15:14:45.749:INFO:/:Transparent AsyncProxyServlet @ /google to http:/
/www.google.com
StokerWebServletConfig...
0 [main] INFO sweb.server.monitors.ConnectionMonitor - Connection monitor s
tarting
6547 [main] ERROR sweb.server.config.StokerWebConfiguration - Stokerweb config
file [C:\StokerWebDir\CookerConfig.json] was not found
java.io.FileNotFoundException: C:\StokerWebDir\CookerConfig.json (The system can
not find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at sweb.server.config.StokerWebConfiguration.loadConfig(StokerWebConfigu
ration.java:295)
at sweb.server.config.StokerWebConfiguration.init(StokerWebConfiguration
.java:88)
at sweb.server.config.StokerWebConfiguration.listenForConfigInit(StokerW
ebConfiguration.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java
:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(Synch
ronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.jav
a:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at sweb.server.monitors.stoker.StokerPitMonitor.start(StokerPitMonitor.j
ava:313)
at sweb.server.monitors.ConnectionMonitor.start(ConnectionMonitor.java:7
8)
at sweb.server.StokerWebServletConfig.getInjector(StokerWebServletConfig
.java:41)
at com.google.inject.servlet.GuiceServletContextListener.contextInitiali
zed(GuiceServletContextListener.java:45)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.
java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467
)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHan
dlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
6640 [main] INFO sweb.server.weather.WeatherController - Starting weather cont
roller
2012-11-18 15:14:54.467:INFO:/stokerweb:Creating Jetty6 async servlet handler fo
r server jetty/6.1.23
6672 [Timer-7] INFO sweb.server.data.telnet.StokerTelnetController - Creating
Telnet connection.
6672 [Timer-8] INFO sweb.server.weather.WeatherController - Fetching Weather
2012-11-18 15:14:54.561:INFO::No Transaction manager found - if your webapp requ
ires one, please configure one.
7500 [Thread-25] WARN sweb.server.data.telnet.StokerTelnetController - Invalid
Data Point: [Welcome to slush. (Version 1.16)
]
7531 [Timer-8] WARN sweb.server.weather.WeatherController - Error getting weat
her.
net.sf.json.JSONException: Invalid JSON String
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:143)
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:103)
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:84)
at sweb.server.weather.WeatherController.fetchWeather(WeatherController.
java:108)
at sweb.server.weather.WeatherController.updateWeatherAndFireEvent(Weath
erController.java:202)
at sweb.server.weather.WeatherController.access$0(WeatherController.java
:199)
at sweb.server.weather.WeatherController$RunTimer.run(WeatherController.
java:238)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
7562 [Timer-8] INFO sweb.server.weather.WeatherController - Weather fetch comp
lete
7765 [Thread-25] INFO sweb.server.data.telnet.StokerTelnetController - found l
ogin string
9187 [Thread-25] INFO sweb.server.data.telnet.StokerTelnetController - found p
assword string
9859 [Thread-25] INFO sweb.server.data.telnet.StokerTelnetController - found t
ini prompt
2012-11-18 15:14:58.092:INFO::Extract file:/C:/ProgramData/StokerWeb/jetty-6.1.2
3/webapps/cometd.war to C:\Users\Paul\AppData\Local\Temp\Jetty_0_0_0_0_8080_come
td.war__cometd__.t2qfkl\webapp
11469 [Thread-25] WARN sweb.server.data.telnet.StokerTelnetController - Invali
d Data Point: [tini15d17d /> stkcmd:stop
]
12937 [Thread-25] INFO sweb.server.data.telnet.StokerTelnetController - found
tini prompt
13703 [Thread-25] INFO sweb.server.data.telnet.StokerTelnetController - found
tini prompt
15281 [Thread-25] INFO sweb.server.data.telnet.StokerTelnetController - Stoker
Start response detected
15281 [Thread-25] WARN sweb.server.data.telnet.StokerTelnetController - Invali
d Data Point: [tini15d17d /> tini15d17d /> stoker: start
]
16750 [Thread-25] INFO sweb.server.data.telnet.StokerTelnetController - found
tini prompt
18406 [Thread-25] WARN sweb.server.data.telnet.StokerTelnetController - Invali
d Data Point: [tini15d17d /> 91000012997E5E30: 1.0 22.8 72.9 -6.3 -0.2 0.9 0.8 1
9.8 67.7 PID: NORM tgt:98.9 temp below low threshold blwr:on
]
19219 [Timer-7] INFO sweb.server.data.telnet.StokerTelnetController - waitForT
emps(): Found TEMPS
19219 [Timer-7] INFO sweb.server.data.telnet.StokerTelnetController - waitForT
emps(): Found TEMPS
2012-11-18 15:15:09.624:WARN::Unknown realm: Test JAAS Realm
2012-11-18 15:15:09.686:INFO::Opened C:\ProgramData\StokerWeb\jetty-6.1.23\logs\
2012_11_18.request.log
2012-11-18 15:15:09.702:INFO::Started SelectChannelConnector@0.0.0.0:8080
 
The bug both Stew and Paul reported has been fixed. If the cookerConfig.json file does not exist, the browser should popup the configuration screen so the configuration can be built. Once the file is on the server, it can resume operation normally. There still may be a bug lingering were after the configuration set and updated, the Default log may not be created. Simply restarting sokerweb after this is the workaround. It happened for me only with multiple cookers defined, and not always reproduceable.

Download stoker-web-0.3.5

Release Notes


I hope to have the RESTful version available soon. Still trying to finalize the API before releasing so I don't have to change it. With this version, most of stoker-web can be operated with web-services calls.
 
Thanks I'll give this new version a try.
I have one other question. Does it matter what version of Jetty I use? I noticed the latest one is 8.1.7, but your guide is using an older version.

Thanks again
 
I'm still getting the same results with the 0.3.5 version. Not sure if it matters, but I'm running Win7 X64 in a VM. Is there a specific version of Java I should be using or is there a way I can manually fix this?

Thanks,
Paul
 
Paul,

I was able to get 0.3.5 working. I am using Win7 X64, Java version 1.7.0_05 and Jetty version 6.1.23. I am not running Win 7 in a VM.

The weather info is still not working for me.

Walter
 
I'm still getting the same error Gary mentioned.

6594 [main] ERROR sweb.server.config.StokerWebConfiguration - Stokerweb config
file [C:\ProgramData\StokerWeb\StokerWebDir\CookerConfig.json] was not found
java.io.FileNotFoundException: C:\ProgramData\StokerWeb\StokerWebDir\CookerConfi
g.json (The system cannot find the file specified)
 
Decided to give this another try today and it worked. When I first connected I got a popup to create my config. The Stoker was restarted because I turned it off last night, although I wouldn't have thought that would make a difference? Yesterday I tried it with both Firefox and IE9, but now I'm wondering if I ever tried it with Firefox after switching to the new version? I would almost swear that I did, but obviously something is different now.
Just glad it's working and now I'm looking forward to trying it on a cook. I've been having stability issues with Stokerlog on my Win8 laptop so now I can run this in my Win7 VM and monitor it from my Win8 Laptop.

The one interesting thing is that it allowed to setup my config before I actually logged in to StokerWeb.

Gary, thanks again for all your hard work.

Paul
 
Gary,
You can also add Dolphin Browser on Android to the list of supported browsers. I'm able to log in and control everything right from my phone. Everything appears just as it does on my desktop in Chrome and Firefox.
 
Sorry for all the posts, but I have a question about audible alerts in the browser. I went to Alerts > Stoker Alarm and checked browser alerts, but I don't seem to be getting an alarm when the temp falls outside of the range I set. Is there something else I need to configure to make that work?

Edit:
I guess I didn't give it enough time. I just woke up everyone in my office because I had the sound all the way up. LOL

Thanks
 
Last edited:
I guess I didn't give it enough time. I just woke up everyone in my office because I had the sound all the way up.

How long did you have to wait? It should happen almost immediately.

And yes, the config screen will popup without logging in. I just looked and that's something I'll have to address. A savvy evil-doer could send in configuration request without logging in, but it's not trivial to do.
 
Sorry guys, but the weather in 0.3.5 is still not working. I have it working in the a new branch, but was a bit more complex to port over than the other bug fix. The weather will be fixed in beta 4.
 
How long did you have to wait? It should happen almost immediately.

And yes, the config screen will popup without logging in. I just looked and that's something I'll have to address. A savvy evil-doer could send in configuration request without logging in, but it's not trivial to do.

It took close to 10 minutes for the alarm to sound. I don't know if it matters, but I was setting the alarm to be outside of the current temp to force an alarm as opposed to it gradually creeping up.
 
The REST services are complete and working. I've got a few server side bugs to look into and then I'll make a release available. This will include the Yahoo weather fix.
 

 

Back
Top