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 » General IBM MQ Support » An error has occurred reading an INI file

Post new topic  Reply to topic Goto page 1, 2  Next
 An error has occurred reading an INI file « View previous topic :: View next topic » 
Author Message
arifndc
PostPosted: Tue Sep 15, 2009 9:09 pm    Post subject: An error has occurred reading an INI file Reply with quote

Novice

Joined: 15 Sep 2009
Posts: 24

I m using 6.0.2.3. I have two QueueManagers already that are working. Before some time i added the following line in qm.ini file of one of the QueueManager

Channels:
MaxChannels=700
MaxActiveChannels=600
TCP:
KeepAlive = Yes
ListenerBacklog=700


Now i m creating a new Queue Manager with crtmqm QM1 but the error is occuring *"An error has occurred reading an INI file"*. I even tried by removing these change form qm.ini but same error is occuring.

-Arif
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Wed Sep 16, 2009 6:03 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

If you have the problem creating a new qmgr, nothing in the old qmgrs qm.ini file is relevant. Check mqs.ini in the /var/mqm directory...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jeevan
PostPosted: Wed Sep 16, 2009 9:10 pm    Post subject: Re: An error has occurred reading an INI file Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

arifndc wrote:
I m using 6.0.2.3. I have two QueueManagers already that are working. Before some time i added the following line in qm.ini file of one of the QueueManager

Channels:
MaxChannels=700
MaxActiveChannels=600
TCP:
KeepAlive = Yes
ListenerBacklog=700


Now i m creating a new Queue Manager with crtmqm QM1 but the error is occuring *"An error has occurred reading an INI file"*. I even tried by removing these change form qm.ini but same error is occuring.

-Arif


While creating a new queue manager, mq does not write to qm.ini file of the existing queue manager. However, it writes to mqs.ini file. So, this INI file indicates the mqs.ini file not the qm.ini file of your other queue manager.

If you have backed up the mqs.ini file, restore. Try to read it by any editor and see whether you can open it or not. If you can not read it, and do not have a backup, you may need to recreate this file.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Sep 16, 2009 9:54 pm    Post subject: Re: An error has occurred reading an INI file Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

jeevan wrote:

While creating a new queue manager, mq does not write to qm.ini file of the existing queue manager. However, it writes to mqs.ini file.


It doesn't write to it, it reads it.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
gunter
PostPosted: Wed Sep 16, 2009 10:45 pm    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

Quote:
It doesn't write to it, it reads it.

There is an entry for every queuemanager in it, so it writes it, too.
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
arifndc
PostPosted: Thu Sep 17, 2009 12:06 am    Post subject: An error has occurred reading an INI file Reply with quote

Novice

Joined: 15 Sep 2009
Posts: 24

i have attached mqs.ini and qm.in (i which i made the changes)
can anyone help why there is error reading these.

-Arif
Back to top
View user's profile Send private message Send e-mail
arifndc
PostPosted: Thu Sep 17, 2009 12:12 am    Post subject: Reply with quote

Novice

Joined: 15 Sep 2009
Posts: 24

I have copied the contents of both the files can any body help me.

==========mqs.ini================

AllQueueManagers:
#********************************************************************#
#* The path to the qmgrs directory, below which queue manager data *#
#* is stored *#
#********************************************************************#
DefaultPrefix=/var/mqm

ClientExitPath:
ExitsDefaultPath=/var/mqm/exits
ExitsDefaultPath64=/var/mqm/exits64

LogDefaults:
LogPrimaryFiles=3
LogSecondaryFiles=2
LogFilePages=1024
LogType=CIRCULAR
LogBufferPages=0
LogDefaultPath=/var/mqm/log
DefaultQueueManager:
Name=mq.test
QueueManager:
Name=mq.test
Prefix=/var/mqm
Directory=mq!test
QueueManager:
Name=mq2.test
Prefix=/var/mqm
Directory=mq2!test

============mq.ini================

#*******************************************************************#
ExitPath:
ExitsDefaultPath=/var/mqm/exits/
ExitsDefaultPath64=/var/mqm/exits64/
#* *#
#* *#
Log:
LogPrimaryFiles=20
LogSecondaryFiles=15
LogFilePages=1024
LogType=CIRCULAR
LogBufferPages=0
LogPath=/var/mqm/log/mq!test/
LogWriteIntegrity=TripleWrite
Service:
Name=AuthorizationService
EntryPoints=13
ServiceComponent:
Service=AuthorizationService
Name=MQSeries.UNIX.auth.service
Module=/usr/mqm/lib64/amqzfu
ComponentDataSize=0
Channels:
MaxChannels=700
MaxActiveChannels=600
TCP:
KeepAlive = Yes
ListenerBacklog=700


-Arif
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Thu Sep 17, 2009 12:19 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

arifndc wrote:
TCP:
KeepAlive = Yes
ListenerBacklog=700


That's the only thing that catches my eye, as it should be KeepAlive=Yes (no spaces).
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
arifndc
PostPosted: Thu Sep 17, 2009 12:39 am    Post subject: Reply with quote

Novice

Joined: 15 Sep 2009
Posts: 24

I have removed the spaces but same error is still comming

can you tell me what services should be restarted. two existing queue manager were already stoppd i just start and stop that queue manager of that ini file i have removed the spaces from.

I thing if qm.ini i creating problem then queue manager should not be started and stop normally. m i right ????

-Arif
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Thu Sep 17, 2009 12:49 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

1. Is the name of the queue manager you are trying to create appearing in the mqs.ini file?
2. Are the ownership/permissions correct for the mqs.ini file?
3. Is the directory structure for that queue manager being created?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
arifndc
PostPosted: Thu Sep 17, 2009 1:15 am    Post subject: Reply with quote

Novice

Joined: 15 Sep 2009
Posts: 24

1- No. it is showing the queue manager created already.

2- yes mqs.ini file is under mqm owner ship. its permission is 777

3- When i run the crtmqm QM1 command. structure is created but when command end and shows error messages structures removed (i think i creates structure temporary and when error occured it is removes)

What should i do now ???

-Arif
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Thu Sep 17, 2009 1:32 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Apologies if I am misinterpreting/misunderstanding your post, but:

arifndc wrote:
1- No. it is showing the queue manager created already.


Are you stating that the entry for the queue manager you are trying to create already exists in the mqs.ini file, or, do you mean that it is only showing your two existing queue managers?

Check also the permissions and file space available in both log and qmgrs directories - it's possible the qm.ini file is not being created for the queue manager, and therefore cannot be read, or is being created but is inaccessible.

EDIT: Additional question - are any FDC files being created?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
gunter
PostPosted: Thu Sep 17, 2009 3:42 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

Quote:
its permission is 777


??? execute permission on a ini file ???
Thats not set by mq.

Check if mqs.ini is still a unix file and check the end of file, too.
Maybe someone opend and saved the file via samba or ftp in a windows editor.
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Sep 17, 2009 4:12 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

gunter wrote:
Quote:
It doesn't write to it, it reads it.

There is an entry for every queuemanager in it, so it writes it, too.



Thanks for correcting me. It reads it to create the new QM, and then writes to it to record the new QM. Forgot about that second part.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Sep 17, 2009 7:37 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

A long time ago, I once had a similar error ("An error has occurred reading an INI file") for a different MQ process on Solaris WMQ v5.3 (probably CSD 3).

It took a lot of work to figure it out. Basically, we had a monitoring task that cron launched once a minute. The Unix shell script did a "cat mqs.ini" each time it ran to get a list of queue managers. I changed it to get the queue manager information from a different source and then the problem went away.

Strange but true.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » An error has occurred reading an INI file
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.