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 IndexWebSphere Message Broker Supportmqsibackupbroker error

Post new topicReply to topic
mqsibackupbroker error View previous topic :: View next topic
Author Message
shinchan
PostPosted: Tue Dec 13, 2016 4:14 pm Post subject: mqsibackupbroker error Reply with quote

Newbie

Joined: 18 Nov 2013
Posts: 6

Hi guys.

I am trying to backup my broker (version 8.0.0.4) but i get this:

Code:
20161212_backup]$ mqsibackupbroker BKR01 -d . -v trace.log

BIP1252I: Creating backup file './BKR01_161213_200709.zip' for broker 'BKR01'.
BIP1253S: Failed to backup the broker 'BKR01' (error 'null')

At least one file in the broker's configuration could not be backed up.

Check user access to the backup or restore directory and reissue the command. If this problem persists contact your IBM support center.


My user is member of mqbrkrs and mqm groups:
Code:
$ groups
mqbrkrs mqm


And has access to the current directory:
Code:
drwxr-xr-x  2 myuser mqbrkrs     4096 dic 13 20:03 20161212_backup



The 3 last lines of trace.log file:


Code:
2016-12-13 20:07:20.0249 java.lang.NullPointerException
        at com.ibm.broker.config.util.BackupBroker.runCommand(BackupBroker.java:591)
        at com.ibm.broker.config.util.BackupBroker.main(BackupBroker.java:752)

2016-12-13 20:07:20.0473 com.ibm.broker.config.util.ConfigUtilityException: BKR01<<null
        at com.ibm.broker.config.util.BackupBroker.runCommand(BackupBroker.java:663)
        at com.ibm.broker.config.util.BackupBroker.main(BackupBroker.java:752)

2016-12-13 20:07:20.0474 Exiting with return code 253 - derived from encountered BIP1253



I searched in google the BIP1253 code and i found this:


Quote:

Backing up or restoring the broker returns error BIP1253 or BIP1262

    Scenario: An error message is generated when you back up or restore a broker:
    The following message is returned when you run the mqsibackupbroker command:
    BIP1253E Failed to backup the broker 'broker_name' (error 'error_code')
    The following message is returned when you run the mqsirestorebroker command:
    Code:
    BIP1262E Could not delete the existing configuration of broker 'broker_name'.


    Explanation: Both backup and restore commands require read/write access to the files that contain broker configuration data. Access has failed and the command cannot complete its operation successfully.


    Solution: Typically, you might see one of these errors if you are running the backup or restore command against an active broker, and a conflict of access has occurred. If your broker is active, use the mqsistop command to stop the broker, and try the operation again.


You might also see one of these errors if the directory to which the command is writing, or from which it is reading, is temporarily inaccessible because of communications or authorization problems. Check that your user ID has access to the directory that you specified in the command.


Source: https://www.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/au16545_.htm


So I tried to run mqsibackup with stopped broker but I got the same.


And I don't have enabled broker administration security:
Code:
20161212_backup]$ mqsireportbroker BKR01
BIP8927I: Broker Name 'BKR01'
 Last mqsistart path  = '/opt/ibm/mqsi/8.0.0.4'
 mqsiprofile install path  = '/opt/ibm/mqsi/8.0.0.4'
 Work path = '/var/mqsi'


 Queue Manager = 'QM01'

 User exit path = ''
 Active user exits = ''
 LDAP principal = ''
 LDAP credentials = ''
 ICU converter path = ''
 Trusted (fastpath) Queue Manager application = 'false'
 Configuration change timeout = '300' seconds
 Internal configuration timeout = '60' seconds
 Statistics major interval = '60' minutes
 Operation mode = 'enterprise'
 Fixpack capability level = '8.0.0.4' (effective level '8.0.0.4')
 Broker registry format = 'v8.0'
 Administration security = 'inactive'
 Multi-instance Broker = 'false'
 Shared Work Path = 'none'






BIP8071I: Successful command completion.


I do not know what the problem is.
Please any help is appreciated.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Dec 13, 2016 11:38 pm Post subject: Reply with quote

Jedi Council

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

This
Code:

At least one file in the broker's configuration could not be backed up.


Seems pretty clear to me.

Have you checked the user and group ownership of ALL the files in the Broker Tree?
Perhaps one got 'modified' by hand and had its attributes changed.
You could write a shell script to check for you
List ( ls -la) all the files in every directory (ls -laR) and feed it into grep where you look for a pattern that does not include 'mqbrkrs' and the appropriate user name.

Have you tried to create a new broker (different name) and get a backup of it?
Does this work?
_________________
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
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker Supportmqsibackupbroker error
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.