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 4CD1B2009E2 for ; Wed, 1 Jun 2016 20:06:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4B8DE160A4C; Wed, 1 Jun 2016 18:06:43 +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 76CA5160A45 for ; Wed, 1 Jun 2016 20:06:41 +0200 (CEST) Received: (qmail 40169 invoked by uid 500); 1 Jun 2016 18:06:40 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 40159 invoked by uid 99); 1 Jun 2016 18:06:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2016 18:06:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DE9DB1805FA for ; Wed, 1 Jun 2016 18:06:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=binghamton-edu.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id fQ8tiv328N-2 for ; Wed, 1 Jun 2016 18:06:32 +0000 (UTC) Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id CDC335FAC3 for ; Wed, 1 Jun 2016 18:06:31 +0000 (UTC) Received: by mail-qk0-f174.google.com with SMTP id n63so20901735qkf.0 for ; Wed, 01 Jun 2016 11:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=binghamton-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=sEPVEc6vRW5aJ/k4In+LWBr2yn3XnmbX+VjqQcT4cCA=; b=NSjJmPXCKopWAFePVXd9mJnAUedV3rd5tiTr9g44PWEKFce/xW6b1MsphegPCoA8Vm PW9hW7Y0ZEHhT1STEy/FTculD99DKhwREFzg0i+adQ0EwvVg9lMcyamdbi/VhD49MqCL i8UFIifPPAOurQqKCJJR7Rcew8Xk+6nl2RgQmRoNeY21BREIprMMJiOIjGPl5mmwceQI GHUiqB5/pPE2ZuBmGh2GmGIS9lCgLwy084elfZutS7Uq/6beqN/SWdeCPm7xhlj20uaK FCrvECeLcC4WCraHJqlj84zZ8NFoJ5o9vhyGE+ixrzPP3e6HBx5d38BFu5KDtCW89IFq IehQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=sEPVEc6vRW5aJ/k4In+LWBr2yn3XnmbX+VjqQcT4cCA=; b=cIhnBq4O6N33IuQn2m9kJkMGhxD6Tba168SShp5slQhhzjqRiWBfXNyYoUAtw94qk8 ftDBCcJyDZedU1b4sqqMkbeP/UaNXVM/3y6N2kQDI29DCL838lQTbpTb27pWUiWChqVD pt6jSQB5FYfgm3xboqmhVMSbUpbyDlp4mWrhlQmLtaBcL9pLZ4mIVEg1VRX6o76W9Qsj 3/lttBGUTa2R/HgfHC5umJeEIDUvxKtmRtOXU/YbhaIZHU7MqEBs4+T4G3drBob2YFVv eX2d3yWj8AgMislzHIbtsfhXb+Soj6GvCaoZatdpZuMK0Lo3p7WJ1VszxZBH6ymfdZKH 7fbg== X-Gm-Message-State: ALyK8tJVAek5PXg1vvzXEPhgfgkud+J88Hdut0OCyxeZwnlVevcjokZsANOh+mH82Wnscv6GBejUfuxPRugEZNyi MIME-Version: 1.0 X-Received: by 10.237.42.194 with SMTP id t60mr5058694qtd.40.1464804384374; Wed, 01 Jun 2016 11:06:24 -0700 (PDT) Received: by 10.55.175.135 with HTTP; Wed, 1 Jun 2016 11:06:24 -0700 (PDT) In-Reply-To: References: <5748C270.4060904@nd.edu> <5748CAC7.8010204@nd.edu> Date: Wed, 1 Jun 2016 14:06:24 -0400 Message-ID: Subject: Re: Failed Sending Account Confirmation Email after Account Creation with local PGA - WSO2 IS set up From: Abhishek Jain To: Bikramjeet Singh Cc: dev Content-Type: multipart/alternative; boundary=94eb2c12365eff49b505343b584b archived-at: Wed, 01 Jun 2016 18:06:43 -0000 --94eb2c12365eff49b505343b584b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Try with just http. On Wednesday, June 1, 2016, Bikramjeet Singh wrote: > Hi abhishek, > This issue is resolved and apache server has started but now I'm getting > this message on localhost. > PFA > > On Wed, Jun 1, 2016 at 8:50 PM, Bikramjeet Singh < > singh.bikramjeet3@gmail.com > > wrote: > >> This- >> [linfestus@localhost html]$ apachectl start >> Job for httpd.service failed because the control process exited with >> error code. See "systemctl status httpd.service" and "journalctl -xe" fo= r >> details. >> [linfestus@localhost html]$ systemctl status httpd.service >> =E2=97=8F httpd.service - The Apache HTTP Server >> Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendo= r >> preset: disabled) >> Active: failed (Result: exit-code) since Wed 2016-06-01 16:47:58 IST; >> 20s ago >> Docs: man:httpd(8) >> man:apachectl(8) >> Process: 8837 ExecStop=3D/bin/kill -WINCH ${MAINPID} (code=3Dexited, >> status=3D1/FAILURE) >> Process: 8815 ExecStart=3D/usr/sbin/httpd $OPTIONS -DFOREGROUND >> (code=3Dexited, status=3D1/FAILURE) >> Main PID: 8815 (code=3Dexited, status=3D1/FAILURE) >> >> >> On Wed, Jun 1, 2016 at 7:27 PM, Abhishek Jain > > wrote: >> >>> Can you tell me what error you are getting ? >>> >>> >>> On Wednesday, June 1, 2016, Bikramjeet Singh < >>> singh.bikramjeet3@gmail.com >>> > wrote: >>> >>>> Hi abhishek, >>>> Thanks I updated the file,getting an error while starting Apache now >>>> which was not happening earlier so I'm first trying to find the soluti= on to >>>> it. >>>> >>>> Thanks >>>> >>>> On Wednesday 1 June 2016, Abhishek Jain wrote= : >>>> >>>>> Hi Bikramjeet, >>>>> >>>>> I think you forgot to reply to the dev list. Please make sure that yo= u >>>>> reply to the dev list as other devs who are facing the same issue can= refer >>>>> it in future. >>>>> >>>>> My local PGA installation is on Ubuntu. I installed Cent OS and tried >>>>> installing PGA locally on it to help you out.I could locally install = PGA >>>>> locally on Cent OS too. >>>>> >>>>> So I had a look at your httpd.conf file. There are a couple of things >>>>> you have to change in it. >>>>> >>>>> 1. You have to point to the public folder in airavata-php-gateway >>>>> repository (assuming thats the name of your PGA repository). >>>>> >>>>> # >>>>> # DocumentRoot: The directory out of which you will serve your >>>>> # documents. By default, all requests are taken from this directory, = but >>>>> # symbolic links and aliases may be used to point to other locations. >>>>> # >>>>> DocumentRoot "/var/www/html/airavata-php-gateway/public" >>>>> >>>>> # >>>>> >>>>> 2. >>>>> >>>>> # Further relax access to the default document root: >>>>> >>>>> # >>>>> >>>>> >>>>> Once you make these 2 changes, >>>>> >>>>> Run your apache server : >>>>> >>>>> sudo apachectl start >>>>> >>>>> Enter "localhost" as the address in your browser and it should work. >>>>> >>>>> Otherwise provide "localhost:80" as the address. >>>>> >>>>> I am also attaching my httpd.conf file for your reference. >>>>> >>>>> Hope this helps. >>>>> >>>>> >>>>> On Tue, May 31, 2016 at 10:37 PM, Bikramjeet Singh < >>>>> singh.bikramjeet3@gmail.com> wrote: >>>>> >>>>>> Hi, >>>>>> I'm using centos for pga and there is only httpd.conf file which I'm >>>>>> attaching and is there a need to create virtual hosts? if yes, then = with >>>>>> which configurations? >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Jun 1, 2016 at 5:07 AM, Abhishek Jain >>>>> > wrote: >>>>>> >>>>>>> Hi Bikramjeet, >>>>>>> >>>>>>> Are you trying to install on your Macbook ? As httpd.conf is not >>>>>>> required for Ubuntu. >>>>>>> >>>>>>> Ubuntu doesn't use httpd.conf as standard, instead global >>>>>>> configuration stuff for apache is found in /etc/apache2/apache2.con= f. >>>>>>> >>>>>>> Can you also share your default vhost config file which is found in >>>>>>> the /sites-available/ ? >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Tue, May 31, 2016 at 11:30 AM, Bikramjeet Singh < >>>>>>> singh.bikramjeet3@gmail.com> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> I didn't check yet, but I tried >>>>>>>> localhost/airavata-php-gateway/public also but the page was not ac= cessible, >>>>>>>> I wondered there might be some else link and if this is the link o= nly can >>>>>>>> you share your httpd.conf file? >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> >>>>>>>> On Tuesday 31 May 2016, Abhishek Jain >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hi Bikramjeet, >>>>>>>>> Did ur problem resolve ? >>>>>>>>> >>>>>>>>> On Tuesday, May 31, 2016, Abhishek Jain >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Hi Bikramjeet, >>>>>>>>>> Once you have locally set up the PGA, you should be able to >>>>>>>>>> access the PGA page on localhost. It depends how you have config= ured you >>>>>>>>>> Apache server. >>>>>>>>>> >>>>>>>>>> On Tuesday, May 31, 2016, Bikramjeet Singh < >>>>>>>>>> singh.bikramjeet3@gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Hi Abhishek, >>>>>>>>>>> >>>>>>>>>>> I've airavata running, and PGA and wso2 configured, can you >>>>>>>>>>> please tell me how to use PGA, I mean how to access gateway adm= in page of >>>>>>>>>>> PGA, I cant find link anywhere. >>>>>>>>>>> >>>>>>>>>>> Thanks >>>>>>>>>>> >>>>>>>>>>> On Sat, May 28, 2016 at 4:15 AM, Abhishek Jain < >>>>>>>>>>> ajain13@binghamton.edu> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi Jeff, >>>>>>>>>>>> Yes. I configured MailTransportSender. I configured it as >>>>>>>>>>>> follows : >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> class=3D"org.apache.axis2.transport.mail.MailTransportSender"= > >>>>>>>>>>>> >>>>>>>>>>>> abhi.airavata94@gmail.com >>>>>>>>>>>> >>>>>>>>>>> name=3D"mail.smtp.user">abhi.airavata94 >>>>>>>>>>>> >>>>>>>>>>> name=3D"mail.smtp.password">somepassword >>>>>>>>>>>> smtp.gmail.com >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> 587 >>>>>>>>>>>> >>>>>>>>>>> name=3D"mail.smtp.starttls.enable">true >>>>>>>>>>>> true >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> It stills throws the same error. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Fri, May 27, 2016 at 6:34 PM, Abhishek Jain < >>>>>>>>>>>> ajain13@binghamton.edu> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Yes I have configured that. I will verify it once again and >>>>>>>>>>>>> then come back to you. >>>>>>>>>>>>> >>>>>>>>>>>>> On Fri, May 27, 2016 at 6:31 PM, Jeff wrote= : >>>>>>>>>>>>> >>>>>>>>>>>>>> Hi Abishek, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Did you configure everything like in >>>>>>>>>>>>>> http://airavata.readthedocs.io/en/latest/Own-WSO2-IS-Configu= ration/ >>>>>>>>>>>>>> ? There is a part near the bottom of the page (right above s= tep 4) about >>>>>>>>>>>>>> configuring the MailTransportSender, which is the part of co= de throwing the >>>>>>>>>>>>>> error. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Jeff K. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On 05/27/2016 06:14 PM, Abhishek Jain wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> Hi Jeff, >>>>>>>>>>>>>> I had forgotten to configure OAuth for the service provider. >>>>>>>>>>>>>> I followed the instructions mentioned in the link you just >>>>>>>>>>>>>> shared and configured , and added the client key and secret= key in the >>>>>>>>>>>>>> pga_config.php. >>>>>>>>>>>>>> Also, I changed the links in the email-admin config.xml as >>>>>>>>>>>>>> you had mentioned. >>>>>>>>>>>>>> But it looks like the issue did not resolve. It still fails >>>>>>>>>>>>>> to send an email. >>>>>>>>>>>>>> These are how my files look now. >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, May 27, 2016 at 5:56 PM, Jeff >>>>>>>>>>>>>> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> It looks like your OAuth client key and OAuth client secret >>>>>>>>>>>>>>> in pga_config.php are the defaults--have you configured OAu= th for your >>>>>>>>>>>>>>> service provider? This page of the docs has the relevant se= tup >>>>>>>>>>>>>>> http://airavata.readthedocs.io/en/latest/WSO2-IS-Configurat= ion/ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Once you have the OAuth service set up, copy the client key >>>>>>>>>>>>>>> and secret key that are created into your pga-config.php. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> The other thing is that the links in email-admin-config.xml >>>>>>>>>>>>>>> should be set to something like >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> https://localhost/airavata-php-gateway/public/reset-passwor= d?confirmation=3D >>>>>>>>>>>>>>> {confirmation-code}&userstoredomain=3D{userstore-domain= }&username=3D{url:user-name}&tenantdomain=3D{tenant-domain} >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> for Password Reset and >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> https://localhost/airavata-php-gateway/public/confirm-user-= registration?confirmation=3D >>>>>>>>>>>>>>> {confirmation-code}&userstoredomain=3D{userstore-domain= }&username=3D{url:user-name}&tenantdomain=3D{tenant-domain} >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> for Account Confirmation. This points them to the local PGA >>>>>>>>>>>>>>> pages that handle password reset and account confirmation, = respectively. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Hope this helps! >>>>>>>>>>>>>>> Jeff K. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Fri, May 27, 2016 at 5:42 PM, Abhishek Jain < >>>>>>>>>>>>>>> ajain13@binghamton.edu> wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Hi All, >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I have locally set up the PGA and WSO2. They are up and >>>>>>>>>>>>>>>> running. I added the admin user credentials of the tenant = that I created in >>>>>>>>>>>>>>>> the pga_conf.php file. So now when I try creating an accou= nt, I get a >>>>>>>>>>>>>>>> message that a confirmation link has been sent to the emai= l account, but I >>>>>>>>>>>>>>>> can see an error in my IS log saying that sending of email= has failed which >>>>>>>>>>>>>>>> is as follows : >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> *[2016-05-27 14:19:34,698] @test.bu.com >>>>>>>>>>>>>>>> [1] [IS] INFO >>>>>>>>>>>>>>>> {org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModu= le} - Sending >>>>>>>>>>>>>>>> user credentials configuration mail to jainabhishek93@gmai= l.com* >>>>>>>>>>>>>>>> *[2016-05-27 14:19:35,403] @test.bu.com >>>>>>>>>>>>>>>> [1] [IS]ERROR >>>>>>>>>>>>>>>> {org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModu= le} - Failed >>>>>>>>>>>>>>>> Sending Email* >>>>>>>>>>>>>>>> *org.apache.axis2.AxisFault: Error generating mail message= * >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.ha= ndleException(AbstractTransportSender.java:226)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMe= ssage(MailTransportSender.java:184)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.in= voke(AbstractTransportSender.java:112)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:44= 2)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.description.OutOnlyAxisOperationClient.ex= ecuteImpl(OutOnlyAxisOperation.java:297)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.client.OperationClient.execute(OperationC= lient.java:149)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.client.ServiceClient.fireAndForget(Servic= eClient.java:511)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.client.ServiceClient.fireAndForget(Servic= eClient.java:488)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModul= e.sendEmail(DefaultEmailSendingModule.java:116)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.wso2.carbon.identity.mgt.mail.AbstractEmailSendingModu= le.notifyUser(AbstractEmailSendingModule.java:59)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.wso2.carbon.identity.mgt.NotificationSendingModule.run= (NotificationSendingModule.java:33)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Execut= ors.java:471)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> java.util.concurrent.FutureTask.run(FutureTask.java:262)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPo= olExecutor.java:1145)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadP= oolExecutor.java:615)* >>>>>>>>>>>>>>>> * at java.lang.Thread.run(Thread.java:745)* >>>>>>>>>>>>>>>> *Caused by: org.apache.axis2.AxisFault: Error creating mai= l >>>>>>>>>>>>>>>> message or sending it to the configured server* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.ha= ndleException(AbstractTransportSender.java:226)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMa= il(MailTransportSender.java:505)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMe= ssage(MailTransportSender.java:175)* >>>>>>>>>>>>>>>> * ... 14 more* >>>>>>>>>>>>>>>> *Caused by: javax.mail.AuthenticationFailedException* >>>>>>>>>>>>>>>> * at javax.mail.Service.connect(Service.java:306)* >>>>>>>>>>>>>>>> * at javax.mail.Service.connect(Service.java:156)* >>>>>>>>>>>>>>>> * at javax.mail.Service.connect(Service.java:105)* >>>>>>>>>>>>>>>> * at javax.mail.Transport.send0(Transport.java:168)* >>>>>>>>>>>>>>>> * at javax.mail.Transport.send(Transport.java:98)* >>>>>>>>>>>>>>>> * at >>>>>>>>>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMa= il(MailTransportSender.java:494)* >>>>>>>>>>>>>>>> * ... 15 more* >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I am attaching my pga_conf.php file and also, the >>>>>>>>>>>>>>>> email-admin-config.xml file. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Also, I am attaching the screenshots of my tenant details >>>>>>>>>>>>>>>> and service provider details. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Can you tell me what am I missing out or if I have made a >>>>>>>>>>>>>>>> mistake in the pga_config.php file ? >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>>>>>> *Binghamton University - State Univeristy of New York >>>>>>>>>>>>>>>> (SUNY)* >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)= * >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>>> >>>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>> >>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Thanks & Regards, >>>>>>>>>> Abhishek Jain >>>>>>>>>> >>>>>>>>>> *Graduate Student* >>>>>>>>>> *Department of Computer Science* >>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>> *Binghamton University - State University of New York (SUNY)* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Thanks & Regards, >>>>>>>>> Abhishek Jain >>>>>>>>> >>>>>>>>> *Graduate Student* >>>>>>>>> *Department of Computer Science* >>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>> *Binghamton University - State University of New York (SUNY)* >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Thanks & Regards, >>>>>>> Abhishek Jain >>>>>>> >>>>>>> *Graduate Student* >>>>>>> *Department of Computer Science* >>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Thanks & Regards, >>>>> Abhishek Jain >>>>> >>>>> *Graduate Student* >>>>> *Department of Computer Science* >>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>> *Binghamton University - State University of New York (SUNY)* >>>>> >>>>> >>>>> >>> >>> -- >>> Thanks & Regards, >>> Abhishek Jain >>> >>> *Graduate Student* >>> *Department of Computer Science* >>> *Thomas J. Watson School of Engineering & Applied Science* >>> *Binghamton University - State University of New York (SUNY)* >>> >>> >>> >>> >> > --=20 Thanks & Regards, Abhishek Jain *Graduate Student* *Department of Computer Science* *Thomas J. Watson School of Engineering & Applied Science* *Binghamton University - State University of New York (SUNY)* --94eb2c12365eff49b505343b584b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Try with just http.=C2=A0

