Works in Windoze, NOT in SuSE!?!?!?!?!?!?
pppd keeps receiving a (SIGHUP) (exit code = 16) and drops. I get dropped as quick as 30 seconds, and CANNOT get past 59.4 minutes, EVER. I'm using 8.1 with KDE 3.1.1, with a U.S. Robotics 56K Performance Pro V.92 PCI modem, which is fully supported (modem drivers are in kernel 2.3 and higher). I manually start/stop my connection with WVDial or KInternet. I rewired the phone line, put the modem in a new slot, removed nearby electrical equipment, contacted the ISP, tested on 3 different phone networks, used wvdialconf to setup the modem, added additional codes to the init string when the wvdialconf string didn't fix the problem, dropped my firewall, and the list goes on, and on. Then I remembered I still had a partition with WindozeME on it. Set up the modem in windoze. When I checked the configuration, I found the init string was different. I added two more codes to the string in windoze, and tested it out. - Strange thing - I started several small downloads (12M total), and let it run. I was able to download the files, then stayed idle for a total of 5 hours before my ISP dropped me!!! Tried it again in windoze (to see if I could do it again), this time with a 78M file. Again!!! 5 hours went by before my ISP dropped me, and before the whole file was downloaded, which meant no idle time. - Stranger thing - Great! (right?) So I booted into SuSE, changed the init string to the SAME one I had success with in windoze (because the previous one wvdialconf set didn't work). Then I tested it the same way I did in windoze. pppd received a (SIGHUP) at 33.1 minutes and died, and then again at 26.6 minutes and died. Afterward, I tried it again in windoze, and got the same 5 hours before my ISP dumped me. WHY does it work it in windoze and not SuSE?????????? And HOW can I fix this problem????????? I can talk to my ISP, or even change ISP's, about the 5 hour dump from them. BUT, I have no idea how to fix what is going on with the (SIGHUP) in linux, and there's no problem in Windoze!?!?!? Oh Please Help Me!!!!! ***/var/log/messages: Sep 1 23:20:38 linux pppd[3540]: Plugin passwordfd.so loaded. Sep 1 23:20:38 linux pppd[3540]: pppd 2.4.1 started by root, uid 0 Sep 1 23:20:38 linux pppd[3540]: Using interface ppp0 Sep 1 23:20:38 linux pppd[3540]: Connect: ppp0 <--> /dev/ttyS4 Sep 1 23:20:41 linux pppd[3540]: local IP address xxxxxxxx Sep 1 23:20:41 linux pppd[3540]: remote IP address xxxxxxxxx Sep 1 23:20:41 linux pppd[3540]: primary DNS address xxxxxxxxx Sep 1 23:20:41 linux pppd[3540]: secondary DNS address xxxxxxxxx Sep 1 23:20:41 linux modify_resolvconf: Service pppd modified /etc/resolv.conf. See info block in this file Sep 1 23:20:41 linux pppd[3540]: Script /etc/ppp/ip-up finished (pid 3555), status = 0x0 Sep 1 23:41:49 linux -- MARK -- Sep 1 23:47:14 linux pppd[3540]: Hangup (SIGHUP) Sep 1 23:47:14 linux pppd[3540]: Modem hangup Sep 1 23:47:14 linux pppd[3540]: Connection terminated. Sep 1 23:47:14 linux pppd[3540]: Connect time 26.6 minutes. Sep 1 23:47:14 linux pppd[3540]: Sent 230818 bytes, received 6368141 bytes. Sep 1 23:47:14 linux modify_resolvconf: restored /etc/resolv.conf.saved.by.pppd.ppp0 to /etc/resolv.conf Sep 1 23:47:14 linux pppd[3540]: Script /etc/ppp/ip-down finished (pid 3668), status = 0x0 Sep 1 23:47:14 linux pppd[3540]: Exit. ***wvdial output: --> pppd: Connect time 26.6 minutes. --> Disconnecting at Mon Sep 1 23:47:15 2003 --> The PPP daemon has died: A modem hung up the phone (exit code = 16) Oh PLEASE Help Me!!!!! Bernd -- "It is better to light a small candle, than to curse the darkness." Confucious
Not sure if this helps, but a year or so ago when I had similar problems, talking to the ISP they gave me a different number to call - problem solved. Never did find out what the difference was, but now on adsl and would never go back to dial up. David On Tuesday 02 September 2003 7:01 pm, Bernd wrote:
pppd keeps receiving a (SIGHUP) (exit code = 16) and drops. I get dropped as quick as 30 seconds, and CANNOT get past 59.4 minutes, EVER.
I'm using 8.1 with KDE 3.1.1, with a U.S. Robotics 56K Performance Pro V.92 PCI modem, which is fully supported (modem drivers are in kernel 2.3 and higher). I manually start/stop my connection with WVDial or KInternet.
I rewired the phone line, put the modem in a new slot, removed nearby electrical equipment, contacted the ISP, tested on 3 different phone networks, used wvdialconf to setup the modem, added additional codes to the init string when the wvdialconf string didn't fix the problem, dropped my firewall, and the list goes on, and on. Then I remembered I still had a partition with WindozeME on it.
Set up the modem in windoze. When I checked the configuration, I found the init string was different. I added two more codes to the string in windoze, and tested it out.
- Strange thing -
I started several small downloads (12M total), and let it run. I was able to download the files, then stayed idle for a total of 5 hours before my ISP dropped me!!! Tried it again in windoze (to see if I could do it again), this time with a 78M file. Again!!! 5 hours went by before my ISP dropped me, and before the whole file was downloaded, which meant no idle time.
- Stranger thing -
Great! (right?) So I booted into SuSE, changed the init string to the SAME one I had success with in windoze (because the previous one wvdialconf set didn't work). Then I tested it the same way I did in windoze. pppd received a (SIGHUP) at 33.1 minutes and died, and then again at 26.6 minutes and died.
Afterward, I tried it again in windoze, and got the same 5 hours before my ISP dumped me.
WHY does it work it in windoze and not SuSE?????????? And HOW can I fix this problem?????????
I can talk to my ISP, or even change ISP's, about the 5 hour dump from them.
BUT, I have no idea how to fix what is going on with the (SIGHUP) in linux, and there's no problem in Windoze!?!?!?
Oh Please Help Me!!!!!
***/var/log/messages:
Sep 1 23:20:38 linux pppd[3540]: Plugin passwordfd.so loaded. Sep 1 23:20:38 linux pppd[3540]: pppd 2.4.1 started by root, uid 0 Sep 1 23:20:38 linux pppd[3540]: Using interface ppp0 Sep 1 23:20:38 linux pppd[3540]: Connect: ppp0 <--> /dev/ttyS4 Sep 1 23:20:41 linux pppd[3540]: local IP address xxxxxxxx Sep 1 23:20:41 linux pppd[3540]: remote IP address xxxxxxxxx Sep 1 23:20:41 linux pppd[3540]: primary DNS address xxxxxxxxx Sep 1 23:20:41 linux pppd[3540]: secondary DNS address xxxxxxxxx Sep 1 23:20:41 linux modify_resolvconf: Service pppd modified /etc/resolv.conf. See info block in this file Sep 1 23:20:41 linux pppd[3540]: Script /etc/ppp/ip-up finished (pid 3555), status = 0x0 Sep 1 23:41:49 linux -- MARK -- Sep 1 23:47:14 linux pppd[3540]: Hangup (SIGHUP) Sep 1 23:47:14 linux pppd[3540]: Modem hangup Sep 1 23:47:14 linux pppd[3540]: Connection terminated. Sep 1 23:47:14 linux pppd[3540]: Connect time 26.6 minutes. Sep 1 23:47:14 linux pppd[3540]: Sent 230818 bytes, received 6368141 bytes. Sep 1 23:47:14 linux modify_resolvconf: restored /etc/resolv.conf.saved.by.pppd.ppp0 to /etc/resolv.conf Sep 1 23:47:14 linux pppd[3540]: Script /etc/ppp/ip-down finished (pid 3668), status = 0x0 Sep 1 23:47:14 linux pppd[3540]: Exit.
***wvdial output:
--> pppd: Connect time 26.6 minutes. --> Disconnecting at Mon Sep 1 23:47:15 2003 --> The PPP daemon has died: A modem hung up the phone (exit code = 16)
Oh PLEASE Help Me!!!!!
Bernd -- "It is better to light a small candle, than to curse the darkness."
Confucious
On Tuesday, 02 September, 2003 09:35, suse@avoncliff.com wrote:
Not sure if this helps, but a year or so ago when I had similar problems, talking to the ISP they gave me a different number to call - problem solved. Never did find out what the difference was, but now on adsl and would never go back to dial up. David
<snip> Let me clarify what I mentioned I did in my testing: I have tried 3 different phone numbers, which are each on a different telephone network (QWest, Sprint...) Thanks for the idea though! Bernd -- "It is better to light a small candle, than to curse the darkness." Confucious
On Tuesday 02 September 2003 10:16 pm, Bernd wrote:
On Tuesday, 02 September, 2003 09:35, suse@avoncliff.com wrote:
Not sure if this helps, but a year or so ago when I had similar problems, talking to the ISP they gave me a different number to call - problem solved. Never did find out what the difference was, but now on adsl and would never go back to dial up. David
<snip>
Let me clarify what I mentioned I did in my testing: I have tried 3 different phone numbers, which are each on a different telephone network (QWest, Sprint...)
Thanks for the idea though!
Sorry I should have been clearer - my problem was fixed by the ISP, the new number they gave me was a different modem bank, that was configured in some different manner. I never did know what the difference was. 8-(
Bernd -- "It is better to light a small candle, than to curse the darkness."
Confucious
On Tue, 2 Sep 2003 11:01:27 -0700 Bernd <bernd@covenantmail.net> wrote:
Oh PLEASE Help Me!!!!!
Try playing around with "lcp-echo-failure" and "idle" in /etc/ppp/options. Charles -- "Oh, I've seen copies [of Linux Journal] around the terminal room at The Labs." (By Dennis Ritchie)
On Tuesday, 02 September, 2003 14:22, Charles Philip Chan wrote:
On Tue, 2 Sep 2003 11:01:27 -0700
Bernd <bernd@covenantmail.net> wrote:
Oh PLEASE Help Me!!!!!
Try playing around with "lcp-echo-failure" and "idle" in /etc/ppp/options.
Already did both, with no change. I even remarked out 'idle' in /etc/ppp/options file altogether, as well as entering a code in the modems init string that enables unlimited 'idle' time. The problem exists whether I'm idle OR even in the middle of a download. It doesn't matter. MANY Thanks for the ideas though!!! Bernd -- "If you want to build a ship, don't drum up the men to gather wood, divide the work, and give orders. Instead, teach them to yearn for the vast and endless sea." Antoine de St. Exupery
On Tue, 2 Sep 2003 17:10:36 -0700 Bernd <bernd@covenantmail.net> wrote:
On Tuesday, 02 September, 2003 14:22, Charles Philip Chan wrote:
On Tue, 2 Sep 2003 11:01:27 -0700
Try playing around with "lcp-echo-failure" and "idle" in /etc/ppp/options.
Already did both, with no change.
Did you just change the value of lcp-echo-failure or did you comment it out? If you did the former try commenting it out completely. Charles -- Linux: Because a PC is a terrible thing to waste. (By komarimf@craft.camp.clarkson.edu, Mark Komarinski)
On Tuesday, 02 September, 2003 23:16, Charles Philip Chan wrote:
On Tue, 2 Sep 2003 17:10:36 -0700
Bernd <bernd@covenantmail.net> wrote:
On Tuesday, 02 September, 2003 14:22, Charles Philip Chan wrote:
On Tue, 2 Sep 2003 11:01:27 -0700
Try playing around with "lcp-echo-failure" and "idle" in /etc/ppp/options.
Already did both, with no change.
Did you just change the value of lcp-echo-failure or did you comment it out? If you did the former try commenting it out completely.
Charles
I commented them both out, yet just found that I still had "lcp-max-configure" and "lcp-restart" uncommented. Making that change now. Will report back if that's a fix. Thanks for the idea! Bernd -- "If you want to build a ship, don't drum up the men to gather wood, divide the work, and give orders. Instead, teach them to yearn for the vast and endless sea." Antoine de St. Exupery
On Tue, 2 Sep 2003 11:01:27 -0700 Bernd <bernd@covenantmail.net> wrote:
Oh PLEASE Help Me!!!!!
Try playing around with or comment out "lcp-echo-failure" in /etc/ppp/options. You can also try playing around with "idle". Charles -- "Oh, I've seen copies [of Linux Journal] around the terminal room at The Labs." (By Dennis Ritchie)
The 03.09.02 at 11:01, Bernd wrote:
Great! (right?) So I booted into SuSE, changed the init string to the SAME one I had success with in windoze (because the previous one wvdialconf set didn't work). Then I tested it the same way I did in windoze. pppd received a (SIGHUP) at 33.1 minutes and died, and then again at 26.6 minutes and died.
"Interesting" problem! To say something. :-) I have two ideas; I'll write them up, but I wont be very organized - after all, this is not a public speach ;-) First idea. ============= Try strace or ltrace - I think the first one, strace: DESCRIPTION In the simplest case strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the _signals_ which are received by a process. The name of each system call, its arguments and its return value are printed on standard error or to the file specified with the -o option. ... Students, hackers and the overly-curious will find that a great deal can be learned about a system and its system calls by tracing even ordinary programs. And programmers will find that since system calls and _signals_ are events that happen at the user/kernel interface, a close examination of this boundary is very useful for bug isolation, sanity checking and attempting to capture race conditions. The command would be something like "strace -otracefile wvdial params". The problem is that the output file can be real, real big, like huge. Ah, no the above would not work, we have to study pppd, not wvdial. You have to get the pid. Test: cer@nimrodel:~> strace -otracefile -e signal=all -e trace=signal sleep 666 [ --> interrupt with cntrl-C ] cer@nimrodel:~> cat tracefile rt_sigaction(SIGRTMIN, {0x4019ce00, [], SA_RESTORER, 0x4008b3a8}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x4019ce50, [], SA_RESTORER, 0x4008b3a8}, NULL, 8) = 0 rt_sigaction(SIGRT_2, {0x4019cfd0, [], SA_RESTORER, 0x4008b3a8}, NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0 --- SIGINT (Interrupt) @ 0 (0) --- +++ killed by SIGINT +++ cer@nimrodel:~> Not very informative, it doesn't say who interrupted it. Or does it? Ok, if I kill it with a "kill 10523 " I get: --- SIGTERM (Terminated) @ 0 (0) --- +++ killed by SIGTERM +++ If I call strace without filtering (-e) I get a bit more, but not much. Perhaps you will have to use it that way. I get: gettimeofday({1062542649, 841898}, NULL) = 0 nanosleep({666, 0}, 0) = -1 EINTR (Interrupted system call) --- SIGTERM (Terminated) @ 0 (0) --- +++ killed by SIGTERM +++ Ok, another test. You could use it like this - mutandis mutandi: ------- Terminal 1 ---------- cer@nimrodel:~> sleep 666 cer@nimrodel:~> sleep 666 Terminated cer@nimrodel:~> ------- Terminal 2 ---------- cer@nimrodel:~> ps afx|grep sleep 10719 pts/10 S 0:00 | \_ sleep 666 cer@nimrodel:~> strace -otracefile -p10719 -ff cer@nimrodel:~> ------- Terminal 3 ---------- cer@nimrodel:~> kill 10719 cer@nimrodel:~> l tracefile -rw-r--r-- 1 cer users 159 2003-09-03 00:56 tracefile cer@nimrodel:~> cat tracefile gettimeofday({1062543394, 719935}, NULL) = 0 nanosleep({652, 812477000}, 0) = -1 EINTR (Interrupted system call) --- SIGTERM (Terminated) @ 0 (0) --- cer@nimrodel:~> Notice that as I'm starting strace by the pid of the program to watch, it doesn't catch its start. But perhaps, as the "-ff" option is meant for catching child processes, you might use it like: strace -otracefile -ff wvdial options... But make sure you have several megabytes free, perhaps hundreds. Second idea - maybe use both simultaneously :-) ============ Edit "/etc/ppp/options", and remove the "#" in the line with the "debug" word. This will produce a lot of extra debug info in "/var/log/localmessages". For example, for my last session, I have (from wvdial): --> pppd: Terminate Request (Message: "Link inactive") --> pppd: Connect time 3.9 minutes. --> Disconnecting at Tue Sep 2 22:46:28 2003 --> The PPP daemon has died: Link idle: Idle Seconds reached. (exit code = 12) --> man pppd explains pppd error codes in more detail. --> I guess that's it for now, exiting --> The PPP daemon has died. (exit code = 12) That is, a manual termination (^C). And the log: Sep 2 22:46:07 nimrodel pppd[8031]: sent [LCP EchoReq id=0x7 magic=0xb5db6a9a] Sep 2 22:46:07 nimrodel pppd[8031]: rcvd [LCP EchoRep id=0x7 magic=0xb742d62e] Sep 2 22:46:26 nimrodel pppd[8031]: Terminating connection due to lack of activity. Sep 2 22:46:26 nimrodel pppd[8031]: cbcp_lowerdown Sep 2 22:46:26 nimrodel pppd[8031]: Script /etc/ppp/ip-down started (pid 8910) Sep 2 22:46:26 nimrodel pppd[8031]: sent [LCP TermReq id=0x4 "Link inactive"] Sep 2 22:46:26 nimrodel pppd[8031]: rcvd [LCP TermAck id=0x4] Sep 2 22:46:26 nimrodel pppd[8031]: Connection terminated. Sep 2 22:46:26 nimrodel pppd[8031]: Connect time 3.9 minutes. Sep 2 22:46:26 nimrodel pppd[8031]: Sent 216628 bytes, received 151050 bytes. Sep 2 22:46:26 nimrodel pppd[8031]: Waiting for 1 child processes... Sep 2 22:46:26 nimrodel pppd[8031]: script /etc/ppp/ip-down, pid 8910 Sep 2 22:46:28 nimrodel pppd[8031]: Script /etc/ppp/ip-down finished (pid 8910), status = 0x0 Sep 2 22:46:28 nimrodel pppd[8031]: Exit. In that log, in debug mode, you will see if you get a remote disconnect - if you can decipher it, of course :-) -- Cheers, Carlos Robinson
On Tuesday, 02 September, 2003 16:29, Carlos E. R. wrote: <snip>
First idea. =============
Try strace or ltrace - I think the first one, strace:
<snip>
Second idea - maybe use both simultaneously :-) ============
Edit "/etc/ppp/options", and remove the "#" in the line with the "debug" word. This will produce a lot of extra debug info in "/var/log/localmessages".
<snip> Thanks for the ideas Carlos!!! I'm going to have to do some reading on 'strace' I think. But I'll be trying the options 'debug' idea right away. I found that in windoze, when I was able to get to 5 hours of connect time, it was then that my ISP disconnected me. That happened -each- time I tested in windoze, and -always- at 5 hours, whether I was actively downloading or idle. In linux, I will get the (SIGHUP) to pppd as quick as 30 seconds, and NEVER longer than 59.4 minutes. I don't think it's my ISP, unless they have a dig against linux and not windoze. I'll send back my results as soon as I've concluded these tests. THANKS again!!! Bernd -- "If you want to build a ship, don't drum up the men to gather wood, divide the work, and give orders. Instead, teach them to yearn for the vast and endless sea." Antoine de St. Exupery
The 03.09.02 at 17:27, Bernd wrote:
I'm going to have to do some reading on 'strace' I think. But I'll be trying the options 'debug' idea right away.
I have used strace (and ltrace) several times previously, and found it very usefull to know what a program was doing. The problem is, of course, that the trace file can be huge, specially for ltrace. Look, I just traced the ls command; notice the sizes of the reports: -rw-r--r-- 1 cer users 459838 2003-09-03 02:40 trace-l -rw-r--r-- 1 cer users 12328 2003-09-03 02:41 trace-s Just think what could happen for a long program run!
I'll send back my results as soon as I've concluded these tests.
I'll be interested. -- Cheers, Carlos Robinson
In reading about debugging, I accidently came upon the 'nohup' invocation, which makes a command immune to hangups. Anyone have any suggestions about running 'nohup'??? Thoughts about running it with pppd??? Can I still manually disconnect without hassle??? Bernd -- "If you want to build a ship, don't drum up the men to gather wood, divide the work, and give orders. Instead, teach them to yearn for the vast and endless sea." Antoine de St. Exupery
The 03.09.02 at 18:15, Bernd wrote:
In reading about debugging, I accidently came upon the 'nohup' invocation, which makes a command immune to hangups.
I think that what it does is restart it again if it dies. No, correction, after reading the manual: what it does is make it inmune to closing the terminal where it got started. I don't think that would help here. -- Cheers, Carlos Robinson
On Tuesday, 02 September, 2003 16:29, Carlos E. R. wrote: <snip>
Second idea - maybe use both simultaneously :-) ============
Edit "/etc/ppp/options", and remove the "#" in the line with the "debug" word. This will produce a lot of extra debug info in "/var/log/localmessages". <snip>
Here's the results from /var/log/messages (localmessages has a couple less entries) after unremarking debug & kdebug 3 in options: Sep 2 22:47:18 linux pppd[1527]: Hangup (SIGHUP) Sep 2 22:47:18 linux pppd[1527]: Modem hangup Sep 2 22:47:18 linux pppd[1527]: cbcp_lowerdown Sep 2 22:47:18 linux pppd[1527]: Script /etc/ppp/ip-down started (pid 11862) Sep 2 22:47:18 linux pppd[1527]: Connection terminated. Sep 2 22:47:18 linux pppd[1527]: Connect time 56.5 minutes. Sep 2 22:47:18 linux pppd[1527]: Sent 412389 bytes, received 6696484 bytes. Sep 2 22:47:19 linux modify_resolvconf: restored /etc/resolv.conf.saved.by.pppd.ppp0 to /etc/resolv.conf Sep 2 22:47:19 linux pppd[1527]: Waiting for 1 child processes... Sep 2 22:47:19 linux pppd[1527]: script /etc/ppp/ip-down, pid 11862 Sep 2 22:47:20 linux ip-down: Warning: /etc/resolv.conf not found Sep 2 22:47:20 linux ip-down: No external interface active! Exiting ... Sep 2 22:47:20 linux ip-down: SuSEfirewall2: clearing rules now ... done Sep 2 22:47:20 linux pppd[1527]: Script /etc/ppp/ip-down finished (pid 11862), status = 0x0 Sep 2 22:47:20 linux pppd[1527]: Exit. I'm sorry. I don't see anything that jumps out and says "here I am"! I'm still trying. Any other ideas??? Bernd -- "If you want to build a ship, don't drum up the men to gather wood, divide the work, and give orders. Instead, teach them to yearn for the vast and endless sea." Antoine de St. Exupery
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 03 September 2003 01:00, Bernd wrote: <snip>
bytes. Sep 2 22:47:19 linux modify_resolvconf: restored /etc/resolv.conf.saved.by.pppd.ppp0 to /etc/resolv.conf Sep 2 22:47:19 linux pppd[1527]: Waiting for 1 child processes... Sep 2 22:47:19 linux pppd[1527]: script /etc/ppp/ip-down, pid 11862 Sep 2 22:47:20 linux ip-down: Warning: /etc/resolv.conf not found
Do you have a resolv.conf in /etc ? It looks weird, it seems it used one, but then it says it can't find it. If you don't have one, just make one, don't put anything in it, just make a blank resolv.conf and put it in /etc and see what happens. Soory if this isn't much, I have no other ideas why you would keep getting cut off. John -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3rc2 (GNU/Linux) iD8DBQE/VgYpH5oDXyLKXKQRAtfoAKCFayQT0aOCb8P87MjDJFCXAGbxTgCfZ9sx q5k7pLM8DWn+Cs5G+0qkUwA= =gySp -----END PGP SIGNATURE-----
On Wednesday, 03 September, 2003 08:17, John wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wednesday 03 September 2003 01:00, Bernd wrote:
<snip>
bytes. Sep 2 22:47:19 linux modify_resolvconf: restored /etc/resolv.conf.saved.by.pppd.ppp0 to /etc/resolv.conf Sep 2 22:47:19 linux pppd[1527]: Waiting for 1 child processes... Sep 2 22:47:19 linux pppd[1527]: script /etc/ppp/ip-down, pid 11862 Sep 2 22:47:20 linux ip-down: Warning: /etc/resolv.conf not found
Do you have a resolv.conf in /etc ? It looks weird, it seems it used one, but then it says it can't find it.
Agreed! It IS wierd. There is a /etc/resolv.conf file. Bernd
The 03.09.03 at 13:41, Bernd wrote:
Do you have a resolv.conf in /etc ? It looks weird, it seems it used one, but then it says it can't find it.
Agreed! It IS wierd. There is a /etc/resolv.conf file.
Your /etc/ppp/ip-down is the original one? /etc/resolv.conf is readable? -- Cheers, Carlos Robinson
On Wednesday, 03 September, 2003 16:56, Carlos E. R. wrote:
The 03.09.03 at 13:41, Bernd wrote:
Do you have a resolv.conf in /etc ? It looks weird, it seems it used one, but then it says it can't find it.
Agreed! It IS wierd. There is a /etc/resolv.conf file.
Your /etc/ppp/ip-down is the original one? /etc/resolv.conf is readable?
Stock! Out of the box! And yes, /etc/resolv.conf is readable. I checked it after I saw the info in the logs. All it contains is the changes to the nameserver. Wait!!! I know it was there, along with /etc/resolv.conf.saved.by.pppd.ppp0, now they're not there. On checking, the file is /etc/ppp/resolv.conf, which I just copied and checked permissions on, and put in /etc. Now at least I won't have that line in the logs anymore. Thanks again!!! Bernd -- "If you want to build a ship, don't drum up the men to gather wood, divide the work, and give orders. Instead, teach them to yearn for the vast and endless sea." Antoine de St. Exupery
The 03.09.02 at 23:00, Bernd wrote:
Here's the results from /var/log/messages (localmessages has a couple less entries) after unremarking debug & kdebug 3 in options:
Try enabling or entering this line in "/etc/syslog.conf": kern.* -/var/log/kernel And restart syslog: rcsyslog restart; perhaps you can see something in the kernel log, who knows.
I'm sorry. I don't see anything that jumps out and says "here I am"! I'm still trying.
No... it doesn't :-(
Any other ideas???
Anything on the LCP entries, just before the signal? Every minute you should see something like this: Sep 3 20:33:08 nimrodel pppd[3414]: sent [LCP EchoReq id=0x9 magic=0x6534bb7e] Sep 3 20:33:08 nimrodel pppd[3414]: rcvd [LCP EchoRep id=0x9 magic=0xfc54d42f] Sep 3 20:33:38 nimrodel pppd[3414]: sent [LCP EchoReq id=0xa magic=0x6534bb7e] Sep 3 20:33:38 nimrodel pppd[3414]: rcvd [LCP EchoRep id=0xa magic=0xfc54d42f] It is a kind of connection ping. If there is no response, pppd will kill the connection, assuming it doesn't work. This is a normal "off" sequence: Sep 3 20:34:08 nimrodel pppd[3414]: sent [LCP EchoReq id=0xb magic=0x6534bb7e] Sep 3 20:34:08 nimrodel pppd[3414]: rcvd [LCP EchoRep id=0xb magic=0xfc54d42f] Sep 3 20:34:20 nimrodel pppd[3414]: Terminating connection due to lack of activity. Sep 3 20:34:20 nimrodel pppd[3414]: cbcp_lowerdown Sep 3 20:34:20 nimrodel pppd[3414]: Script /etc/ppp/ip-down started (pid 4878) Sep 3 20:34:20 nimrodel pppd[3414]: sent [LCP TermReq id=0x4 "Link inactive"] Sep 3 20:34:20 nimrodel pppd[3414]: rcvd [LCP TermAck id=0x4] Sep 3 20:34:20 nimrodel pppd[3414]: Connection terminated. Sep 3 20:34:20 nimrodel pppd[3414]: Connect time 5.8 minutes. Sep 3 20:34:20 nimrodel pppd[3414]: Sent 66119 bytes, received 772542 bytes. Sep 3 20:34:20 nimrodel pppd[3414]: Waiting for 1 child processes... Sep 3 20:34:20 nimrodel pppd[3414]: script /etc/ppp/ip-down, pid 4878 Sep 3 20:34:22 nimrodel pppd[3414]: Script /etc/ppp/ip-down finished (pid 4878), status = 0x0 Sep 3 20:34:22 nimrodel pppd[3414]: Exit. And this is a manual off (ctrl-C) sequence: Sep 2 02:23:56 nimrodel pppd[9744]: sent [LCP EchoReq id=0x58 magic=0xe1168c6] Sep 2 02:23:56 nimrodel pppd[9744]: rcvd [LCP EchoRep id=0x58 magic=0xe147ad75] Sep 2 02:24:17 nimrodel pppd[9744]: Terminating on signal 15. Sep 2 02:24:17 nimrodel pppd[9744]: cbcp_lowerdown Sep 2 02:24:17 nimrodel pppd[9744]: Script /etc/ppp/ip-down started (pid 11031) Sep 2 02:24:17 nimrodel pppd[9744]: sent [LCP TermReq id=0x4 "User request"] Sep 2 02:24:17 nimrodel pppd[9744]: rcvd [LCP TermAck id=0x4] Sep 2 02:24:17 nimrodel pppd[9744]: Connection terminated. Sep 2 02:24:17 nimrodel pppd[9744]: Connect time 44.4 minutes. Sep 2 02:24:17 nimrodel pppd[9744]: Sent 560060 bytes, received 7929281 bytes. Sep 2 02:24:17 nimrodel pppd[9744]: Waiting for 1 child processes... Sep 2 02:24:17 nimrodel pppd[9744]: script /etc/ppp/ip-down, pid 11031 In both cases, I see a "TermReq" message; but not in your case. It seems as if the connection goes down fast, not controlled by pppd. Either that, or LCP logs aren't printed in your log :-? If the "TermReq" isn't really there, I would suspect it is the modem terminating the call. What for, why, I can not imagine. Errors, noise... are you sure the init string is the same as in windows? It is also possible in windows to produce a log of the connection: make one, and compare.
Bernd
-- Cheers, Carlos Robinson
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 03 September 2003 08:00, Bernd wrote:
On Tuesday, 02 September, 2003 16:29, Carlos E. R. wrote: <snip>
Second idea - maybe use both simultaneously :-) ============
Edit "/etc/ppp/options", and remove the "#" in the line with the "debug" word. This will produce a lot of extra debug info in "/var/log/localmessages".
<snip> Just a thought You said your modem works with the init scripts in windows and they were different in Linux. Have you tried using the AT commands in wvdail?
Ian - -- A child of five would understand this. Send someone to fetch a child of five. Groucho Marx - ---------------------------------------------------- This mail has been scanned for virus by AntiVir for UNIX Copyright (C) 1994-2003 by H+BEDV Datentechnik GmbH. PGP ID: 589F8449 Fingerprint: EB1C FACF 6BEB 540E 8AC0 F04E 2A25 A2F1 589F 8449 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/VmYJKiWi8VifhEkRApoaAJ0WTU00F6YGTzC/fforZOk3JYLm0gCfaU7G 6yYrywIjW4csPUrn/NGzWq4= =s/Zf -----END PGP SIGNATURE-----
participants (7)
-
Bernd
-
Carlos E. R.
-
Charles Philip Chan
-
david stevenson
-
Ian David Laws
-
John
-
suse@avoncliff.com