By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2529 - KPPP fails everytime on PCLinuxOS with TDE R14.0.1
Summary: KPPP fails everytime on PCLinuxOS with TDE R14.0.1
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdenetwork (show other bugs)
Version: R14.0.1 [Trinity]
Hardware: i386 Linux
: P5 normal
Assignee: Slávek Banko
URL:
Depends on:
Blocks: R14.0.4
  Show dependency treegraph
 
Reported: 2015-09-19 09:53 CDT by Alex Couture
Modified: 2016-10-02 03:06 CDT (History)
4 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
tdenetwork: Add kppp options (1.30 KB, patch)
2016-01-14 21:38 CST, Slávek Banko
Details | Diff
kppp error dialog at startup (16.69 KB, image/png)
2016-02-07 05:45 CST, Michele Calgaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Couture 2015-09-19 09:53:25 CDT
Hi,

On my PCLinuxOS TDE remaster with TDE R14.0.1, KPPP fails everytime to establish a connection to 56k classic internet. It did work on 3.5.13.2

It dials and right after dialing, KPPP fails.

Another problem is that is asks for root password to run KPPP. It did not do that on original KDE3 or on KDE4.

Details:
PCLinuxOS 2015 base system
TDE R14.0.1
Elsa MicroLink 56k true hardware modem
CH341 USB-to-Serial adapter

Thank you! Hoping this will be resolved for r14.0.2!
-Alexandre
Comment 1 Michele Calgaro 2015-09-20 04:04:29 CDT
>It dials and right after dialing, KPPP fails.
Alex, can you add some more info about how it fails?
Comment 2 Alex Couture 2015-09-20 08:55:45 CDT
Hi,

The normal sequence is:
1.Click on connect
2.Them modem dials the number
3.You hear modem sounds
4.The connection is established
5.The KPPP window minimize and you're connected.

What happens:
The normal sequence is:
1.Click on connect
2.Them modem dials the number
---3.KPPP fails and you get back to the KPPP base window

This prevents myself from using my own remaster at home...
I'll still stick to 3.5.13.2...

-Alexandre
Comment 3 Alex Couture 2015-09-27 12:55:08 CDT
Hi,

As a followup for this bug, here is what I did try:
-I installed back the same kernel version as I had on the last release
of my remaster and it still does exactly the same problem

When it fails, it says that the ppp daemon exit status is :2
As it says on http://linux.die.net/man/8/pppd
It means:
An immediately fatal error of some kind occurred, such as an essential system call failing, or running out of virtual memory. 


I would really really like to have this issue resolved for the next TDE release. If I can provide more info, just ask!

-Alexandre
Comment 4 Slávek Banko 2016-01-12 13:01:41 CST
I compared the differences between source code kppp 3.5.13.2 and R14.0.2 and I see nothing major. Except for renaming are the only changes:

Use alternate 'resolv.conf' in kppp, if available
http://mirror.git.trinitydesktop.org/cgit/tdenetwork/commit/?id=e0801ae2

Fix freebsd support in kppp
http://mirror.git.trinitydesktop.org/cgit/tdenetwork/commit/?id=1aeb94bd

There simply can not see something that should be a problem.

Please, can you add to the options for pppd 'dump' that lists the options with which was pppd triggered?
Comment 5 Alex Couture 2016-01-12 20:17:31 CST
Hi,


I found the bug: A file is missing:
/etc/ppp/peers/kppp-options (just create a blank leafpad file...)

I don't understand why, but every other times, it did not wrote in the error log that this file was needed. Why does this time, it was written: Can't open option file:/etc/ppp/peers/kppp-options:No such file or directory

Also, on PCLinuxOS, kppp asks for being run as root. It wasn't like that in the KDE 3 era, and I do not thing that it is a good idea to give the root password to the users, just to let them go on internet.

-Alexandre
Comment 6 Michele Calgaro 2016-01-13 04:48:52 CST
> /etc/ppp/peers/kppp-options (just create a blank leafpad file...)
Interesting. I think there is a bug here.
Looking at the kppp package for debian (same structure as ubuntu I guess), there is a file called 
/opt/trinity/etc/ppp/peers/kppp-options
but none called
/etc/ppp/peers/kppp-options

So if the software is looking for the second one, then there is a problem ;-)
Either we move that file back to /etc or we change the software to look at the /opt location. I think the first one is better.
Slavek, what do you think?
Comment 7 Slávek Banko 2016-01-13 10:26:01 CST
(In reply to Michele Calgaro from comment #6)
> > /etc/ppp/peers/kppp-options (just create a blank leafpad file...)
> Interesting. I think there is a bug here.
> Looking at the kppp package for debian (same structure as ubuntu I guess),
> there is a file called 
> /opt/trinity/etc/ppp/peers/kppp-options
> but none called
> /etc/ppp/peers/kppp-options
> 
> So if the software is looking for the second one, then there is a problem ;-)
> Either we move that file back to /etc or we change the software to look at
> the /opt location. I think the first one is better.
> Slavek, what do you think?

Now I verified that in kppp from 3.5.13.2 the file kppp-options is also in /opt/trinity/etc/ppp/peers and not in /etc/ppp/peers. So the question still remains: why has not the same problem on 3.5.13.2?

With regard to other distributions that probably not use kppp-options, I propose to add checking the existence of the file. For example, the patch as follows:

--- a/kppp/connect.cpp
+++ b/kppp/connect.cpp
@@ -1253,7 +1253,9 @@ bool ConnectWidget::execppp() {
   command += " " + gpppdata.speed();

   command += " -detach";
-  command += " call kppp-options";
+  if (TQFile::exists("/etc/ppp/peers/kppp-options")) {
+    command += " call kppp-options";
+  }

   if(gpppdata.ipaddr() != "0.0.0.0" ||
      gpppdata.gateway() != "0.0.0.0") {
Comment 8 Alex Couture 2016-01-13 17:42:17 CST
Hi,

Why not just ship the package with the required file, instead of changing code?

-Alexandre
Comment 9 Michele Calgaro 2016-01-14 07:21:45 CST
> Why not just ship the package with the required file, instead of changing code?
I think this solution is better, since the file is probably required for some reason. Just testing for existance and don't do something is the file is not there, sounds like we are taking out some functionality that was meant to be there, IMO.
Comment 10 Slávek Banko 2016-01-14 09:17:20 CST
(In reply to Michele Calgaro from comment #9)
> > Why not just ship the package with the required file, instead of changing code?
> I think this solution is better, since the file is probably required for
> some reason. Just testing for existance and don't do something is the file
> is not there, sounds like we are taking out some functionality that was
> meant to be there, IMO.

I have no objection to move the file to the /etc/ppp/peers and not to change the code.

Just note that the file is in /opt/trinity/etc/ppp/peers already in 3.5.12 (older packages are not available), and that it remains unanswered question why this is a problem now - in R14.x?
Comment 11 Alex Couture 2016-01-14 11:48:51 CST
Hi,

I remember having to create this file sometimes in the past, but I don't remember having to create it in PCLinuxOS. My theory is that since I previously based my remaster on KDE PCLinuxOS, the file was probably present, since KDE4 kppp works, him :) .


But the real question, is why did all the other time I wanted to make kppp work in R14.zzz, the message saying to create the file didn't appear at all, except for 1 time???

-Alexandre
Comment 12 Slávek Banko 2016-01-14 11:56:53 CST
(In reply to Alex Couture from comment #11)
> Hi,
> 
> I remember having to create this file sometimes in the past, but I don't
> remember having to create it in PCLinuxOS. My theory is that since I
> previously based my remaster on KDE PCLinuxOS, the file was probably
> present, since KDE4 kppp works, him :) .
> 
> 
> But the real question, is why did all the other time I wanted to make kppp
> work in R14.zzz, the message saying to create the file didn't appear at all,
> except for 1 time???
> 
> -Alexandre

In the finals it has one curious fact: PCLinuxOS is based on RPM, while kppp-options are installed only in Debian and Ubuntu. So move kppp-options in Debian and Ubuntu packages anyway will not affect the function on the PCLinuxOS ;)
Comment 13 Alex Couture 2016-01-14 12:29:59 CST
eh, can you please find a non-distro-specific solution?

The base system for my remaster was PCLinuxOS with KDE4, but with KDE4 removed. Probably the system kept the file, provided by the KDE4 kppp, even after KDE4 removal.

-Alexandre
Comment 14 Slávek Banko 2016-01-14 21:38:30 CST
Created attachment 2605 [details]
tdenetwork: Add kppp options

So yeah, we have a proposal patch that could be common to all distributions :)

Besides this, of course, we also need patches for tde-packaging. I have already tested patch for Debian and Ubuntu.
Comment 15 Michele Calgaro 2016-01-15 07:12:24 CST
If the patch works well, it looks ok to me ;-)
Alex should do the final test since he is the one that can reproduce the original problem in first place.
Comment 16 Slávek Banko 2016-01-17 18:02:44 CST
Alexandre, please, can you verify that the problem is solved? In the Preliminary stable builds are updated packages.
Comment 17 Alex Couture 2016-01-17 18:27:28 CST
Hi,

I'll be able to test it in a few days!

Can you also look at why do I require to run kppp as root? I do not like to give the root password to the users, just to let them use internet!

Thank you!
-Alexandre
Comment 18 Michele Calgaro 2016-01-18 06:22:57 CST
> Can you also look at why do I require to run kppp as root? I do not like to 
> give the root password to the users, just to let them use internet!
On my Debian this is not required, I can start kppp as a normal user.
I am not sure if Ubuntu is set up differently though.
Have you check the TDE menu to make sure kppp is not being run as root?
Or perhaps some security settings for internet access?
If you google "kppp requires root password" there are quite a few links coming up :-)
Beside that, is there any other bugs that prevents you migrating to R14.0 in a stable manner?
Comment 19 Alex Couture 2016-01-18 12:33:05 CST
Hi,

I guess that it could be a packaging problem on PCLinuxOS.
Besides switching to Plasma 5 on many computers who are capable of running it and much lower interest in TDE due to its userbase, it should now be better.

-Alexandre
Comment 20 Michele Calgaro 2016-02-07 05:45:37 CST
Created attachment 2622 [details]
kppp error dialog at startup

If both /opt/trinity/bin/kppp and /usr/sbin/pppd do not have the 's' bit permission, the attached error dialog is displayed.
Alex, is this what you are seeing?
Comment 21 Michele Calgaro 2016-10-01 09:17:46 CDT
Patch was pushed in Jan 2016 by Slavek (commit affe074 - R14.1 and 1a396e9 - R14.0).
Since we believe the bug has been fixed and given the long bug inactivity, I am closing the bug.
Feel free to reopen it should the problem rise again.
Comment 22 Slávek Banko 2016-10-01 10:06:55 CDT
In fact, one note: Because the problem is not in relation with r14.0.x branch, there is no reason to put a bug to the list for bug 2575. Instead, should be in list for bug 2247.
Comment 23 Michele Calgaro 2016-10-01 22:54:02 CDT
> In fact, one note: Because the problem is not in relation with r14.0.x branch, 
> there is no reason to put a bug to the list for bug 2575.

> On my PCLinuxOS TDE remaster with TDE R14.0.1

Original bug reported against R14.0.x. Also patch already pushed to R14.0 branch long time ago.
Comment 24 Slávek Banko 2016-10-02 03:06:15 CDT
(In reply to Michele Calgaro from comment #23)
> > In fact, one note: Because the problem is not in relation with r14.0.x branch, 
> > there is no reason to put a bug to the list for bug 2575.
> 
> > On my PCLinuxOS TDE remaster with TDE R14.0.1
> 
> Original bug reported against R14.0.x. Also patch already pushed to R14.0
> branch long time ago.

Oh, sorry, that comment 22 should be bug in 2530. This bug of course is related to the R14.0.x. I overlooked that after sending comment 22 on bug 2530 was to me load this bug...