On Wednesday, June 1, 2016, Bikramjeet Sin= gh <singh.bikramjeet3@gma= il.com> wrote:
Hi= abhishek,
This issue is resolved and apache server has started =C2=A0b= ut now I'm getting this message on localhost.
PFA=C2=A0
=

On Wed, Jun= 1, 2016 at 8:50 PM, Bikramjeet Singh <singh.bikramjeet3@gmail.com> wrote:
This-
[linfestus@localhost ht= ml]$ apachectl start
Job for httpd.service failed because the control pr= ocess exited with error code. See "systemctl status httpd.service"= ; and "journalctl -xe" for details.
[linfestus@localhost html]= $ systemctl status httpd.service
=E2=97=8F httpd.service - The Apache HT= TP Server
=C2=A0=C2=A0 Loaded: loaded (/usr/lib/systemd/system/httpd.ser= vice; enabled; vendor preset: disabled)
=C2=A0=C2=A0 Active: failed (Res= ult: exit-code) since Wed 2016-06-01 16:47:58 IST; 20s ago
=C2=A0=C2=A0= =C2=A0=C2=A0 Docs: man:httpd(8)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 man:apachectl(8)
=C2=A0 Process: 8837 ExecStop=3D/= bin/kill -WINCH ${MAINPID} (code=3Dexited, status=3D1/FAILURE)
=C2=A0 Pr= ocess: 8815 ExecStart=3D/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=3Dexite= d, status=3D1/FAILURE)
=C2=A0Main PID: 8815 (code=3Dexited, status=3D1/F= AILURE)


On Wed, Jun 1, 2016 at 7:27 PM, Abhishek Jain <ajain13@binghamton.edu> wrot= e:
Can you tell me what error you are get= ting ?


On Wednesday, June 1, 2016, Bikramjeet Singh <singh.bikramjeet3@gmail.com> wrote:
=
Hi abhishek,
Thanks I updated the file,g= etting an error while starting Apache now which was not happening earlier s= o I'm first trying to find the solution to it.=C2=A0

Thanks=C2=A0

On Wednesday 1 June 2016, Abhishek Jain <a= jain13@binghamton.edu> wrote:
Hi Bikramjeet,

I think you forgot to reply to the= dev list. Please make sure that you reply to the dev list as other devs wh= o are facing the same issue can refer it in future.

My local PGA installation is on Ubuntu. I installed=C2=A0Cent OS=C2=A0and= tried installing PGA locally on it to help you out.I could locally install= PGA locally on=C2=A0Cent OS=C2=A0too.

So I had a = look at your httpd.conf file. There are a couple of things you have to chan= ge=C2=A0in=C2=A0it.=C2=A0

1. You have to point to = the public folder in=C2=A0airavata-php-gateway repository (assuming thats t= he name of your PGA repository).
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html/airavata-php-gateway/public"

#
2.=C2=A0
# Further relax access to the de=
fault document root:
<Directory "/var/www/html/airavata-php-gateway/public">
   #

Once you make these 2 changes,
<= pre>Run= your apache server :
=C2=A0 =C2=A0 sudo apachectl start
Enter "localhost" as the address in your browser =
and it should work.=C2=A0
Otherwise provide "localhos=
t:80" as the address.=C2=A0
I am also attaching my ht=
tpd.conf file for your reference.
Hope this helps.<=
/font>

On Tue, May 31, 2016 at 10:37 PM, Bikramjeet Singh <singh.bikramjeet3@gmail.com> wrote:
Hi,
I'm usi= ng centos for pga and there is only httpd.conf file which I'm attaching= and is there a need to create virtual hosts? if yes, then with which confi= gurations?



On Wed, Jun 1, 2016 at 5:07 AM, Abhishek Jain <ajain13@binghamton.edu> wrote:
Hi Bikramjeet,

Are you t= rying to install on your Macbook ? As httpd.conf is not required for Ubuntu= .

Ubuntu doesn't use httpd.conf as standard, i= nstead global configuration stuff for apache is found in /etc/apache2/apach= e2.conf.

Can you also share your=C2=A0default vhos= t config file which is found in the <apache2 Root>/sites-available/ ?=



On Tue, May 31, 2016 at 11:30 AM, Bikram= jeet Singh <singh.bikramjeet3@gmail.com> wrote:
Hi,
I didn't check yet, but I tried = localhost/airavata-php-gateway/public also but the page was not accessible,= I wondered there might be some else link and if this is the link only can = you share your httpd.conf file?=C2=A0

