joaocorreia
Joined: 31 Dec 2006 Posts: 1
|
Posted: Sun Dec 31, 2006 10:35 pm Post subject: wviewd dying after start ? |
|
|
Howdy,
I installed all pre-requisites and wview on Ubuntu Edgy. I compiled using --enable-station-sim and configured with Generic in wviewconfig.
When I try to start I get on log messages:
###########
/var/log/messages
Jan 1 04:31:00 joaocorreia-laptop radmrouted[31864]: <3689723558> : radlib: radmrouted started as a daemon ...
Jan 1 04:31:00 joaocorreia-laptop radmrouted[31864]: <3689723558> : started on radlib system 1, workdir /var/wview
Jan 1 04:31:00 joaocorreia-laptop radmrouted[31864]: <3689723558> : running...
Jan 1 04:31:01 joaocorreia-laptop wviewd[31868]: <3689724580> : radlib: wviewd started as a daemon ...
Jan 1 04:31:01 joaocorreia-laptop wviewd[31868]: <3689724582> : wview 3.2.1 starting ...
Jan 1 04:31:01 joaocorreia-laptop wviewd[31868]: <3689724582> : station interface: serial ...
Jan 1 04:31:01 joaocorreia-laptop wviewd[31868]: <3689724583> : Rain Season Start Month set to 1
Jan 1 04:31:01 joaocorreia-laptop wviewd[31868]: <3689724583> : Rain Storm Start Trigger set to 0.05 in/hr
Jan 1 04:31:01 joaocorreia-laptop wviewd[31868]: <3689724583> : Rain Storm Stop Time set to 12 hours
Jan 1 04:31:01 joaocorreia-laptop wviewd[31868]: <3689724583> : station polling interval set to 15 seconds
Jan 1 04:31:02 joaocorreia-laptop wviewd[31868]: <3689724609> : -- Station Init Start --
Jan 1 04:31:02 joaocorreia-laptop wviewd[31868]: <3689724612> : station archive interval: 0 minutes
Jan 1 04:31:02 joaocorreia-laptop wviewd[31868]: <3689724612> : Simulator station opened: 360 minute data generation period...
Jan 1 04:31:02 joaocorreia-laptop wviewd[31868]: <3689724612> : running...
Jan 1 04:31:02 joaocorreia-laptop wviewd[31868]: <3689724612> : station location: elevation: 0 feet
Jan 1 04:31:02 joaocorreia-laptop wviewd[31868]: <3689724612> : station location: latitude: 0.0 N longitude: 0.0 E
Jan 1 04:31:02 joaocorreia-laptop wviewd[31868]: <3689724612> : initializing computed data values...
Jan 1 04:31:02 joaocorreia-laptop htmlgend[31874]: <3689725676> : radlib: htmlgend started as a daemon ...
Jan 1 04:31:02 joaocorreia-laptop htmlgend[31874]: <3689725683> : generating to /var/wview/img
Jan 1 04:31:03 joaocorreia-laptop htmlgend[31874]: <3689726213> : running...
Jan 1 04:31:03 joaocorreia-laptop radmrouted[31864]: <3689726214> : radQueueSend: write failed on fd 8: Broken pipe
#############
I know its not running because nothing at archive and if I try to stop I get
root@joaocorreia-laptop:/usr/lib# /etc/init.d/wview stop
Shutting down wview daemons...
/etc/init.d/wview: line 144: kill: (31868) - No such process
root@joaocorreia-laptop:/usr/lib#
this means process wviewd is dying ....
### as trying to see the problem I strace
############ strace wviewd ######
root@joaocorreia-laptop:/usr/lib# strace wviewd
execve("/usr/local/bin/wviewd", ["wviewd"], [/* 32 vars */]) = 0
brk(0) = 0x8058000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f15000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=56406, ...}) = 0
mmap2(NULL, 56406, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f07000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20Z\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1248904, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f06000
mmap2(NULL, 1258876, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dd2000
mmap2(0xb7eff000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12c) = 0xb7eff000
mmap2(0xb7f03000, 9596, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f03000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3203\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=149284, ...}) = 0
mmap2(NULL, 151680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dac000
mmap2(0xb7dd0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23) = 0xb7dd0000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/librad.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360E\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=235007, ...}) = 0
mmap2(NULL, 84484, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d97000
mmap2(0xb7dab000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0xb7dab000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libz.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\27\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=77808, ...}) = 0
mmap2(NULL, 80692, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d83000
mmap2(0xb7d96000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb7d96000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libpng12.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 :\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=146320, ...}) = 0
mmap2(NULL, 145140, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d5f000
mmap2(0xb7d82000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23) = 0xb7d82000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d5e000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d5eb10, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7eff000, 8192, PROT_READ) = 0
munmap(0xb7f07000, 56406) = 0
stat64("/etc/wview/wview.conf", {st_mode=S_IFREG|0644, st_size=2314, ...}) = 0
stat64("/var/wview", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/wview/dev", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/wview/wviewd.pid", {st_mode=S_IFREG|0666, st_size=5, ...}) = 0
socket(PF_FILE, SOCK_DGRAM, 0) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0
gettimeofday({1167626053, 390657}, NULL) = 0
brk(0) = 0x8058000
brk(0x8079000) = 0x8079000
time(NULL) = 1167626053
open("/etc/localtime", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=1264, ...}) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1264, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f14000
read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\v\0\0\0\v\0"..., 4096) = 1264
close(4) = 0
munmap(0xb7f14000, 4096) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1264, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1264, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1264, ...}) = 0
getpid() = 31964
writev(2, [{"wviewd[31964]: <3689916174> : lo"..., 107}, {"\n", 1}], 2wviewd[31964]: <3689916174> : lock file /var/wview/wviewd.pid exists, older copy may be running - aborting!
) = 108
send(3, "<9>Jan 1 04:34:13 wviewd[31964]"..., 126, MSG_NOSIGNAL) = 126
close(3) = 0
socket(PF_FILE, SOCK_DGRAM, 0) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0
gettimeofday({1167626053, 396443}, NULL) = 0
time(NULL) = 1167626053
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1264, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1264, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1264, ...}) = 0
writev(2, [{"wviewd[31964]: <3689916180> : sy"..., 50}], 1wviewd[31964]: <3689916180> : system init failed!
) = 50
send(3, "<9>Jan 1 04:34:13 wviewd[31964]"..., 69, MSG_NOSIGNAL) = 69
close(3) = 0
exit_group(1) = ?
Process 31964 detached
root@joaocorreia-laptop:/usr/lib#
############################
What may be wrong ? I tryed on my destop a Ubuntu Edgy and I also tried on a CentOS (Red Hat) and I have the same problem.
Any tips ?
Thanks
Joao Correia |
|