ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Automation using WMB7

Post new topic  Reply to topic
 Automation using WMB7 « View previous topic :: View next topic » 
Author Message
anonym_prtk_94
PostPosted: Thu Jul 20, 2017 3:11 am    Post subject: Automation using WMB7 Reply with quote

Newbie

Joined: 20 Jul 2017
Posts: 3

Hey,

I have been trying to automate the creation and deployment of BAR files using Jenkins. In the entire process, I am using ANT scripts to call the executables like mqsicreatebar, mqsideployscript, etc. In building BAR file although, I am facing an issue... It ends a failure stating "[b]BIP0962E Error opening workspace in mqsicreatebar[/b]." I tried to run the same ANT file using the CLI as root and it runs perfectly, but via jenkins it fails. I have changed the ownership of my Workspace, BAR File Path, ToolKit Path to jenkins and also given full owner permissions, yet no success. Please Help!

P.S. The OS is Linux
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Jul 21, 2017 12:34 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Is your procedure that is using jenkins also running as 'root'?

Running anything like this as 'root' is a huge great NO, NO, Never, Stop it NOW kind of thing.

I'd break what you are doing down into small chunks and actually work backwards from the end point of deploying the flow.

Finally and before you get slapped around the face with a bit of wet fish WMB7 went out of service several years ago. Time to move to a more recent version perhaps?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
anonym_prtk_94
PostPosted: Fri Jul 21, 2017 1:27 am    Post subject: Reply with quote

Newbie

Joined: 20 Jul 2017
Posts: 3

My Project is broken into chunks and it is only the module of Building the BAR file that is not working.
The toolkit installation is that of version 8.
I only testing the ANT file as root. Jenkins is running it via its own user 'jenkins'
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jul 21, 2017 3:42 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What creates the workspace? ANT? Or jenkins?

What happens if the workspoace is owned by root? Could jenkins access files that are owned by root?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
anonym_prtk_94
PostPosted: Wed Jul 26, 2017 2:03 am    Post subject: Reply with quote

Newbie

Joined: 20 Jul 2017
Posts: 3

workspace is owned by jenkins and is created by jenkins
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jul 26, 2017 4:51 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Can you compare the permissions of the ownerships and permissions of the workspace as created by ant versus jenkins?

Again, if you can run something as root, and you can't as other users, then it is *likely* a permission problem.

You should also review the group membership of the jenkins user - it may be necessary to include it in a specific group.

And try running the ant script individually as the jenkins user.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Automation using WMB7
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.