Thanks
<= div>

On Tuesday 31 May 2016, Abhishek Jain <ajain13@binghamton= .edu> wrote:
Hi Bikramjeet,
Did ur problem r= esolve ?

On Tuesday, May 31, 2016, Abhishek Jain <ajain13= @binghamton.edu> wrote:
Hi Bikramjeet,
Onc= e you have locally set up the PGA, you should be able to access the PGA pag= e on localhost. It depends how you have configured you Apache server.=C2=A0=

On Tuesday, May 31, 2016, Bikramjeet Singh <singh.bikram= jeet3@gmail.com> wrote:
=
Hi Abhishek,

I've airavata running, and PG= A and wso2 configured, can you please tell me how to use PGA, I mean how to= access gateway admin page of PGA, I cant find link anywhere.

= Thanks

= On Sat, May 28, 2016 at 4:15 AM, Abhishek Jain <aja= in13@binghamton.edu> wrote:
Hi Jeff,
Yes. I configured MailTransportSender. I configured it as = follows :

=C2=A0<transportSender name=3D&q= uot;mailto"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0class=3D"org.apache.axis2.transport.mail.M= ailTransportSender">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <para= meter name=3D"mail.smtp.from">abhi.airavata94@gmail.com= </parameter>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name= =3D"mail.smtp.user">abhi.airavata94</parameter>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D"mail.smtp.password= ">somepassword</parameter>
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 <parameter name=3D"mail.smtp.host">smtp.gmail.com</parameter>
<= div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D"m= ail.smtp.port">587</parameter>
=C2=A0 =C2=A0 =C2=A0= =C2=A0 <parameter name=3D"mail.smtp.starttls.enable">true&= lt;/parameter>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name= =3D"mail.smtp.auth">true</parameter>
=C2=A0 = =C2=A0 </transportSender>

