ibm-messaging / mq-dev-samples

Samples for getting started with IBM MQ
Apache License 2.0
68 stars 108 forks source link

3 bugs found running the script #20

Open beckmi opened 10 months ago

beckmi commented 10 months ago
  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 ...

chughts commented 10 months ago

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 commented 10 months ago

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
beckmi commented 10 months ago

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

chughts commented 10 months ago

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

beckmi commented 10 months ago

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