wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

3.1.0: htmlgend crashing on start

 
Post new topic   Reply to topic    wviewweather.com Forum Index -> Troubleshooting
View previous topic :: View next topic  
Author Message
mdg



Joined: 17 Jan 2006
Posts: 20

PostPosted: Sat Jan 28, 2006 4:45 pm    Post subject: 3.1.0: htmlgend crashing on start Reply with quote

I just built and set up 3.1.0 and htmlgend keeps crashing on startup with a sig 11. What does that mean? Here are the logs:

Code:

Jan 28 17:38:48 localhost radmrouted[9651]: <321595347> : radlib: radmrouted started as a daemon ...
Jan 28 17:38:48 localhost radmrouted[9651]: <321595348> : started on radlib system 1, workdir /var/wview
Jan 28 17:38:48 localhost radmrouted[9651]: <321595349> : running...
Jan 28 17:38:49 localhost wviewd[9655]: <321596368> : radlib: wviewd started as a daemon ...
Jan 28 17:38:49 localhost wviewd[9655]: <321596370> : wview 3.1.0 starting ...
Jan 28 17:38:49 localhost wviewd[9655]: <321596371> : station interface: serial ...
Jan 28 17:38:49 localhost wviewd[9655]: <321596372> : Rain Season Start Month set to 1
Jan 28 17:38:49 localhost wviewd[9655]: <321596372> : Rain Storm Start Trigger set to  0.05 in/hr
Jan 28 17:38:49 localhost wviewd[9655]: <321596372> : Rain Storm Stop Time set to 12 hours
Jan 28 17:38:49 localhost wviewd[9655]: <321596373> : station polling interval set to 15 seconds
Jan 28 17:38:49 localhost wviewd[9655]: <321596404> : -- Station Init Start --
Jan 28 17:38:50 localhost wvalarmd[9660]: <321597392> : /etc/wview/wvalarm.conf does not exist - exiting..
.
Jan 28 17:38:50 localhost wvcwopd[9662]: <321597401> : /etc/wview/wvcwop.conf does not exist - exiting...
Jan 28 17:38:50 localhost wvwunderd[9663]: <321597413> : /etc/wview/wvwunder.conf does not exist - exiting
...
Jan 28 17:38:50 localhost wviewftpd[9664]: <321597422> : /etc/wview/wviewftp.conf does not exist - exiting
...
Jan 28 17:38:50 localhost htmlgend[9659]: <321597424> : radlib: htmlgend started as a daemon ...
Jan 28 17:38:50 localhost htmlgend[9659]: <321597427> : generating to /data/wview/img
Jan 28 17:38:50 localhost wviewsshd[9665]: <321597434> : /etc/wview/wviewssh.conf does not exist - exiting
...
Jan 28 17:38:50 localhost wviewd[9655]: <321597454> : Vantage Pro on /dev/ttyS1 opened ...
Jan 28 17:38:50 localhost wviewd[9655]: <321597520> : station archive interval: 5 minutes
Jan 28 17:38:50 localhost wviewd[9655]: <321597554> : running...
Jan 28 17:38:51 localhost htmlgend[9659]: <321597974> : running...
Jan 28 17:38:51 localhost wviewd[9655]: <321598074> : station location: elevation: 380 feet
Jan 28 17:38:51 localhost wviewd[9655]: <321598074> : station location: latitude: 39.2 N  longitude: 76.8
W
Jan 28 17:38:51 localhost wviewd[9655]: <321598075> : initializing computed data values...
Jan 28 17:38:52 localhost wviewd[9655]: <321599231> : -- Station Init Complete --
Jan 28 17:38:52 localhost wviewd[9655]: <321599238> : newest archive record: 2006-01-28 17:35
Jan 28 17:38:52 localhost htmlgend[9659]: <321599238> : received archive path /data/archive from wviewd: 2
0060128 17:38:52
Jan 28 17:38:52 localhost htmlgend[9659]: <321599241> : htmlmgrInit: 43 built-in image definitions added
Jan 28 17:38:52 localhost htmlgend[9659]: <321599241> : htmlmgrInit: 0 user image definitions added
Jan 28 17:38:52 localhost htmlgend[9659]: <321599241> : htmlmgrInit: 7 html/xml templates added
Jan 28 17:38:52 localhost htmlgend[9659]: <321599241> : htmlmgrInit: forecast html tags are disabled - /et
c/wview/forecast.conf not found...
Jan 28 17:38:52 localhost htmlgend[9659]: <321599416> : htmlgend: recv sig 11: shutting down!
Jan 28 17:38:52 localhost htmlgend[9659]: <321599417> : htmlgend: recv sig 6: exiting!
Back to top
View user's profile Send private message
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Sat Jan 28, 2006 5:42 pm    Post subject: Reply with quote

Have you defined extra user images in a conf file but forgot to add the source for them back into the new 3.1.0 source tree? This is the common reason for such behavior - you are references user image function indexes for functions that don't exist...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mdg



Joined: 17 Jan 2006
Posts: 20

PostPosted: Sat Jan 28, 2006 6:04 pm    Post subject: Reply with quote

Nope, I didn't touch the images config, nor did I change either 3.x source code when I built it. What else could it be?
Back to top
View user's profile Send private message
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Sat Jan 28, 2006 6:07 pm    Post subject: Reply with quote

images-user.conf and images-user.c are the files I'm referring to. If the conf file references functions you didn't add back to images-user.c, then it will segfault. No idea beyond that...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Sun Jan 29, 2006 10:35 am    Post subject: Reply with quote

Have you tried moving all your config files in /etc/wview and all your data in /var/wview to a safe place and doing a "make install-env", then trying to run wview? And using a standard prefix during configure?

If it runs when your custom config is out of the way, then it is something in your configuration causing it - like indicated above.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mdg



Joined: 17 Jan 2006
Posts: 20

PostPosted: Sun Jan 29, 2006 2:26 pm    Post subject: Reply with quote

OK, I've put everything back as the default and it works now.

Specifically, I rebuilt radlib and wview with no --prefix setting and use /var/wview instead of a custom data directory. (I never put any configs outside of /etc/wview.) No more being fancy from me. Embarassed

So to everyone else, fight the urge to install things somewhere other than /usr/local. You will have trouble if you don't.
Back to top
View user's profile Send private message
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Sun Jan 29, 2006 5:23 pm    Post subject: Reply with quote

No, you can install it other places. Many folks do. I just don't recommend using something like "/software". I can almost guarantee you you had customized something that was causing this crash. If it starts and stops via your (obviously modified since you are installing in a non-standard location) wview script, then it isn't going to crash because of where it is installed. There was something custom in your setup, images-user, etc.

Having said that, /usr/local *is* for locally built/installed software.

I just saw the bit about not using /var/wview - that could have been a problem and you didn't divulge that earlier. Why does program data need to go somewhere other than /var, where it is supposed to go? That certainly qualifies as customizing something.

/etc/wview and /var/wview locations should not be dorked with. Install in non-standard locations with caution, understanding what all it effects.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mdg



Joined: 17 Jan 2006
Posts: 20

PostPosted: Mon Jan 30, 2006 5:30 pm    Post subject: Reply with quote

mteel wrote:
No, you can install it other places. Many folks do. I just don't recommend using something like "/software".


You are going to have to explain this one. How is /software not "other places". It's other than /usr/local or /usr. If I put it in /opt, how is that any different?

Quote:
There was something custom in your setup, images-user, etc.


The only thing I changed were variables included in the config file. I did not hack any code or move anything that wasn't defined somewhere.

Quote:
Having said that, /usr/local *is* for locally built/installed software.


Agreed, that's a good place to put things.

Quote:
I just saw the bit about not using /var/wview - that could have been a problem and you didn't divulge that earlier.


Yes, good information and I should have included that. But my initial question was to find out what a sig 11 was since I don't know enough about C to go and find out. If it meant "can't find config dir" or something, I would have known I screwed it up.

Quote:
Why does program data need to go somewhere other than /var, where it is supposed to go? That certainly qualifies as customizing something.


In my opinion, data not associated with the operating system should not be stored in an OS system directory. (I'm not saying you are wrong for putting it there, it is just one way of thinking.) For example, Windows 98 should never have stored the user's My Documents folder inside the Windows directory. (XP puts it outside where it belongs.) So I wanted to store my img and archive directory elsewhere. The rest of /var/wview was untouched. Again, I would have never moved it if there wasn't a variable in a config file defining where such stuff goes.

Nor am I asking you to change things. Having to set up a data directory and all that just leads to more posts in the troubleshooting forum. But the program shouldn't break if the variables are properly defined as they were for a working 3.0.0 installation. This leads me to believe that it is possible that something is not using the variable defined in the config file.

Quote:
/etc/wview and /var/wview locations should not be dorked with. Install in non-standard locations with caution, understanding what all it effects.


I don't plan on dorking with it anymore. Consider me a standard installation.
Back to top
View user's profile Send private message
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Mon Jan 30, 2006 5:48 pm    Post subject: Reply with quote

Quote:
In my opinion, data not associated with the operating system should not be stored in an OS system directory. (I'm not saying you are wrong for putting it there, it is just one way of thinking.) For example, Windows 98 should never have stored the user's My Documents folder inside the Windows directory.

I'm sorry, but almost every application known to unix stores its run time data in /var. /var is in no way synonomous with the "windows" directory. Find database files, ntp files, and a host of other application data files in /var.

Quote:
Yes, good information and I should have included that. But my initial question was to find out what a sig 11 was since I don't know enough about C to go and find out. If it meant "can't find config dir" or something, I would have known I screwed it up.

Sig 11 is a unix signal - specifically SIGSEGV (segmentation fault). This means the program crashed and may have produced a core dump. This is general unix stuff, not associated with C or wview in particular. If any unix process segfaults, it is a big problem.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mdg



Joined: 17 Jan 2006
Posts: 20

PostPosted: Mon Jan 30, 2006 7:17 pm    Post subject: Reply with quote

mteel wrote:
I'm sorry, but almost every application known to unix stores its run time data in /var. /var is in no way synonomous with the "windows" directory. Find database files, ntp files, and a host of other application data files in /var.


I agree. I'm not exactly saying /var is like the Windows directory, but that's a topic for another time.

I was coming at wview like an application taking data and processing it. Where I work, people analyze data in their own separate data partitions and the apps never write anything in a system directory.

But looking at it differently, I now see wview is part of the OS that has a specific purpose, to take weather data, process it and post it to the web, etc. Sort of embedded. That's all my wview PC is doing. Nothing else. So I don't have to think like I do at work, so I'll stop being a nuisance. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group