It stills th= rows the same error.





On Fri, May 27, 2016 at 6:34 PM, Abhishek Jain = <ajain13@binghamton.edu> wrote:
Yes I have configured that. I will verify it once again and t= hen come back to you.

On Fri, May 27, 2016 at 6:31 PM, Jeff <jkinniso@nd.edu> wrote:
=20 =20 =20
Hi Abishek,

Did you configure everything like in http://airavata.readthedocs.io/en/latest/Own-WSO= 2-IS-Configuration/ ? There is a part near the bottom of the page (right above step 4) about configuring the MailTransportSender, which is the part of code throwing the error.

Jeff K.


On 05/27/2016 06:14 PM, Abhishek Jain wrote:
Hi Jeff,
I had forgotten to configure OAuth for the service provider.
I followed the instructions mentioned in the link you just shared and configured , and added the client key and =C2=A0secret key in the pga_config.php.
Also, I changed the links in the email-admin config.xml as you had mentioned.=C2=A0
But it looks like the issue did not resolve. It still fails to send an email.
These are how my files look now.=C2=A0

On Fri, May 27, 2016 at 5:56 PM, Jeff <jkinniso@nd.edu> wrote:
It looks like your OAuth client key and OAuth client secret in pga_config.php are the defaults--have you configured OAuth for your service provider? This page of the docs has the relevant setup http://airavata.readthedocs.io= /en/latest/WSO2-IS-Configuration/

