Re: [Cellhunter] no offline log any more
On every openmoko distro like fso or shr the user is root with home /home/root/ those are iirc all oe based -- debian is an om distro too, and it does not use /home/root/ but /root/. gentoo does so to iirc. /tmp is a bad idea because its only tmpfs and deleted everytime it boots up. and that's worse than silent failing? but an other dir would be better, yes sure, but which directory is available everwhere and can be presumed to be r/w to the every user? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
arne anka schrieb: Cellhunter tries to read out your $HOME variable. when NOT set it goes to /home/root (line 536) that seems to be a very strange fallback - where is root's home below /home/? so far i've seen it in oe only - why is the user root assumed? On every openmoko distro like fso or shr the user is root with home /home/root/ normally $home should be set. I think other programs will have problems too without this. /tmp is a bad idea because its only tmpfs and deleted everytime it boots up. but an other dir would be better, yes Sebastian a sane fallback would be /tmp, which usually exists everwhere and is r/w for everyone. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
Tony Berth schrieb: On Thu, Mar 19, 2009 at 8:31 PM, Sebastian Hammerl list-openm...@omoco.de mailto:list-openm...@omoco.de wrote: try to start it from the commandline with parameter -d cellhunter.py -d perhaps this will tell you more. Sebastian I did re-start the phone but still 'cellhunter' doesn't create a log file. Here is the outcome when running from command line: --- __init__ __init__ / checking for homedir __init__ / found homedir = /home/root __init__ / init config __init__ / init wget file __init__ / init dbus __init__ / init gtk main window main offline_mode offline_mode / offline=True check_cellid_auto check_cellid check_cellid / 0181 E637 4 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 4 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / neighbours: 2 0 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid_auto / auto=1 check_cellid check_cellid / 0181 E637 7 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 0181 3D45 3 860 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid check_cellid / 0181 E637 6 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 6 801 check_cellid / neighbours: 0181 3D45 3 860 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid check_cellid / 0181 E637 5 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 2 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 2 0 check_cellid / neighbours: 2 0 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms delete_event gui_destroy gui_destroy / sending AT+CREG=0\r\n gui_destroy / kill all old wgets - what does echo $HOME tell you? is /home/root/ accessable? Sebastian Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
arne anka schrieb: On every openmoko distro like fso or shr the user is root with home /home/root/ those are iirc all oe based -- debian is an om distro too, and it does not use /home/root/ but /root/. gentoo does so to iirc. /tmp is a bad idea because its only tmpfs and deleted everytime it boots up. and that's worse than silent failing? no, shurely not but an other dir would be better, yes sure, but which directory is available everwhere and can be presumed to be r/w to the every user? that was my problem when hacking together that code :) ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
2009/3/20 Sebastian Hammerl list-openm...@omoco.de Tony Berth schrieb: On Thu, Mar 19, 2009 at 8:31 PM, Sebastian Hammerl list-openm...@omoco.de wrote: try to start it from the commandline with parameter -d cellhunter.py -d perhaps this will tell you more. Sebastian I did re-start the phone but still 'cellhunter' doesn't create a log file. Here is the outcome when running from command line: --- __init__ __init__ / checking for homedir __init__ / found homedir = /home/root __init__ / init config __init__ / init wget file __init__ / init dbus __init__ / init gtk main window main offline_mode offline_mode / offline=True check_cellid_auto check_cellid check_cellid / 0181 E637 4 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 4 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / neighbours: 2 0 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid_auto / auto=1 check_cellid check_cellid / 0181 E637 7 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 0181 3D45 3 860 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid check_cellid / 0181 E637 6 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 6 801 check_cellid / neighbours: 0181 3D45 3 860 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid check_cellid / 0181 E637 5 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 2 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 2 0 check_cellid / neighbours: 2 0 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms delete_event gui_destroy gui_destroy / sending AT+CREG=0\r\n gui_destroy / kill all old wgets - what does echo $HOME tell you? is /home/root/ accessable? Sebastian Thanks Tony yes indeed. 'echo $HOME' gives me 'home/root' and I can rwd anything there! Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
Tony Berth schrieb: 2009/3/20 Sebastian Hammerl list-openm...@omoco.de mailto:list-openm...@omoco.de Tony Berth schrieb: On Thu, Mar 19, 2009 at 8:31 PM, Sebastian Hammerl list-openm...@omoco.de mailto:list-openm...@omoco.de wrote: try to start it from the commandline with parameter -d cellhunter.py -d perhaps this will tell you more. Sebastian I did re-start the phone but still 'cellhunter' doesn't create a log file. Here is the outcome when running from command line: --- __init__ __init__ / checking for homedir __init__ / found homedir = /home/root __init__ / init config __init__ / init wget file __init__ / init dbus __init__ / init gtk main window main offline_mode offline_mode / offline=True check_cellid_auto check_cellid check_cellid / 0181 E637 4 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 4 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / neighbours: 2 0 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid_auto / auto=1 check_cellid check_cellid / 0181 E637 7 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 0181 3D45 3 860 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid check_cellid / 0181 E637 6 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 6 801 check_cellid / neighbours: 0181 3D45 3 860 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid check_cellid / 0181 E637 5 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 2 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 2 0 check_cellid / neighbours: 2 0 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms delete_event gui_destroy gui_destroy / sending AT+CREG=0\r\n gui_destroy / kill all old wgets - what does echo $HOME tell you? is /home/root/ accessable? Sebastian Thanks Tony yes indeed. 'echo $HOME' gives me 'home/root' and I can rwd anything there! Thanks Tony argl, got it now. could it be that auto submit is turned off? auto check only checks the cells but does not transmit them. only when transmitting the data is beeing sent / stored in offline file. you have to push: offline mode - auto submit - auto check more info at the manual at http://cellhunter.omoco.de Sebastian ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
2009/3/20 Sebastian Hammerl list-openm...@omoco.de Tony Berth schrieb: 2009/3/20 Sebastian Hammerl list-openm...@omoco.de Tony Berth schrieb: On Thu, Mar 19, 2009 at 8:31 PM, Sebastian Hammerl list-openm...@omoco.de wrote: try to start it from the commandline with parameter -d cellhunter.py -d perhaps this will tell you more. Sebastian I did re-start the phone but still 'cellhunter' doesn't create a log file. Here is the outcome when running from command line: --- __init__ __init__ / checking for homedir __init__ / found homedir = /home/root __init__ / init config __init__ / init wget file __init__ / init dbus __init__ / init gtk main window main offline_mode offline_mode / offline=True check_cellid_auto check_cellid check_cellid / 0181 E637 4 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 4 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / neighbours: 2 0 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid_auto / auto=1 check_cellid check_cellid / 0181 E637 7 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 0181 3D45 3 860 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid check_cellid / 0181 E637 6 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 3 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 6 801 check_cellid / neighbours: 0181 3D45 3 860 check_cellid / neighbours: 0181 3D4F 3 830 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms check_cellid check_cellid / 0181 E637 5 786 check_cellid / +COPS: 0,2,26203 check_cellid / Provider: 262 3 check_cellid / neighbours: 02FD 5DD9 4 990 check_cellid / neighbours: 0181 3D4F 2 796 check_cellid / neighbours: 02FD 5DE3 5 986 check_cellid / neighbours: 02FD B563 5 801 check_cellid / neighbours: 2 0 check_cellid / neighbours: 2 0 check_cellid / FIX/TIME: No Fix / 0 / check_cellid / POS: / / check_serverresponse check_cellid / scheduling next check in 1 ms delete_event gui_destroy gui_destroy / sending AT+CREG=0\r\n gui_destroy / kill all old wgets - what does echo $HOME tell you? is /home/root/ accessable? Sebastian Thanks Tony yes indeed. 'echo $HOME' gives me 'home/root' and I can rwd anything there! Thanks Tony argl, got it now. could it be that auto submit is turned off? auto check only checks the cells but does not transmit them. only when transmitting the data is beeing sent / stored in offline file. you have to push: offline mode - auto submit - auto check more info at the manual at http://cellhunter.omoco.de Sebastian Bingo! :) Yep, that did the trick! Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
Cellhunter tries to read out your $HOME variable. when NOT set it goes to /home/root (line 536) that seems to be a very strange fallback - where is root's home below /home/? so far i've seen it in oe only - why is the user root assumed? a sane fallback would be /tmp, which usually exists everwhere and is r/w for everyone. No, a sane fallback would be to signal an error and exit. Stefan ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
No, a sane fallback would be to signal an error and exit. that's no fallback -- that's an exit strategy. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
No, a sane fallback would be to signal an error and exit. that's no fallback -- that's an exit strategy. For a problem detected at startup, it's much better than a bogus fallback. After all, a missing HOME envvar, or a $HOME that points to a missing directory is the result of a misconfiguration that needs to be fixed in any case. Stefan ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[Cellhunter] no offline log any more
I have SHR latest unstable and the latest cellhunter version. In the very first beginning, when I switched to offline mode a log was indeed created. After going online and run 'cellhunter_upload.sh' to upload it to the cellhunter server, no log was re-generated? Why? Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
that's what I thought too but cellhunter doen't create a new log when going offline! That's exactly my problem. It did created once, and after 'cellhunter_upload.sh' deleted that file no new log is been generated any more! Thanks Tony On Thu, Mar 19, 2009 at 5:01 PM, Leonti Bielski prishe...@gmail.com wrote: What do you mean by no log was re-generated? Script cellhunter_upload.sh send info to the server and then delets log file. New log will be created next time you are using cellhunter in offline mode. Leonti On Thu, Mar 19, 2009 at 9:37 AM, Tony Berth tonybe...@googlemail.com wrote: I have SHR latest unstable and the latest cellhunter version. In the very first beginning, when I switched to offline mode a log was indeed created. After going online and run 'cellhunter_upload.sh' to upload it to the cellhunter server, no log was re-generated? Why? Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
What do you mean by no log was re-generated? Script cellhunter_upload.sh send info to the server and then delets log file. New log will be created next time you are using cellhunter in offline mode. Leonti On Thu, Mar 19, 2009 at 9:37 AM, Tony Berth tonybe...@googlemail.com wrote: I have SHR latest unstable and the latest cellhunter version. In the very first beginning, when I switched to offline mode a log was indeed created. After going online and run 'cellhunter_upload.sh' to upload it to the cellhunter server, no log was re-generated? Why? Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
that's what I thought too but cellhunter doen't create a new log when going offline! That's exactly my problem. It did created once, and after 'cellhunter_upload.sh' deleted that file no new log is been generated any more! no clue about cellhunter -- but did you ever restart it? maybe it still writes to the file, although the handle got deleted? i managed once to delete a log file still being written to -- the app calmly wrote to the file descriptor, but i had no handle (filename) to access it anymore. after restart the log file got created again and everything was fine. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
Happens for me too - for me cellhunter offline log has never created. I can't see anything about that in stdout. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
try to start it from the commandline with parameter -d cellhunter.py -d perhaps this will tell you more. Sebastian ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Cellhunter] no offline log any more
Something I realised on Debian/fyp was that in /usr/bin/cellhunter.py home is set to /home/root but on fyp root's home is just /root. Cellhunter 0.4.2 *did not* present an error message when it tried to write the offline log to a non-existant path, it just silently failed. So this should definately be fixed! I lost a whole morning's worth of cells - better luck next time ;) On Thu, Mar 19, 2009 at 7:37 PM, Tony Berth tonybe...@googlemail.com wrote: I have SHR latest unstable and the latest cellhunter version. In the very first beginning, when I switched to offline mode a log was indeed created. After going online and run 'cellhunter_upload.sh' to upload it to the cellhunter server, no log was re-generated? Why? Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community