View previous topic :: View next topic |
Author |
Message |
holmis n00b
Joined: 16 Mar 2003 Posts: 72 Location: Sweden
|
Posted: Sat Jul 03, 2004 4:15 pm Post subject: dialup --> pppd dies |
|
|
Greetings gentoo'er!
I'm a n00b when it comes to dialup on Linux (and other OS's too ).
Have tried now for a long time to get Gentoo to dial out but -- no success. First tried kppp (they say it is easy and since i run KDE...). It dials and so, but then i get the following error message:
Code: |
The pppd daemon died unexpectedly!
Exit status: 16
See 'man pppd' for an explanation of the error codes or take a look at the kppp FAQ on http://devel-home.kde.org/~kppp/index.html
|
(and no, the doc pointed to by the message doesn't help me)
The log doesn't say much either:
Code: |
Jul 3 14:05:54 [pppd] pppd 2.4.1 started by johan, uid 1000
Jul 3 14:05:54 [pppd] Using interface ppp0
Jul 3 14:05:54 [pppd] Connect: ppp0 <--> /dev/tts/LT0
Jul 3 14:06:01 [pppd] Hangup (SIGHUP)
Jul 3 14:06:01 [pppd] Modem hangup
Jul 3 14:06:01 [pppd] Connection terminated.
Jul 3 14:06:01 [pppd] Exit.
|
The log from kppp complains:
Code: |
Cannot open any of the following logfiles:
/var/log/syslog.ppp
/var/log/syslog
/var/log/messages
|
Mabe that has something to do with metalog (dont' think it matters now)...
If I run kppp as root nothing happens, it dials and then nothing....
So, I left kppp and tried wvdial instead. But again, the same result:
Code: |
# wvdial
--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT950209397704900
--> Waiting for carrier.
ATDT950209397704900
CONNECT 37333 NoEC
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Jul 3 17:34:03 2004
--> pid of pppd: 1757
--> Disconnecting at Sat Jul 3 17:34:11 2004
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT950209397704900
--> Waiting for carrier.
ATDT950209397704900
CONNECT 31200 NoEC
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Jul 3 17:35:15 2004
--> pid of pppd: 1761
Caught signal #2! Attempting to exit gracefully...
--> Disconnecting at Sat Jul 3 17:35:20 2004
|
What is this?
(btw: what about /etc/init.d/net.ppp0 and pppconfig. I don't understand what they do or if I need them )
[EDIT]: I just found this this thread https://forums.gentoo.org/viewtopic.php?t=16941&postdays=0&postorder=asc&highlight=tele2&start=0 where the threadstarted claims that Tele2 (which is my ISP) is using PPPoE. I'll try using that to see....
[/EDIT] |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Sat Jul 03, 2004 5:02 pm Post subject: |
|
|
holmis,
PPP is getting started too soon.
The sequence of events should be controlled by a chat script and goes like this.
Computer and modem exchange commands and data to get the modem set up and dialling. You are getting that, thats what the ATDT<phone number> is.
The two modems agree on a communications standard. You get that too. (indicated by the Connect message)
Now your ISP should ask for a user name to which the chat script replies. The ISP prompts for a password and chat again replies.
Its only now that PPP should be launched.
From your post, there is no evidence of a user name and password exchange. Be careful about posting them. they are in clear text in the log. Somewhere, you are missing your username and password in the set up.
I'm sure that PPPoE is a red herring. That would only be used with broadband (*DSL). _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
holmis n00b
Joined: 16 Mar 2003 Posts: 72 Location: Sweden
|
Posted: Sun Jul 04, 2004 7:07 am Post subject: |
|
|
Quote: |
PPP is getting started too soon.
[...]
Somewhere, you are missing your username and password in the set up.
|
I then wonder where that could be missing . I enter passwd and uname in kppp (naturally -- can't really miss that one), but when it comes to PPP I don't know. To me it appears as everything can be done in like 5+ different places in PPP.
I bet this means that i will have to manually make a chat script. Don't know how, oh. (tried b4 -- didn't really get it).
Quote: | I'm sure that PPPoE is a red herring. That would only be used with broadband (*DSL). |
hm Yes |
|
Back to top |
|
|
veezi Apprentice
Joined: 10 Nov 2003 Posts: 226
|
Posted: Sun Jul 04, 2004 8:49 am Post subject: |
|
|
I say stick with kppp .. it's very user friendly and takes care of setting up everything for you.
I really don't see how one can conclude that pppd is starting too soon!
Add 'debug' to pppd options under kppp. Watch your daemon log, you should get more details on what's going on (tail -f /var/log/daemon).
Have you covered all the basic (correct phone number, correct username and password, etc.)? Does it work from any other machine (even a Windows one)?
Cheers, |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Sun Jul 04, 2004 12:56 pm Post subject: |
|
|
vzeidat,
PPP should start only after the password exchnage. The password exchange would have been in the log if it happened. That makes it look like PPP started as soon as the connection was established, which is too soon.
kppp should prompt you for everything thats needed and is a whole lot simpler to set up than writing your own chat script.
I expect that kppp is just a pretty fron end to chat, so have a look in /etc/ppp. You should have a few -secrests files for your username and password and even the chat script (I don't recall the file name at the moment) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
veezi Apprentice
Joined: 10 Nov 2003 Posts: 226
|
Posted: Sun Jul 04, 2004 4:45 pm Post subject: |
|
|
NeddySeagoon wrote: | vzeidat,
PPP should start only after the password exchnage. The password exchange would have been in the log if it happened. That makes it look like PPP started as soon as the connection was established, which is too soon.
kppp should prompt you for everything thats needed and is a whole lot simpler to set up than writing your own chat script.
I expect that kppp is just a pretty fron end to chat, so have a look in /etc/ppp. You should have a few -secrests files for your username and password and even the chat script (I don't recall the file name at the moment) |
Well, I'm probably still a n00b But here're my thoughts.
NeddySeagoon, seems that your ISP setup requires you to provide username/password in a terminal session, followed by issuing (most probably) ppp and then to start pppd at your end. All of which you put in your chat script. Am I right? Does your chat script include things like 'EXPECT "username" .. EXPECT "password")?
It's a mistake to assume that all ISP setups out there use this kind of authentication. In fact, most will just start ppp negotiation as soon as you dial, and leave authentication to be handled by ppp (mostly PAP, some CHAP, some worse MSCHAP ). In such a case password exchange will occur later on in the process after pppd is started and ConfReq/ConfAck packets are exchaned.
Another thing, kppp doesn't use chat scripts, it's not a front end for chat/call scripts. It handles chatting with the modem programatically.
My openion, given the short log provided we can't tell what the problem is. Let's get more details and see.
Cheers, |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Sun Jul 04, 2004 6:35 pm Post subject: |
|
|
veezi,
I'm all for more info and stand corrected about kppp.
How about running minicom to talk to the modem, do the dial manually and see what comes in from the ISP? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|