Once you have the OAuth service set up, copy the client key and secret key that are created into your pga-config.php.

The other thing is that the links in email-admin-config.xml should be set to something like

https://localhost/airavata-= php-gateway/public/reset-password?confirmation=3D{confirmation-code}&am= p;amp;userstoredomain=3D{userstore-domain}&amp;username=3D{url:user-nam= e}&amp;tenantdomain=3D{tenant-domain}

for Password Reset and

https://localhos= t/airavata-php-gateway/public/confirm-user-registration?confirmation=3D= {confirmation-code}&amp;userstoredomain=3D{userstore-domain}&amp;us= ername=3D{url:user-name}&amp;tenantdomain=3D{tenant-domain}

for Account Confirmation. This points them to the local PGA pages that handle password reset and account confirmation, respectively.

Hope this helps!
Jeff K.


On Fri, May 27, 2016 at 5:42 PM, Abhishek Jain <<= a>ajain13@binghamton.edu> wrote:

Hi All,

I have locally set up the PGA and WSO2. They are up and running. I added the admin user credentials of the tenant that I created in the pga_conf.php file. So now when I try creating an account, I get a message that a confirmation link has been sent to the email account, but I can see an error in my IS log saying that sending of email has failed which is as follows :

[2016-05-27 14:19:34,698] @test.bu.com [1] [IS] INFO {org.wso2.carbon.identity.mgt.mail.DefaultE= mailSendingModule} - =C2=A0Sending user credentials configuration mail to jainabhishe= k93@gmail.com
[2016-05-27 14:19:35,403] @test.bu.com [1] [IS]ERROR {org.wso2.carbon.identity.mgt.mail.DefaultE= mailSendingModule} - =C2=A0Failed Sending Email
org.apache.axis2.AxisFault: Error generating mail message
<= /span>at org.apache.axis2.transport.base.AbstractTransportSender.handleException(Abs= tractTransportSender.java:226)
<= /span>at org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTranspo= rtSender.java:184)
<= /span>at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTran= sportSender.java:112)
<= /span>at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
<= /span>at org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnly= AxisOperation.java:297)
<= /span>at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
<= /span>at org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:511)=
<= /span>at org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:488)=
<= /span>at org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule.sendEmail(Defau= ltEmailSendingModule.java:116)
<= /span>at org.wso2.carbon.identity.mgt.mail.AbstractEmailSendingModule.notifyUser(Abs= tractEmailSendingModule.java:59)
<= /span>at org.wso2.carbon.identity.mgt.NotificationSendingModule.run(NotificationSend= ingModule.java:33)
<= /span>at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)=
<= /span>at java.util.concurrent.FutureTask.run(FutureTask.java:262)
<= /span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1= 145)
<= /span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:= 615)
<= /span>at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.axis2.AxisFault: Error creating mail message or sending it to the configured server
<= /span>at org.apache.axis2.transport.base.AbstractTransportSender.handleException(Abs= tractTransportSender.java:226)
<= /span>at org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportS= ender.java:505)
<= /span>at org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTranspo= rtSender.java:175)
<= /span>... 14 more
Caused by: javax.mail.AuthenticationFailedException
<= /span>at javax.mail.Service.connect(Service.java:306)
<= /span>at javax.mail.Service.connect(Service.java:156)
<= /span>at javax.mail.Service.connect(Service.java:105)
<= /span>at javax.mail.Transport.send0(Transport.java:168)
<= /span>at javax.mail.Transport.send(Transport.java:98)
<= /span>at org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportS= ender.java:494)
<= /span>... 15 more


