[GH-ISSUE #182] Add verification for AMQP_SERVER_URL param #104

Closed
opened 2026-02-26 09:36:25 +03:00 by kerem · 3 comments
Owner

Originally created by @ShockwaveNN on GitHub (Sep 17, 2019).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/182

  1. Create AmazonMQ broker via https://us-east-1.console.aws.amazon.com/amazon-mq/
  2. Start docker container with params:
docker run -i -t -e AMQP_SERVER_URL=b-6bc5a892-c174-4fe2-8e5d-a393392176d6-1.mq.us-east-1.amazonaws.com \
                 -e AMQP_SERVER_TYPE=activemq \
                 -e RABBITMQ_SERVER_USER=admin \
                 -e RABBITMQ_SERVER_PASS=pass \
onlyoffice/documentserver-ie

cause

/app/onlyoffice/run-document-server.sh: line 350: [: !=: unary operator expected

image

Tryed other variants, result the same

DocumentServer Docker tag: 5.4.0.21

Host Operating System: Ubuntu 18.04

Originally created by @ShockwaveNN on GitHub (Sep 17, 2019). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/182 1. Create AmazonMQ broker via https://us-east-1.console.aws.amazon.com/amazon-mq/ 2. Start docker container with params: ``` docker run -i -t -e AMQP_SERVER_URL=b-6bc5a892-c174-4fe2-8e5d-a393392176d6-1.mq.us-east-1.amazonaws.com \ -e AMQP_SERVER_TYPE=activemq \ -e RABBITMQ_SERVER_USER=admin \ -e RABBITMQ_SERVER_PASS=pass \ onlyoffice/documentserver-ie ```` cause ``` /app/onlyoffice/run-document-server.sh: line 350: [: !=: unary operator expected ``` ![image](https://user-images.githubusercontent.com/668524/65039135-38847680-d95a-11e9-94dc-3ea350967e6c.png) Tryed other variants, result the same **DocumentServer Docker tag:** 5.4.0.21 **Host Operating System:** Ubuntu 18.04
kerem 2026-02-26 09:36:25 +03:00
Author
Owner

@agolybev commented on GitHub (Sep 25, 2019):

AMQP_SERVER_URL has the wrong format. See details here
I think we have to add AMQP_SERVER_URL parameter validation before use it.

<!-- gh-comment-id:535064256 --> @agolybev commented on GitHub (Sep 25, 2019): `AMQP_SERVER_URL` has the wrong format. See details [here](https://www.rabbitmq.com/uri-spec.html) I think we have to add `AMQP_SERVER_URL` parameter validation before use it.
Author
Owner

@igwyd commented on GitHub (Nov 7, 2024):

New variables work correct, checked like this:

AMQP_URI=amqps://login:password@activemq.amazonaws.com:5671
AMQP_TYPE=activemq
<!-- gh-comment-id:2461417679 --> @igwyd commented on GitHub (Nov 7, 2024): New variables work correct, checked like this: ``` AMQP_URI=amqps://login:password@activemq.amazonaws.com:5671 AMQP_TYPE=activemq ```
Author
Owner

@Rita-Bubnova commented on GitHub (Nov 7, 2024):

I close this issue. Feel free to comment or reopen it if you got further questions.

<!-- gh-comment-id:2461559644 --> @Rita-Bubnova commented on GitHub (Nov 7, 2024): I close this issue. Feel free to comment or reopen it if you got further questions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#104
No description provided.