Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 84EEB200BC5 for ; Tue, 22 Nov 2016 17:35:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8219D160B0C; Tue, 22 Nov 2016 16:35:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A89DB160AF1 for ; Tue, 22 Nov 2016 17:35:03 +0100 (CET) Received: (qmail 82499 invoked by uid 500); 22 Nov 2016 16:35:01 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 82048 invoked by uid 99); 22 Nov 2016 16:34:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2016 16:34:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0E28DC036D for ; Tue, 22 Nov 2016 16:34:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.1 X-Spam-Level: X-Spam-Status: No, score=-3.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-2.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=arhont.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ur8DLmBHrjtQ for ; Tue, 22 Nov 2016 16:34:55 +0000 (UTC) Received: from mail.arhont.com (mail1.arhont.com [178.248.108.132]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 585A65FC7E for ; Tue, 22 Nov 2016 16:34:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail1.arhont.com (Postfix) with ESMTP id 51C5398097E for ; Tue, 22 Nov 2016 16:37:37 +0000 (GMT) Received: from mail.arhont.com ([127.0.0.1]) by localhost (mail1.arhont.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id MpIv0UMG2xt9 for ; Tue, 22 Nov 2016 16:37:37 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mail1.arhont.com (Postfix) with ESMTP id 16B97980A18 for ; Tue, 22 Nov 2016 16:37:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.9.2 mail1.arhont.com 16B97980A18 X-Virus-Scanned: amavisd-new at arhont.com Received: from mail.arhont.com ([127.0.0.1]) by localhost (mail1.arhont.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id cwWKdmKVHhg3 for ; Tue, 22 Nov 2016 16:37:36 +0000 (GMT) Received: from mail1.arhont.com (mail1.arhont.com [178.248.108.132]) by mail1.arhont.com (Postfix) with ESMTP id DBCC298097E for ; Tue, 22 Nov 2016 16:37:36 +0000 (GMT) Date: Tue, 22 Nov 2016 16:37:36 +0000 (GMT) From: Andrei Mikhailovsky To: users Message-ID: <560546532.1134494.1479832656626.JavaMail.zimbra@arhont.com> In-Reply-To: References: <1406101675.1129678.1479816851864.JavaMail.zimbra@arhont.com> Subject: Re: error adding VPN user in VPC network MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.6.0_GA_1182 (ZimbraWebClient - FF49 (Linux)/8.6.0_GA_1182) Thread-Topic: error adding VPN user in VPC network Thread-Index: tjpnYvJGTvLQXQmMjQPhFfBg37r1Ya+6xVuA4SC/rXE= archived-at: Tue, 22 Nov 2016 16:35:04 -0000 Hi Dag, Thanks for the quick response. Actually, the username that I've tried to se= t up was just "andrei". 40 and 45 could be the id numbers of the account/do= main perhaps? I've also tried to change the usernames and provided differen= t passwords, but had the same error. Andrei ----- Original Message ----- > From: "Dag Sonstebo" > To: "users" > Sent: Tuesday, 22 November, 2016 13:37:54 > Subject: Re: error adding VPN user in VPC network > Hi Andrei, >=20 > I=E2=80=99ve discussed with my colleagues and we think this may be relate= d to > https://issues.apache.org/jira/browse/CLOUDSTACK-9498 >=20 > From your logs it looks like the username you are using is =E2=80=9C40-an= drei-45=E2=80=9D? Could > you try with a username with just normal characters? >=20 > Regards, > Dag Sonstebo > Cloud Architect > ShapeBlue >=20 > On 22/11/2016, 12:14, "Andrei Mikhailovsky" w= rote: >=20 > Hello > =20 > I am running ACS 4.9.0. > =20 > I am having an issue with adding a VPN user to the VPC network. I've e= nabled the > VPN service on the static IP. The service was enabled and I have the P= SK shown > to me. However, when I am adding a new user it fails with the followin= g error: > =20 > 2016-11-22 12:05:26,189 DEBUG [c.c.n.v.RemoteAccessVpnManagerImpl] > (API-Job-Executor-82:ctx-d62e35c3 job-31537 ctx-8ac8a450) (logid:f76b2= eae) VPN > User VpnUser[40-andrei-45] is set on > com.cloud.network.dao.RemoteAccessVpnVO$$EnhancerByCGLIB$$cc1dfb8d@446= 5732c > 2016-11-22 12:05:26,189 WARN [c.c.n.v.RemoteAccessVpnManagerImpl] > (API-Job-Executor-82:ctx-d62e35c3 job-31537 ctx-8ac8a450) (logid:f76b2= eae) > Unable to apply vpn users > java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 > at java.util.ArrayList.rangeCheck(ArrayList.java:635) > at java.util.ArrayList.get(ArrayList.java:411) > at > com.cloud.network.vpn.RemoteAccessVpnManagerImpl.applyVpnUsers(RemoteA= ccessVpnManagerImpl.java:532) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess= orImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflectio= n(AopUtils.java:317) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoi= npoint(ReflectiveMethodInvocation.java:183) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(R= eflectiveMethodInvocation.java:150) > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke= (ExposeInvocationInterceptor.java:91) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(R= eflectiveMethodInvocation.java:172) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamic= AopProxy.java:204) > at com.sun.proxy.$Proxy237.applyVpnUsers(Unknown Source) > at > org.apache.cloudstack.api.command.user.vpn.AddVpnUserCmd.execute(AddVp= nUserCmd.java:122) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150) > at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.ja= va:108) > at > org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInC= ontext(AsyncJobManagerImpl.java:554) > at > org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Man= agedContextRunnable.java:49) > at > org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.cal= l(DefaultManagedContext.java:56) > at > org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callW= ithContext(DefaultManagedContext.java:103) > at > org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWi= thContext(DefaultManagedContext.java:53) > at > org.apache.cloudstack.managed.context.ManagedContextRunnable.run(Manag= edContextRunnable.java:46) > at > org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(As= yncJobManagerImpl.java:502) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:= 471) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j= ava:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.= java:615) > at java.lang.Thread.run(Thread.java:745) > 2016-11-22 12:05:26,190 DEBUG [c.c.n.v.RemoteAccessVpnManagerImpl] > (API-Job-Executor-82:ctx-d62e35c3 job-31537 ctx-8ac8a450) (logid:f76b2= eae) > Applying vpn access to VirtualRouter > 2016-11-22 12:05:26,192 WARN [c.c.n.v.RemoteAccessVpnManagerImpl] > (API-Job-Executor-82:ctx-d62e35c3 job-31537 ctx-8ac8a450) (logid:f76b2= eae) > Failed to apply vpn for user andrei, accountId=3D45 > 2016-11-22 12:05:26,193 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (API-Job-Executor-82:ctx-d62e35c3 job-31537) (logid:f76b2eae) Complete= async > job-31537, jobStatus: FAILED, resultCode: 530, result: > org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":= [],"errorcode":530,"errortext":"Failed > to add vpn user"} > =20 > Please advise how to get this problem fixed and have a working VPN ser= vice? > =20 > Thanks > =20 > Andrei > =20 >=20 >=20 > Dag.Sonstebo@shapeblue.com > www.shapeblue.com > 53 Chandos Place, Covent Garden, London WC2N 4HSUK > @shapeblue