JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for LCG-ROLLOUT Archives


LCG-ROLLOUT Archives

LCG-ROLLOUT Archives


LCG-ROLLOUT@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

LCG-ROLLOUT Home

LCG-ROLLOUT Home

LCG-ROLLOUT  November 2015

LCG-ROLLOUT November 2015

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: CREAM unable to submit job to BLAH

From:

Muhammad Farhan SJAUGI <[log in to unmask]>

Reply-To:

LHC Computer Grid - Rollout <[log in to unmask]>

Date:

Tue, 10 Nov 2015 22:14:35 +0800

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (334 lines)

Dear David,

Thanks a lot for the "clue", yes the missing variables was the
"culprit"... for unknown reason the variables were missing from the
shell environment.... So I manually added ".
/etc/profile.d/grid-env.sh" to the /usr/bin/dtomcat5 script and
restarted the tomcat service.. and now the cream/blahpd works
properly...

Regards

On Tue, Nov 10, 2015 at 9:20 PM, Muhammad Farhan SJAUGI
<[log in to unmask]> wrote:
> Dear David,
>
> Yes, you could be right, I found out the variables for BLAH is missing:
>
> [root@khaldun tmp]# tr '\0' '\n' < /proc/17186/environ | grep BL
> [root@khaldun tmp]#
>
> If I compare with another working cluster:
>
> [root@haitham ~]# tr '\0' '\n' < /proc/31721/environ | grep BL
> BLPARSER_CONFIG_LOCATION=/etc/blparser.conf
> BLAHPD_CONFIG_LOCATION=/etc/blah.config
> BLAHPD_LOCATION=/usr
> [root@haitham ~]#
>
> So how can I add the missing variables to the affected cluster?
>
> Regards
>
> On Tue, Nov 10, 2015 at 9:06 PM, David Rebatto <[log in to unmask]> wrote:
>> Hi Muhammad,
>> I add the blah mailing list in cc.
>>
>> Il giorno 10/nov/2015, alle ore 12:52, Muhammad Farhan SJAUGI
>> <[log in to unmask]> ha scritto:
>>
>> Hi,
>>
>> I tried to narrow down the problem, it seems that blahpd has some
>> difficulty to execute the /usr/libexec/pbs_status.sh file if the
>> blahpd is called by the tomcat webserver.
>>
>> However if the blahpd command is called by either tomcat/root user
>> from the terminal, the command has no problem to give the correct
>> result. I was suspecting that there were
>>
>> a racing condition where the blahpd tried to get the lrms info from
>> cream (via BLPClient), however since the cream is not ready yet the to
>> accept the query, it just simply "reject" the query
>>
>> hence blahpd is also giving error message. But this shouldn't be the
>> case since it will keep trying to make query to cream…
>>
>>
>> The query is the other way round, i.e. cream asks blahpd about its
>> configuration.
>> Blahpd, on turn, gets that information from its configuration file, so
>> there’s no external query involved.
>> It looks like the blahpd started by cream is not reading the proper
>> configuration file.
>> You can dump one of the blahpd processes’ environment, e.g. with this
>> command
>> $ tr '\0' '\n’ < /proc/<blahpd's pid>/environ
>> and look for wrong paths in blahpd and glite related variables
>> (BLAHPD_CONFIG_LOCATION above all).
>> Look also for missing variables, as they can have quite obsolete defaults.
>>
>> Cheers,
>> David
>>
>>
>>
>>
>> Regards
>>
>> On Tue, Nov 10, 2015 at 6:59 PM, Muhammad Farhan SJAUGI
>> <[log in to unmask]> wrote:
>>
>> Dear Jeff,
>>
>> The blahpd run as user tomcat...also user tomcat has operator
>> privileges on the torque server:
>>
>> set server operators += [log in to unmask]
>>
>> However, when I tried to run/execute the blahpd command as user
>> tomcat, it seems return correct result:
>>
>> [root@khaldun ~]# su - tomcat
>> -sh-4.3$ blahpd
>> $GahpVersion: 1.8.0 Mar 31 2008 INFN\ blahpd\ (poly,new_esc_format) $
>> BLAH_GET_HOSTPORT 0
>> S
>> RESULTS
>> S 1
>> 0 0 pbs/khaldun.biruni.upm.my:56554
>>
>>
>> Regards
>>
>> On Tue, Nov 10, 2015 at 5:14 PM, Jeff Templon <[log in to unmask]> wrote:
>>
>> Hi
>>
>> as which user does blahpd run?  I see you ran it as root by hand, but when
>> run normally, which user?  and does this user have operator privileges on
>> the torque server?
>>
>>                                        JT
>>
>> On 10 Nov 2015, at 01:25, Muhammad Farhan SJAUGI <[log in to unmask]>
>> wrote:
>>
>> Greetings,
>>
>> I found something interesting.. apparently CREAM didn't get the
>> correct result from BLAH:
>>
>> 10 Nov 2015 00:19:18,366 INFO
>> org.glite.ce.cream.jobmanagement.cmdexecutor.blah.BLParserClient -
>> initializeConnection: getting info about BLParser (pbs) from BLAH
>> (retry count=97/100)
>> 10 Nov 2015 00:20:18,368 DEBUG
>> org.glite.ce.cream.jobmanagement.cmdexecutor.blah.BLAHExecutor -
>> BLAH_GET_HOSTPORT 0
>> 10 Nov 2015 00:20:19,370 DEBUG
>> org.glite.ce.cream.jobmanagement.cmdexecutor.blah.BLAHExecutor -
>> getBlahOutput: S
>> 10 Nov 2015 00:20:20,371 DEBUG
>> org.glite.ce.cream.jobmanagement.cmdexecutor.blah.BLAHExecutor -
>> getBlahOutput: S 1
>> 10 Nov 2015 00:20:20,371 DEBUG
>> org.glite.ce.cream.jobmanagement.cmdexecutor.blah.BLAHExecutor -
>> getBlahOutput: 0 0 pbs/Error\ reading\ host:port
>>
>> However, when I tried to query BLAH manually it seems return correct answer:
>>
>> [root@khaldun ~]# blahpd
>> $GahpVersion: 1.8.0 Mar 31 2008 INFN\ blahpd\ (poly,new_esc_format) $
>> BLAH_GET_HOSTPORT 0
>> S
>> RESULTS
>> S 1
>> 0 0 pbs/khaldun.biruni.upm.my:56554
>>
>> Perhaps this is the main issue?
>>
>> Regards
>>
>> On Tue, Nov 10, 2015 at 7:37 AM, Muhammad Farhan SJAUGI
>> <[log in to unmask]> wrote:
>>
>> Dear Steve,
>>
>> Thank you for your feedback. I can confirm that the new blparser is
>> used instead the old one.
>>
>> I'm wondering how the cream communicate with blparser?  is it via
>> socket or merely call the programming api?
>>
>> Regards
>>
>> On Mon, Nov 9, 2015 at 10:13 PM, Stephen Jones <[log in to unmask]>
>> wrote:
>>
>> Hi Muhammad,
>>
>> Here's something to check.
>>
>> http://grid.pd.infn.it/cream/field.php?n=Main.CREAMAndBlparserConfiguration
>>
>> If the "blparser" service is used by the "Old Blah Parser", perhaps you are
>> accidentally starting the wrong parser?
>>
>> Note: I think the "BNotifier" and "BUpdaterPBS" processes belong to the "New
>> Blah Parser". Maybe...
>>
>> So check which parser you are using.
>>
>> Cheers,
>>
>> Steve
>>
>>
>>
>> On 11/08/2015 10:03 AM, Muhammad Farhan SJAUGI wrote:
>>
>>
>> Greetings,
>>
>> One of cluster shows strange behavior... CREAM unable to submit the
>> job to BLAH because the blparser service is not alive:
>>
>> 08 Nov 2015 09:54:06,375 WARN
>> org.glite.ce.creamapi.jobmanagement.cmdexecutor.AbstractJobExecutor -
>> submission to BLAH failed [jobId=CREAM524062606; reason=The job cannot
>> be submitted because the blparser service is not alive; retry
>> count=3/3]
>>
>> I can confirm that the blparser service is up:
>>
>> [root@khaldun etc]# ps ax | grep BNotifier
>> 3155 ?        Sl     0:00 /usr/libexec/BNotifier
>>
>> [root@khaldun etc]# ps ax | grep BUpdaterPBS
>> 3167 ?        S      0:00 /usr/libexec/BUpdaterPBS
>>
>> Also I found from the cream log another info as below (but im not sure
>> whether it is related or not)
>>
>> 08 Nov 2015 09:55:21,782 INFO
>> org.glite.ce.cream.jobmanagement.cmdexecutor.blah.BLParserClient -
>> initializeConnection: getting info about BLParser (pbs) from BLAH
>> (retry count=95/100)
>>
>> I have tried restarting the service and even re-run yaim, both were
>> not able to solve the problem...
>>
>> Is there anyone can help me to fix this problem?
>>
>> Regards
>>
>>
>>
>> --
>> Steve Jones                             [log in to unmask]
>> Grid System Administrator               office: 220
>> High Energy Physics Division            tel (int): 43396
>> Oliver Lodge Laboratory                 tel (ext): +44 (0)151 794 3396
>> University of Liverpool                 http://www.liv.ac.uk/physics/hep/
>>
>>
>>
>>
>> --
>> Muhammad Farhan Sjaugi, S.Kom. M.Sc
>>
>> Technical Coordinator
>> Academic Grid Malaysia
>> c/o UNITEN
>> email: [log in to unmask]
>>
>> Lecturer/Programmer
>> Perdana University Centre for Bioinformatics
>> email: [log in to unmask]
>>
>>
>>
>>
>> --
>> Muhammad Farhan Sjaugi, S.Kom. M.Sc
>>
>> Technical Coordinator
>> Academic Grid Malaysia
>> c/o UNITEN
>> email: [log in to unmask]
>>
>> Lecturer/Programmer
>> Perdana University Centre for Bioinformatics
>> email: [log in to unmask]
>>
>>
>>
>>
>> --
>> Muhammad Farhan Sjaugi, S.Kom. M.Sc
>>
>> Technical Coordinator
>> Academic Grid Malaysia
>> c/o UNITEN
>> email: [log in to unmask]
>>
>> Lecturer/Programmer
>> Perdana University Centre for Bioinformatics
>> email: [log in to unmask]
>>
>>
>>
>>
>> --
>> Muhammad Farhan Sjaugi, S.Kom. M.Sc
>>
>> Technical Coordinator
>> Academic Grid Malaysia
>> c/o UNITEN
>> email: [log in to unmask]
>>
>> Lecturer/Programmer
>> Perdana University Centre for Bioinformatics
>> email: [log in to unmask]
>>
>>
>> --
>> David Rebatto
>> I.N.F.N. - Sezione di Milano
>> Via Celoria, 16 - 20133 Milano ITALY
>> tel: +39 02503.17623 e-mail: [log in to unmask]
>> URL: http://www.mi.infn.it/~rebatto
>>
>> "Computer science is not about computers any more than
>> astronomy is about telescopes." -- Edsger W. Dijkstra
>>
>
>
>
> --
> Muhammad Farhan Sjaugi, S.Kom. M.Sc
>
> Technical Coordinator
> Academic Grid Malaysia
> c/o UNITEN
> email: [log in to unmask]
>
> Lecturer/Programmer
> Perdana University Centre for Bioinformatics
> email: [log in to unmask]



-- 
Muhammad Farhan Sjaugi, S.Kom. M.Sc

Technical Coordinator
Academic Grid Malaysia
c/o UNITEN
email: [log in to unmask]

Lecturer/Programmer
Perdana University Centre for Bioinformatics
email: [log in to unmask]

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
November 2023
June 2023
May 2023
April 2023
March 2023
February 2023
September 2022
June 2022
May 2022
April 2022
February 2022
December 2021
November 2021
October 2021
September 2021
July 2021
June 2021
May 2021
February 2021
January 2021
November 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
February 2018
January 2018
November 2017
October 2017
September 2017
July 2017
June 2017
May 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager