mq-dev-samples icon indicating copy to clipboard operation
mq-dev-samples copied to clipboard

3 bugs found running the script

Open beckmi opened this issue 2 years ago • 5 comments

  1. The downloaded tar contains Package.gz but Package is required
  2. The tar is extracted to /tmp/MQServer but the archive directory is set to ~/MQServer
  3. if you fix these two problems and try the amqsputc example you run into error "MQCONNX ended with reason code 2540"

In addition to these errors, it would be nice if the example could be kept up to date. The version downloaded by the script is 9.2, the current version is 9.3.4 ...

beckmi avatar Nov 07 '23 09:11 beckmi

Are you referring to gettingStarted/installing-mq-ubuntu/mq-ubuntu-install.sh ?

If I've understood correctly then the following issues need looking at:

  1. Bump MQ version
  2. Doc isn't clear that its a gunzip
  3. We need to be explicit in the path to the tar
  4. Need to show how to set MQSERVER

chughts avatar Nov 07 '23 12:11 chughts

Incidentally 2540 is MQRC_UNKNOWN_CHANNEL_NAME, which implies that you are specifying the channel name incorrectly for amqsputc. Are you exporting the MQSERVER ?

set MQSERVER=DEV.APP.SVRCONN/TCP/localhost(1414)
set MQSAMP_USER_ID=app

amqsputc DEV.QUEUE.1 QM1

chughts avatar Nov 07 '23 12:11 chughts

threads-max and the soft limit for nofile have been to low the installation should stop if the resources are not configred according the needs I first had tried to install on a server without the ability to scroll back the installation output it also is somewhat annoing that there is no check if directory ~/Downloads exists

beckmi avatar Nov 07 '23 15:11 beckmi

Looks like you have made the relevant changes. I will accept a pull request.

chughts avatar Nov 07 '23 16:11 chughts

Sorry – I did not change the script but executed all steps manually.

beckmi avatar Nov 07 '23 18:11 beckmi