Click to See Complete Forum and Search --> : "Cannot create log file" ??


Hani_2000
01-31-2001, 11:14 AM
After working a lot of time on trying to get the modem to work under linux, i got this new error. After dialing the server, connecting and when it shows "Connecting to network" it disconnects and says "Daemon died unexpectedly!", when clicking on details, it says "cannot create log file". I read all the HOW-TOs and configured everything, but it can't work. i am using Corel linux BTW.

Any help is appreciated.
Hani

------------------

Ardith
01-31-2001, 04:03 PM
Is it possible that it's having trouble with file permissions? If you're not running it as root (you could try that to test it, but I wouldn't suggest that as permanent setup), it might be having a little trouble. Anybody know more about Corel than me?

furrycat
01-31-2001, 10:10 PM
Try running pppd under strace -f and look for calls to open() which fail.

strace -f -o logfile pppd
less logfile

You'll see a line like

open("/some/file", O_WRONLY) = -1 EACCES (Permission denied)

Then you know that /some/file has the wrong permissions...

Hani_2000
02-01-2001, 07:26 AM
Ok, thanks, i will try that and tell you what happens http://discussions.linuxplanet.com/smile.gif

Hani_2000
02-05-2001, 11:27 AM
I tried that, but it i couldn't find anything http://discussions.linuxplanet.com/frown.gif

I really need help, it's the first time i install linux, and i would like to learn a little about it. I am still searching for an answer...

Hani

------------------

Ardith
02-05-2001, 03:50 PM
Okay, just to make sure it's not in the permissions, log in as root, and try to dial up to your ISP. If that works, it's still a file permission problem. What program do you run to dial up with?

Hani_2000
02-06-2001, 10:20 AM
I always log on as root, and as for the prgoram, use the "dial-up"... wich is kppp.

Ardith
02-06-2001, 04:23 PM
Boy, I'm at a bit of a loss now. The message is 'cannot create log file' and not 'cannot create lock file', right? The last one is easy to fix, but I've never seen the first one myself.

furrycat
02-07-2001, 02:04 AM
OK why don't you post the output of the strace command for us to have a look at?

Hani_2000
02-07-2001, 10:22 AM
I'll do that when i log into linux today http://discussions.linuxplanet.com/smile.gif

Hani_2000
02-07-2001, 01:02 PM
Take a look at this:


Jan 26 21:08:20 CorelLinux pppd[655]: PAP authentication failed
Jan 26 21:19:47 CorelLinux pppd[670]: unrecognized option 'AT'
Jan 26 21:20:42 CorelLinux pppd[675]: PAP authentication failed
Jan 26 21:22:03 CorelLinux pppd[678]: PAP authentication failed
Jan 26 21:25:26 CorelLinux pppd[690]: Connect script failed
Jan 26 21:27:19 CorelLinux pppd[699]: PAP authentication failed
Jan 26 21:41:36 CorelLinux pppd[716]: Connect script failed
Jan 26 21:43:20 CorelLinux pppd[719]: PAP authentication failed
Jan 26 21:45:03 CorelLinux pppd[722]: Connect script failed
Jan 26 21:46:05 CorelLinux pppd[725]: PAP authentication failed
Jan 26 21:55:31 CorelLinux pppd[732]: PAP authentication failed
Jan 26 21:57:42 CorelLinux pppd[733]: PAP authentication failed
Jan 26 22:00:34 CorelLinux pppd[741]: PAP authentication failed
Jan 26 22:02:24 CorelLinux pppd[743]: Connect script failed
Feb 7 18:55:35 CorelLinux pppd[491]: PAP authentication failed
Feb 7 18:57:03 CorelLinux pppd[496]: PAP authentication failed

furrycat
02-07-2001, 09:36 PM
Although that isn't what I asked for http://discussions.linuxplanet.com/smile.gif it does show one very interesting little problem. Look at the line that says


Jan 26 21:19:47 CorelLinux pppd[670]: unrecognized option 'AT'


Are you trying to send modem commands in your /etc/ppp/options file by any chance? They should go in a chat script.

Minimal (really minimal) chat script:

"" ATZ
OK ATDT12345678
CONNECT \b\c


You're also supposed to put in timeouts and other stuff. Then you launch pppd with "pppd connect 'chat -v -f /path/to/chat/script'" and you should see messages from chat in the same place you saw those from pppd.

Hani_2000
02-08-2001, 06:56 AM
I am not sending anything, all i do is run the Dial up program, i don't connect through the console commands.

furrycat
02-08-2001, 08:42 PM
Sorry, you've lost me. I don't know diddly squat about the graphical dialers. I would suggest verifying your connection by running pppd from the console and if you feel like banging your head against a brick wall then by all means go back to the gui after you're sure everything's behaving itself.

Hani_2000
02-10-2001, 10:18 AM
And how do i connect through the console?

furrycat
02-11-2001, 08:02 AM
Please don't take this as a flame because it isn't supposed to be. However I don't see how if you "read all the HOWTOs and configured everything" you wouldn't know how to connect from the console. In any case my third post tells you the commands you need.