LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-06-2013, 11:46 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,006

Rep: Reputation: 30
how to strace?


I have a problem setting up pptpd. I get an input / output errorin the logs.
A torubleshooter suggestes this:
Quote:
Symptom: on a PPTP server running pptpd, the following message may appear when all incoming tunnel requests fail:

pptpd[5740]: GRE: read(fd=5,buffer=804dc00,len=8196) from PTY failed: status = -1 error = Input/output error

Diagnosis: pppd was started by pptpd but was unable to operate, and so terminated quickly. pptpd tried to read data from pppd but found none. There are many reasons why pppd could have failed, but the most likely are configuration file errors.

pptpd incorrectly hides all pppd error output. This is a defect and should be fixed. It apparently doesn't even wait for and report the pppd exit status.

Solution: check the configuration files. A simple typo will cause this error. It is easy to have pppd tell you where the typo is. Here is how:

Try running pppd against the configuration files in the same way that pptpd would run it. If you strace the pptpd, you can detect the command line given to pppd (just after it says "launching pppd"), and then you can run that command manually in a shell to see what objections pppd has to the options.

When we did an strace just now, we got this line that was valuable;

12704 execve("/usr/sbin/pppd", ["/usr/sbin/pppd", "local", "file", "/etc/ppp/pptpd-options", "50", "10.0.1.1:10.0.1.3"], [/* 18 vars */]) = 0

1/ How do I run ppd against a config file &
2/ How do I do a strace?

Last edited by qwertyjjj; 01-06-2013 at 02:35 PM.
 
Old 01-06-2013, 01:54 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
Quote:
Originally Posted by qwertyjjj View Post
How do I run ppd against a config file
You don't. Try http://pptpclient.sourceforge.net/ho...is.phtml#debug instead and next time please mark text you didn't write yourself (basically ninety nine per cent of your post).
 
Old 01-06-2013, 02:39 PM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,006

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
You don't. Try http://pptpclient.sourceforge.net/ho...is.phtml#debug instead and next time please mark text you didn't write yourself (basically ninety nine per cent of your post).
but do i enable pppd debug or pptpd?
it is pptpd trying to start the pppd so i am not sure how it is calling it

Last edited by qwertyjjj; 01-06-2013 at 02:42 PM.
 
Old 01-06-2013, 03:40 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
Quote:
Originally Posted by qwertyjjj View Post
but do i enable pppd debug or pptpd?
For Pptpd see 'man pptpd' (see "--debug") and for pppd see 'man pppd' ("debug dump"). Just like the first sentence below the "How to enable debug logging?" says.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
strace help sp149 Linux - General 2 07-21-2012 09:48 AM
[SOLVED] strace fakie_flip Linux - Software 5 07-13-2012 02:27 PM
strace palisetty_suman Linux - Newbie 2 07-01-2012 08:24 AM
How accurate is strace? cat_n_mouse Linux - Newbie 4 08-14-2011 02:55 AM
Usage of strace mdb84 Linux - Software 1 03-25-2005 02:13 AM


All times are GMT -5. The time now is 08:59 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration