You are not logged in.

#1 2017-04-01 03:09:56

dxcqcv
Member
Registered: 2014-05-04
Posts: 38

pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

Yestoday, I updated my system, use blow commands

# pacman -Syuw                           
# rm /etc/ssl/certs/ca-certificates.crt  
# pacman -Su   --force

then , I found my pptpclient always terminated, I do not know why , I have not changed it, it works before yestoday.

the terminated info from pptpclient is

Modem hangup
Sent 1002073833 bytes, received 0 bytes
MPPE disabled
Connection terminated
Waiting for 1 child processes...
    script /etc/ppp/ip-down, pid 2726
Script /etc/ppp/ip-down finished (pid 2726), status = 0x0

I know update with force is dangerous, but how do I can fix it?

UPDATED:

when I debug `pptpclient` using command:

   sudo pon myVpn debug dump logfd 2 nodetach 

then the debug info as:


    pppd options in effect:
    debug           # (from command line)
    nodetach                # (from command line)
    logfd 2         # (from command line)
    dump            # (from command line)
    noauth          # (from /etc/ppp/options)
    name dxcqcv             # (from /etc/ppp/peers/myVpn)
    remotename PPTP         # (from /etc/ppp/peers/myVpn)
                    # (from /etc/ppp/options)
    pty pptp p1.hk3.flydidu.com --nolaunchpppd              # (from /etc/ppp/peers/myVpn)
    crtscts         # (from /etc/ppp/options)
                    # (from /etc/ppp/options)
    asyncmap 0              # (from /etc/ppp/options)
    mru 1400                # (from /etc/ppp/options)
    mtu 1400                # (from /etc/ppp/options)
    silent          # (from /etc/ppp/options)
    lcp-echo-failure 4              # (from /etc/ppp/options)
    lcp-echo-interval 30            # (from /etc/ppp/options)
    hide-password           # (from /etc/ppp/options)
    ipparam myVpn           # (from /etc/ppp/peers/myVpn)
    proxyarp                # (from /etc/ppp/options)
    usepeerdns              # (from /etc/ppp/peers/myVpn)
    nobsdcomp               # (from /etc/ppp/options)
    nodeflate               # (from /etc/ppp/options)
    require-mppe-128                # (from /etc/ppp/peers/myVpn)
    noipx           # (from /etc/ppp/options)
    using channel 8
    Using interface ppp0
    
    
    Connect: ppp0 <--> /dev/pts/4
    ***Error: either "to" is duplicate, or "uid" is a garbage.***
    rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x80de6b20> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <magic 0xd2626b7a> <pcomp> <accomp>]
    sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x80de6b20> <pcomp> <accomp>]
    rcvd [LCP ConfAck id=0x1 <mru 1400> <asyncmap 0x0> <magic 0xd2626b7a> <pcomp> <accomp>]
    sent [LCP EchoReq id=0x0 magic=0xd2626b7a]
    rcvd [LCP EchoReq id=0x0 magic=0x80de6b20]
    sent [LCP EchoRep id=0x0 magic=0xd2626b7a]
    rcvd [CHAP Challenge id=0x7d <94f97c87ea84a9097b3910d403d0ab14>, name = "pptpd"]
    Warning - secret file /etc/ppp/chap-secrets has world and/or group access
    added response cache entry 0
    sent [CHAP Response id=0x7d <289521c7e2bf1d1a2d3bd8addb8b494e0000000000000000d8ae891c6114fbe4097ef6b89fef69e516540b92f2198a3e00>, name = "dxcqcv"]
    rcvd [LCP EchoRep id=0x0 magic=0x80de6b20]
    rcvd [CHAP Success id=0x7d "S=A37F545150DBF921600B0B681B1E1ADDD7238617"]
    response found in cache (entry 0)
    CHAP authentication succeeded
    sent [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
    rcvd [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
    sent [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
    rcvd [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
    MPPE 128-bit stateless compression enabled
    sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    
    rcvd [IPCP ConfReq id=0x1 <addr 10.10.0.1>]
    sent [IPCP ConfAck id=0x1 <addr 10.10.0.1>]
    rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
    sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    rcvd [IPCP ConfNak id=0x2 <addr 10.10.0.21> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
    sent [IPCP ConfReq id=0x3 <addr 10.10.0.21> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
    rcvd [IPCP ConfAck id=0x3 <addr 10.10.0.21> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
    Cannot determine ethernet address for proxy ARP
    local  IP address 10.10.0.21
    remote IP address 10.10.0.1
    primary   DNS address 8.8.8.8
    secondary DNS address 8.8.4.4
    Script /etc/ppp/ip-up started (pid 8055)
    Script /etc/ppp/ip-up finished (pid 8055), status = 0x0

when this time the ppp0 was created, then I routed as:

   sudo ip route replace default dev ppp0 

It should be worked like before, but it didn't after updated Arch, and show error message as:

    Script pptp p1.hk3.flydidu.com --nolaunchpppd finished (pid 8047), status = 0x0
    Modem hangup
    **Connect time 2.0 minutes.
    Sent 851273846 bytes, received 0 bytes.**
    Script /etc/ppp/ip-down started (pid 8097)
    MPPE disabled
    sent [LCP TermReq id=0x2 "MPPE disabled"]
    Connection terminated.
    Waiting for 1 child processes...
      script /etc/ppp/ip-down, pid 8097
    Script /etc/ppp/ip-down finished (pid 8097), status = 0x0

Last edited by dxcqcv (2017-04-02 13:26:12)

Offline

#2 2017-04-01 03:11:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

Why the hell did you use --force? What, exactly, did you overwrite?

Online

#3 2017-04-01 03:50:17

dxcqcv
Member
Registered: 2014-05-04
Posts: 38

Re: pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

Scimmia wrote:

Why the hell did you use --force? What, exactly, did you overwrite?

I remember some node_modules files conflict, I think it is not important and do not know how to fix these conflict, so force it, oh~ eveything works, but pptp, so sad.

and where can see log of force?

Offline

#4 2017-04-02 03:30:17

dxcqcv
Member
Registered: 2014-05-04
Posts: 38

Re: pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

the error info is changed today

new error info is

Error: either "to" is duplicate, or "uid" is a garbage

Offline

#5 2017-04-02 13:26:32

dxcqcv
Member
Registered: 2014-05-04
Posts: 38

Re: pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

UPDATE details

Offline

#6 2017-04-21 20:18:52

gilcu3
Member
Registered: 2011-04-12
Posts: 10

Re: pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

same happening here, trying to connect using NetworkManager, this is the log:

Apr 21 16:07:53 pc NetworkManager[27360]: Plugin /usr/lib/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
Apr 21 16:07:53 pc NetworkManager[27360]: Using interface ppp0
Apr 21 16:07:53 pc NetworkManager[27360]: Connect: ppp0 <--> /dev/pts/1
Apr 21 16:07:53 pc NetworkManager[27360]: <info>  [1492805273.5672] manager: (ppp0): new Generic device (/org/freedesktop/NetworkManager/Devices/5)
Apr 21 16:07:53 pc NetworkManager[27360]: Error: either "to" is duplicate, or "uid" is a garbage.
Apr 21 16:08:24 pc NetworkManager[27360]: LCP: timeout sending Config-Requests
Apr 21 16:08:24 pc NetworkManager[27360]: Connection terminated.
Apr 21 16:08:24 pc NetworkManager[27360]: <warn>  [1492805304.5898] vpn-connection[0x296c860,6e238b50-5f3a-426e-b10b-fe2078db0e4e,"VPN – PPTP ",0]: VPN plugin: failed: connect-failed (1)
Apr 21 16:08:24 pc NetworkManager[27360]: <info>  [1492805304.5898] vpn-connection[0x296c860,6e238b50-5f3a-426e-b10b-fe2078db0e4e,"VPN – PPTP ",0]: VPN plugin: state changed: stopping (5)
Apr 21 16:08:24 pc NetworkManager[27360]: <info>  [1492805304.5898] vpn-connection[0x296c860,6e238b50-5f3a-426e-b10b-fe2078db0e4e,"VPN – PPTP ",0]: VPN plugin: state changed: stopped (6)
Apr 21 16:08:24 pc NetworkManager[27360]: <info>  [1492805304.5909] vpn-connection[0x296c860,6e238b50-5f3a-426e-b10b-fe2078db0e4e,"VPN – PPTP ",0]: VPN plugin: state change reason: unknown (0)
Apr 21 16:08:24 pc NetworkManager[27360]: <info>  [1492805304.5920] vpn-connection[0x296c860,6e238b50-5f3a-426e-b10b-fe2078db0e4e,"VPN – PPTP ",0]: VPN service disappeared
Apr 21 16:08:24 pc NetworkManager[27360]: Terminating on signal 15
Apr 21 16:08:24 pc NetworkManager[27360]: Child process /sbin/pptp <ip> --nolaunchpppd --loglevel 0 --logstring nm-pptp-service-27656 (pid 27666) terminated with signal 15
Apr 21 16:08:24 pc NetworkManager[27360]: Modem hangup
Apr 21 16:10:07 pc NetworkManager[27360]: nm-pptp-service-27656 warn[open_inetsock:pptp_callmgr.c:352]: connect: Connection timed out
Apr 21 16:10:07 pc NetworkManager[27360]: nm-pptp-service-27656 fatal[callmgr_main:pptp_callmgr.c:134]: Could not open control connection to <ip>

Offline

#7 2017-04-22 16:50:30

mephinet
Member
Registered: 2017-04-22
Posts: 10

Re: pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

If you revert iproute2 back to version 4.9, the error is gone and the pptp tunnel works again.
The issue is fixed in pptpclient 1.9, so if you modify the PKGBUILD file to install verison 1.9.0, the VPN works again. I've marked 1.8 as out-of-date...

Last edited by mephinet (2017-04-22 17:23:27)

Offline

#8 2017-05-10 07:50:08

Sadid
Member
Registered: 2014-09-03
Posts: 11

Re: pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

same here. I had no problem with my university vpn (pptp), but after an update now I have the same problem. It shows that vpn is successfully connected but I can't browse internet. Meanwhile there is some sort of loop which upload high amount of bits nowhere and after a 36 second the vpn get disconnected. It's the route problem and I manage to solve it using replacing the route but I still have some problem with dormitory network (which connects to university network through ADSL modems).

when I'm connected with pptp vpn and can't browse the internet here is the route table:

$> ip r
default dev ppp0 proto static scope link metric 50 
default via 192.168.134.1 dev wlp2s0 proto static metric 20600 
1.1.1.6 dev ppp0 proto kernel scope link src 172.17.28.238 metric 50 
192.168.134.0/24 dev wlp2s0 proto kernel scope link src 192.168.134.56 metric 600 
192.168.134.1 dev wlp2s0 proto static scope link metric 600

Then issuing this command

$> sudo ip route replace $(ip route | grep 1.1.1 | sed s/ppp0

fixes the problem by replacing ppp0 with wlp2s0 in the 1.1.1.6 line:

$> ip r
default dev ppp0 proto static scope link metric 50 
default via 192.168.134.1 dev wlp2s0 proto static metric 20600 
1.1.1.6 dev wlp2s0 proto kernel scope link src 172.17.28.238 metric 50 
192.168.134.0/24 dev wlp2s0 proto kernel scope link src 192.168.134.56 metric 600 
192.168.134.1 dev wlp2s0 proto static scope link metric 600

This fixes the problem and after this I can browse the internet. But when I'm behind an ADSL router (which itself connect to the same network as above) issuing the above command and replacing ppp0 with wlp2s0 doesn't fix the problem. Here is the route when I'm connecting using provided ADSL modem:

$> ip r
default dev ppp0 proto static scope link metric 50 
default via 192.168.1.1 dev wlp2s0 proto static metric 20600 
1.1.1.6 dev ppp0 proto kernel scope link src 172.17.26.70 metric 50 
192.168.1.0/24 dev wlp2s0 proto kernel scope link src 192.168.1.6 metric 600 
192.168.1.1 dev wlp2s0 proto static scope link metric 600 

replacing ppp0 with wlp2s0 doesn't fix the problem. I might need another route. This problem has been raised after new update of pptpclient.

Last edited by Sadid (2017-05-10 07:52:31)

Offline

#9 2017-05-10 08:12:19

Sadid
Member
Registered: 2014-09-03
Posts: 11

Re: pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

I used this PKGBUILD for ppptpclient (version 1.9.0) but installing it doesn't fix my problem:

# $Id$
# Maintainer: Daniel Isenmann <daniel @ archlinux.org>
# Contributor: Mark Nikkel <mnikkel@gmail.com>

pkgname=pptpclient
pkgver=1.9.0
pkgrel=1
pkgdesc="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP."
arch=('i686' 'x86_64')
url="http://pptpclient.sourceforge.net/"
license=('GPL')
depends=('ppp' 'iproute2')
backup=('etc/ppp/options.pptp')
source=("http://downloads.sourceforge.net/sourceforge/pptpclient/pptp-$pkgver.tar.gz")
md5sums=('b2117b377f65294a9786f80f0235d308')

prepare() {
  cd $srcdir/pptp-$pkgver

  # use our CFLAGS and LDFLAGS
  sed -i -e "/CFLAGS  =/ c\CFLAGS = ${CFLAGS}" Makefile
  sed -i -e "/LDFLAGS =/ c\LDFLAGS = ${LDFLAGS}" Makefile

  # adjust ip path
  sed -i 's#/bin/ip#/usr/bin/ip#' routing.c

  # put binaries in /usr/bin
  sed -i "/BINDIR/s#/sbin#/bin#" Makefile
}

build() {
  cd $srcdir/pptp-$pkgver
  make 
}

package() {
  cd $srcdir/pptp-$pkgver
  make DESTDIR=$pkgdir install
}

Offline

#10 2017-05-10 13:50:20

Sadid
Member
Registered: 2014-09-03
Posts: 11

Re: pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

I managed to solve the problem using routing with this script:

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

#!/bin/sh
# run it with sudo
# pretty dirty hack
# by Sadid

nmcli con up id sadvpn
sleep 2
baseip=$(ip route | grep 1.1.1 | cut -d ' ' -f 1)   # e.g. 1.1.1.7
ipvia=$(ip r | grep "default via" | cut -d ' ' -f 3) # e.g. 192.168.1.1
myip=$(ifconfig | grep "inet 192" | cut -d ' ' -f 10) # e.g. 192.168.1.6
ip route delete $baseip
ip route add $baseip via $ipvia dev wlp2s0 src $myip

Last edited by Sadid (2017-05-10 13:52:29)

Offline

#11 2017-09-12 20:53:04

eolien
Member
Registered: 2015-05-19
Posts: 18

Re: pptpclinet Error: either “to” is duplicate, or “uid” is a garbage

Hi, same problem here, but your fix doesn't work for me...

i tried to lauch my vpn with

❯ sudo pon vpnum2 debug dump logfd 2 nodetach
pppd options in effect:
debug		# (from command line)
nodetach		# (from command line)
logfd 2		# (from command line)
dump		# (from command line)
noauth		# (from /etc/ppp/peers/vpnum2)
name jkirszli		# (from /etc/ppp/peers/vpnum2)
remotename vpnum2		# (from /etc/ppp/peers/vpnum2)
		# (from /etc/ppp/peers/vpnum2)
pty pptp vpnvlanum2.univ-montp2.fr --nolaunchpppd		# (from /etc/ppp/peers/vpnum2)
crtscts		# (from /etc/ppp/options)
		# (from /etc/ppp/options)
asyncmap 0		# (from /etc/ppp/options)
lcp-echo-failure 4		# (from /etc/ppp/options)
lcp-echo-interval 30		# (from /etc/ppp/options)
hide-password		# (from /etc/ppp/options)
ipparam vpnum2		# (from /etc/ppp/peers/vpnum2)
proxyarp		# (from /etc/ppp/options)
nobsdcomp		# (from /etc/ppp/peers/vpnum2)
nodeflate		# (from /etc/ppp/peers/vpnum2)
require-mppe-128		# (from /etc/ppp/peers/vpnum2)
noipx		# (from /etc/ppp/options)
using channel 12
Using interface ppp0
Connect: ppp0 <--> /dev/pts/4
Error: either "to" is duplicate, or "uid" is a garbage.
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x96f536e0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x96f536e0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x96f536e0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x96f536e0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0xc3a11785> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0xc3a11785> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x96f536e0]
rcvd [LCP EchoReq id=0x0 magic=0xc3a11785]
sent [LCP EchoRep id=0x0 magic=0x96f536e0]
rcvd [CHAP Challenge id=0x54 <3b86bd8bb4d0d2294a01d1031f6d218c>, name = "entree-vpnvlan2"]
added response cache entry 0
sent [CHAP Response id=0x54 <b3efc0ae119fd65d1a2de1614e9ddbc6000000000000000023ef30e4c61e386eba18b1734e6ad2c501a225634c47eb7e00>, name = "user"]
rcvd [LCP EchoRep id=0x0 magic=0xc3a11785]
rcvd [CHAP Success id=0x54 "S=B79D597E68A9DB8A20D7BBEBE5DF8C4E2AA9D46F"]
response found in cache (entry 0)
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
sent [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
MPPE 128-bit stateless compression enabled
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.254.1>]
sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 192.168.254.1>]
rcvd [IPCP ConfNak id=0x1 <addr 162.38.105.149>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 162.38.105.149>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 162.38.105.149>]
Cannot determine ethernet address for proxy ARP
local  IP address 162.38.105.149
remote IP address 192.168.254.1
Script /etc/ppp/ip-up started (pid 10617)
Script /etc/ppp/ip-up finished (pid 10617), status = 0x0

The ip-up script is

/usr/bin/ip route add 162.38.0.0/16 via $4

I can't join my network, then i launch your script (adapted)

baseip=$(ip route | grep 162.38.0 | cut -d ' ' -f 1)
ipvia=$(ip r | grep "default via" | cut -d ' ' -f 3)
myip=$(ifconfig | grep "inet 192" | cut -d ' ' -f 10)
sudo ip route delete $baseip
sudo ip route add $baseip via $ipvia dev wlp2s0 src $myip

Nothing more...

Anything new with the pptpclient package ?

Last edited by eolien (2017-09-12 20:56:13)

Offline

Board footer

Powered by FluxBB