I am attaching my pga_conf.php file and also, the email-admin-config.xml file.

Also, I am attaching the screenshots of my tenant details and service provider details.=C2=A0

Can you tell me what am I missing out or if I have made a mistake in the pga_config.php file ?


--
Thanks & Regards,
Abhishek Jain

Gradua= te Student
Depart= ment of Computer Science
Thomas J. Watson School of Engineering & Applied Science
Bingha= mton University - State Univeristy of New York (SUNY)






--
Thanks & Regards,
Abhishek Jain

Graduate Student<= /div>
Department of Computer Science
Thomas J. Watson School of Engineering & Applied Science
Binghamton University - State Univeristy of New York (SUNY)<= /div>






--
Thanks & Regards,
A= bhishek Jain

Graduate Student
Dep= artment of Computer Science
Thomas= J. Watson School of Engineering & Applied Science
Binghamton University - State Univeristy of New York (= SUNY)





--
=
Thanks & Regards,
Abhishek Jain

Graduate Student
Department of Computer Science
Thomas J. Watson School of Engineering & Applied Science
Binghamton University - State Univeristy = of New York (SUNY)





--
Thanks &am= p; Regards,
Abhishek Jain

Graduate Student
Department of Computer Science
Thomas J. Watson School of Engineering & A= pplied Science
Binghamton Universi= ty - State University of New York (SUNY)





--
Thanks &am= p; Regards,
Abhishek Jain

Graduate Student
Department of Computer Science
Thomas J. Watson School of Engineering & A= pplied Science
Binghamton Universi= ty - State University of New York (SUNY)






--
Thanks & Regards,
A= bhishek Jain

Graduate Student
Dep= artment of Computer Science
Thomas= J. Watson School of Engineering & Applied Science
Binghamton University - State Univeristy of New York (= SUNY)






--
=
Thanks &am= p; Regards,
Abhishek Jain

Graduate Student
Department of Computer Science
Thomas J. Watson School of Engineering & A= pplied Science
Binghamton Universi= ty - State University of New York (SUNY)




--
Thanks & Regards,<= div>Abhishek Jain

Graduate Student
<= font size=3D"2">Department of Computer Science
Thomas J. Watson School of Engineering & Applied Scienc= e
Binghamton University - State Un= iversity of New York (SUNY)


<= /div>





--
Thanks & Regards,<= div>Abhishek Jain

Graduate Student
<= font size=3D"2">Department of Computer Science
Thomas J. Watson School of Engineering & Applied Scienc= e
Binghamton University - State Un= iversity of New York (SUNY)


<= /div>

--94eb2c12365eff49b505343b584b--