Internal server error after install

Hi!
I am trying to test OnlyOffice integration with Redmine. I run both of them in docker containers. Installtion went fine, I deployed a community edition and tried to edit a few documents, so far so good.

Installing a plugin went fine as well. Then I went to configure it and entered a ‘http://localhost:8081’ (tried 8082 as well) as an address of the document server because I mapped ports from OnlyOffice container like this:

   ports:
      - '8081:80'
      - '8082:8080'
      - '4433:443'

I did this simply because 80 is occupied by Redmine web interface. I also specified a JWT in my docker configuration and entered it as well. I did not enter anything in the advanced server settings section because I do not quite understand their meaning and I could not find any good explanation of those in the docs.

So, when I did all of that I tried to save the settings and got an ‘Internal error’ at the page top.

Couldn’t find anything in Redmine logs as well as in OnlyOffice logs (as far as I know about them, at least nginx error logs)

Can anyone explain what I might be doing wrong?

Document Server version: v8.0.1.6 as I can judge from ‘git log’
Installation method: docker containers
Redmine: 5.0.7
Redmine connector: 3.0.1
OS: Linux kernel 6.6.16
Browser version: FF 122.0.1

Hey @vomus :wave:
Give me a bit more information:

  1. Share your current plugin configuration with us (including the advanced server settings).
  2. To get better understanding, please provide screenshots of browser’s console-> Console tabs:
  • Open browser’s console (F12 in Chrome/Firefox/Edge) > Console
  • Reproduce the error
  1. Provide the content of your etc/onlyoffice/documentserver/local.json file.
  2. Please provide the output of the docker ps command from the server where both Redmine and Document Server are installed.

Environment:
Redmine version 5.0.7.stable
Ruby version 2.7.5-p203 (2021-11-24) [x86_64-linux-gnu]
Rails version 6.1.7.6
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Redminex_theme
SCM:
Subversion 1.13.0
Mercurial 5.3.1
Cvs 1.12.13
Bazaar 3.0.2
Git 2.43.0
Filesystem
Redmine plugins:
000_redmine_x_ux_upgrade 1.3.13
onlyoffice_redmine 3.0.1
redmine_agile 1.6.5
redmine_budgets 1.0.4
redmine_checklists 3.1.22
redmine_contacts 4.3.8
redmine_contacts_invoices 4.2.8
redmine_custom_workflows 2.1.0
redmine_drawio 1.4.8
redmine_editauthor 0.11.1
redmine_reporter 2.0.3
redmine_resources 2.0.0
redmine_webhook 0.0.5
redmine_wysiwyg_editor 0.32.0
redmine_x_agile_my_page 1.1.4
redmine_x_assets 2.1.9
redmine_x_client 1.1.0
redmine_x_gantt 2.1.8
redmine_x_lightbox2 1.0.0
redmine_x_project_templates 1.1.2
redmineup_tags 2.0.13

There is nothing there!

root@71b1d7a2d016:/etc/onlyoffice/documentserver# cat local.json
{
“services”: {
“CoAuthoring”: {
“sql”: {
“type”: “mariadb”,
“dbHost”: “10.161.1.111”,
“dbPort”: “3306”,
“dbName”: “onlyoffice”,
“dbUser”: “onlyoffice”,
“dbPass”: “onlyoffice”
},
“token”: {
“enable”: {
“request”: {
“inbox”: true,
“outbox”: true
},
“browser”: true
},
“inbox”: {
“header”: “Authorization”,
“inBody”: true
},
“outbox”: {
“header”: “Authorization”,
“inBody”: true
}
},
“secret”: {
“inbox”: {
“string”: “HBFZSQSepSbRKPy0wpijSBQwGOQ2ic9a”
},
“outbox”: {
“string”: “HBFZSQSepSbRKPy0wpijSBQwGOQ2ic9a”
},
“session”: {
“string”: “HBFZSQSepSbRKPy0wpijSBQwGOQ2ic9a”
}
}
}
},
“rabbitmq”: {
“url”: “amqp://guest:guest@onlyoffice-rabbitmq”
},
“queue”: {
“type”: “rabbitmq”
},
“storage”: {
“fs”: {
“secretString”: “7M0VsVjzCbOVfRqEv8LN”
}
}
}

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
71b1d7a2d016 docker-documentserver-onlyoffice-documentserver “/app/ds/run-documen…” 3 days ago Up About a minute 0.0.0.0:8081->80/tcp, :::8081->80/tcp, 0.0.0.0:4433->443/tcp, :::4433->443/tcp, 0.0.0.0:8082->8080/tcp, :::8082->8080/tcp onlyoffice-documentserver
9f9b23493d7a rabbitmq “docker-entrypoint.s…” 4 days ago Up About a minute 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp onlyoffice-rabbitmq
cc9be7a16094 sameersbn/redmine:5.0.7-1 “/sbin/entrypoint.sh…” 6 days ago Up 16 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp docker-redmine-1

Can you provide a screenshot of the settings for the onlyoffice_connector plugin, where you enter the data to connect to the document server?

Also, please provide a screenshot of the error message that occurs.

Please confirm the functionality of the document server running on port 8081.

Document server does run on 8081:

And I provide a screenshot with the data I enter on the next post because this interface does not allow more than one picture in a post. :slight_smile:

Here is a screenshot with the data I enter and an “internal error” message

@vomus

Let’s start by trying to specify the host IP address of the document server instead of using localhost.

http://ip:port/

This is what I see in Redmine log:

I, [2024-03-06T19:29:57.180121 #277]  INFO -- : [678e9a3b-1cac-4f9e-978e-451654391fc2] Started POST "/onlyoffice/settings" for 172.18.1.1 at 2024-03-06 19:29:57 +0300
I, [2024-03-06T19:29:57.180735 #277]  INFO -- : [678e9a3b-1cac-4f9e-978e-451654391fc2] Processing by OnlyOfficeSettingsController#update as HTML
I, [2024-03-06T19:29:57.180794 #277]  INFO -- : [678e9a3b-1cac-4f9e-978e-451654391fc2]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"F428VdNpGz4pMhlD6t4MBFKoSubADJ0vxR47FJAvUb7on45X9hCX1d65YIrLh+PrwFyqIIaqD3hCGY7z7XlgAQ==", "onlyoffice"=>{"document_server_url"=>"http://10.161.1.111:8081", "document_server_internal_url"=>"", "plugin_internal_url"=>"", "jwt_secret"=>"HBFZSQSepSbRKPy0wpijSBQwGOQ2ic9a", "jwt_http_header"=>"Authorization", "editor_chat_enabled"=>"1", "editor_feedback_enabled"=>"1", "editor_help_enabled"=>"1", "formats_editable"=>["csv", "epub", "fb2", "html", "odp", "ods", "odt", "otp", "ots", "ott", "rtf", "txt"]}, "commit"=>"Apply"}
I, [2024-03-06T19:29:57.183735 #277]  INFO -- : [678e9a3b-1cac-4f9e-978e-451654391fc2] Settings cache cleared.
I, [2024-03-06T19:29:57.184655 #277]  INFO -- : [678e9a3b-1cac-4f9e-978e-451654391fc2]   Current user: naumovs (id=5)
I, [2024-03-06T19:29:57.187004 #277]  INFO -- onlyoffice-redmine: [678e9a3b-1cac-4f9e-978e-451654391fc2] Starting the process of saving settings
I, [2024-03-06T19:29:57.187292 #277]  INFO -- onlyoffice-redmine: [678e9a3b-1cac-4f9e-978e-451654391fc2] Current settings: {"conversion"=>{"timeout"=>120000}, "editor"=>{"chat_enabled"=>true, "compact_header_enabled"=>false, "feedback_enabled"=>true, "force_save_enabled"=>false, "help_enabled"=>true, "toolbar_tabs_disabled"=>false}, "formats"=>{"editable"=>["csv", "docxf", "epub", "fb2", "html", "odp", "ods", "odt", "otp", "ots", "ott", "pdfa", "rtf", "txt"]}, "ssl"=>{"verify_mode"=>1}, "jwt"=>{"enabled"=>false, "secret"=>"***", "algorithm"=>"HS256", "http_header"=>"Authorization"}, "document_server"=>{"url"=>"http://localhost/", "internal_url"=>""}, "plugin"=>{"enabled"=>true, "url"=>"", "internal_url"=>""}, "trial"=>{"enabled"=>false, "enabled_at"=>"", "period"=>2592000}, "fallback_jwt"=>{"enabled"=>true, "secret"=>"***", "algorithm"=>"HS256", "http_header"=>"Authorization"}}
I, [2024-03-06T19:29:57.187608 #277]  INFO -- onlyoffice-redmine: [678e9a3b-1cac-4f9e-978e-451654391fc2] Patched settings: {"conversion"=>{"timeout"=>120000}, "editor"=>{"chat_enabled"=>true, "compact_header_enabled"=>false, "feedback_enabled"=>true, "force_save_enabled"=>false, "help_enabled"=>true, "toolbar_tabs_disabled"=>false}, "formats"=>{"editable"=>["csv", "epub", "fb2", "html", "odp", "ods", "odt", "otp", "ots", "ott", "rtf", "txt"]}, "ssl"=>{"verify_mode"=>1}, "jwt"=>{"enabled"=>true, "secret"=>"***", "algorithm"=>"HS256", "http_header"=>"Authorization"}, "document_server"=>{"url"=>"http://10.161.1.111:8081/", "internal_url"=>""}, "plugin"=>{"enabled"=>true, "url"=>"http://localhost/", "internal_url"=>""}, "trial"=>{"enabled"=>false, "enabled_at"=>"", "period"=>2592000}, "fallback_jwt"=>{"enabled"=>true, "secret"=>"***", "algorithm"=>"HS256", "http_header"=>"Authorization"}}
I, [2024-03-06T19:29:57.191585 #277]  INFO -- onlyoffice: [678e9a3b-1cac-4f9e-978e-451654391fc2] Starting GET http://10.161.1.111:8081/healthcheck {"accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], "accept"=>["application/json"], "user-agent"=>["Ruby"], "host"=>["10.161.1.111:8081"]} 
I, [2024-03-06T19:29:57.195561 #277]  INFO -- onlyoffice: [678e9a3b-1cac-4f9e-978e-451654391fc2] 200 OK {"server"=>["nginx"], "date"=>["Wed, 06 Mar 2024 16:29:57 GMT"], "content-type"=>["text/plain; charset=utf-8"], "content-length"=>["4"], "connection"=>["close"], "etag"=>["W/\"4-X/5TO4MPCKAyY0ipFgr6/IraRNs\""]} true
I, [2024-03-06T19:29:57.195916 #277]  INFO -- onlyoffice: [678e9a3b-1cac-4f9e-978e-451654391fc2] Starting POST http://10.161.1.111:8081/coauthoring/CommandService.ashx {"accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], "accept"=>["application/json"], "user-agent"=>["Ruby"], "host"=>["10.161.1.111:8081"], "content-type"=>["application/json"]} {"c":"version"}
I, [2024-03-06T19:29:57.198847 #277]  INFO -- onlyoffice: [678e9a3b-1cac-4f9e-978e-451654391fc2] 200 OK {"server"=>["nginx"], "date"=>["Wed, 06 Mar 2024 16:29:57 GMT"], "content-type"=>["application/json"], "transfer-encoding"=>["chunked"], "connection"=>["close"], "vary"=>["Accept-Encoding"], "etag"=>["W/\"20-sqFUhS5qXkrPSFl04J3+cHltf4g\""]} {"error":0,"version":"8.0.0.99"}
I, [2024-03-06T19:29:57.199528 #277]  INFO -- onlyoffice: [678e9a3b-1cac-4f9e-978e-451654391fc2] Starting POST http://10.161.1.111:8081/ConvertService.ashx {"accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], "accept"=>["application/json"], "user-agent"=>["Ruby"], "host"=>["10.161.1.111:8081"], "content-type"=>["application/json"]} {"filetype":"txt","key":"1709742597","outputtype":"docx","url":"http://localhost/onlyoffice/ping?token=eyJhbGdvcml0aG0iOiJIUzI1NiIsImFsZyI6IkhTMjU2In0.eyJ1cmwiOiJodHRwOi8vbG9jYWxob3N0L29ubHlvZmZpY2UvcGluZyJ9.vBXL4hFonqGQj8QrRNKpFNifadymI0JR3LabQseKgyQ"}
I, [2024-03-06T19:30:01.230204 #277]  INFO -- onlyoffice: [678e9a3b-1cac-4f9e-978e-451654391fc2] 200 OK {"server"=>["nginx"], "date"=>["Wed, 06 Mar 2024 16:30:01 GMT"], "content-type"=>["application/json; charset=UTF-8"], "content-length"=>["12"], "connection"=>["close"], "etag"=>["W/\"c-5lC/GNXd6iIppom73lLvBY0S2ZI\""]} {"error":-4}
E, [2024-03-06T19:30:01.230336 #277] ERROR -- onlyoffice-redmine: [678e9a3b-1cac-4f9e-978e-451654391fc2] Error while downloading the document file to be converted (200 OK)
I, [2024-03-06T19:30:01.238074 #277]  INFO -- : [678e9a3b-1cac-4f9e-978e-451654391fc2] Redirected to http://localhost/settings/plugin/onlyoffice_redmine
I, [2024-03-06T19:30:01.238207 #277]  INFO -- : [678e9a3b-1cac-4f9e-978e-451654391fc2] Completed 302 Found in 4057ms (ActiveRecord: 6.1ms | Allocations: 9525)
I, [2024-03-06T19:30:01.248911 #277]  INFO -- : [94565f2e-6290-45bf-90c8-2b550272a7b0] Started GET "/settings/plugin/onlyoffice_redmine" for 172.18.1.1 at 2024-03-06 19:30:01 +0300
I, [2024-03-06T19:30:01.249797 #277]  INFO -- : [94565f2e-6290-45bf-90c8-2b550272a7b0] Processing by SettingsController#plugin as HTML
I, [2024-03-06T19:30:01.249856 #277]  INFO -- : [94565f2e-6290-45bf-90c8-2b550272a7b0]   Parameters: {"id"=>"onlyoffice_redmine"}
I, [2024-03-06T19:30:01.254384 #277]  INFO -- : [94565f2e-6290-45bf-90c8-2b550272a7b0] Settings cache cleared.
I, [2024-03-06T19:30:01.255498 #277]  INFO -- : [94565f2e-6290-45bf-90c8-2b550272a7b0]   Current user: naumovs (id=5)
I, [2024-03-06T19:30:01.261603 #277]  INFO -- : [94565f2e-6290-45bf-90c8-2b550272a7b0]   Rendered plugins/000_redmine_x_ux_upgrade/app/views/settings/plugin.html.erb within layouts/admin (Duration: 3.4ms | Allocations: 4844)
I, [2024-03-06T19:30:01.273367 #277]  INFO -- : [94565f2e-6290-45bf-90c8-2b550272a7b0]   Rendered inline template (Duration: 0.7ms | Allocations: 161)
I, [2024-03-06T19:30:01.315136 #277]  INFO -- : [94565f2e-6290-45bf-90c8-2b550272a7b0]   Rendered plugins/000_redmine_x_ux_upgrade/app/views/layouts/base.html.erb (Duration: 51.1ms | Allocations: 33335)
I, [2024-03-06T19:30:01.315261 #277]  INFO -- : [94565f2e-6290-45bf-90c8-2b550272a7b0]   Rendered layout layouts/admin.html.erb (Duration: 57.1ms | Allocations: 40935)
I, [2024-03-06T19:30:01.315487 #277]  INFO -- : [94565f2e-6290-45bf-90c8-2b550272a7b0] Completed 200 OK in 66ms (Views: 49.3ms | ActiveRecord: 10.3ms | Allocations: 43301)

I also found this in /var/log/onlyoffice/documentserver/converter/out.log:

[2024-03-06T16:29:57.210] [ERROR] [localhost] [conv_1709742597_docx] [userId] nodeJS - error downloadFile:url=http://localhost/onlyoffice/ping?token=eyJhbGdvcml0aG0iOiJIUzI1NiIsImFsZyI6IkhTMjU2In0.eyJ1cmwiOiJodHRwOi8vbG9jYWxob3N0L29ubHlvZmZpY2UvcGluZyJ9.vBXL4hFonqGQj8QrRNKpFNifadymI0JR3LabQseKgyQ;attempt=1;code:null;connect:null Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Wed, 06 Mar 2024 16:29:57 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/Common/sources/utils.js)
    at Request.emit (node:events:527:28)
    at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
    at ClientRequest.emit (node:events:527:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at Socket.socketOnData (node:_http_client:494:22)
    at Socket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
[2024-03-06T16:29:58.217] [ERROR] [localhost] [conv_1709742597_docx] [userId] nodeJS - error downloadFile:url=http://localhost/onlyoffice/ping?token=eyJhbGdvcml0aG0iOiJIUzI1NiIsImFsZyI6IkhTMjU2In0.eyJ1cmwiOiJodHRwOi8vbG9jYWxob3N0L29ubHlvZmZpY2UvcGluZyJ9.vBXL4hFonqGQj8QrRNKpFNifadymI0JR3LabQseKgyQ;attempt=2;code:null;connect:null Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Wed, 06 Mar 2024 16:29:58 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/Common/sources/utils.js)
    at Request.emit (node:events:527:28)
    at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
    at ClientRequest.emit (node:events:527:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at Socket.socketOnData (node:_http_client:494:22)
    at Socket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
[2024-03-06T16:29:59.223] [ERROR] [localhost] [conv_1709742597_docx] [userId] nodeJS - error downloadFile:url=http://localhost/onlyoffice/ping?token=eyJhbGdvcml0aG0iOiJIUzI1NiIsImFsZyI6IkhTMjU2In0.eyJ1cmwiOiJodHRwOi8vbG9jYWxob3N0L29ubHlvZmZpY2UvcGluZyJ9.vBXL4hFonqGQj8QrRNKpFNifadymI0JR3LabQseKgyQ;attempt=3;code:null;connect:null Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Wed, 06 Mar 2024 16:29:59 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/Common/sources/utils.js)
    at Request.emit (node:events:527:28)
    at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
    at ClientRequest.emit (node:events:527:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at Socket.socketOnData (node:_http_client:494:22)
    at Socket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

@vomus

, [2024-03-06T19:29:57.180121 #277] INFO – : [678e9a3b-1cac-4f9e-978e-451654391fc2] Started POST “/onlyoffice/settings” for 172.18.1.1 at 2024-03-06 19:29:57 +0300

[2024-03-06T16:29:57.210] [ERROR] [localhost] [conv_1709742597_docx] [userId] nodeJS - error downloadFile:url=http://localhost/onlyoffice/ping?

The document server requires an external IP address. Using ‘localhost’ or the container’s IP address won’t work because the document server cannot access the container’s IP address from an external client.

Hi!
I unerstand… So, I put them on the same network and entered http://172.18.6.4:8081, it still does not work. Do I get the right address?

        "Containers": {
            "7cc37128e28d7e2d74dcaf51d908f3b74508534078f0d56203baacd9dc1746ad": {
                "Name": "onlyoffice-rabbitmq",
                "EndpointID": "c5e7e42d14f59bd6696de16d42a34eb1da4038c96fba925e13d62d2606effdb0",
                "MacAddress": "02:42:ac:12:06:03",
                "IPv4Address": "172.18.6.3/24",
                "IPv6Address": ""
            },
            "97a6f73812163802eb63a9192da5826a8e88a929f13b0c1837fc3f6aea66d3f8": {
                "Name": "redmine507",
                "EndpointID": "ee190e593499e7f5a38232f6b6adb5a171db8acaaefcfa5afe503481a59fc9a9",
                "MacAddress": "02:42:ac:12:06:02",
                "IPv4Address": "172.18.6.2/24",
                "IPv6Address": ""
            },
            "f26923e1212b0f7126dfd8239404de38c15e3a3bdc09a7d52027a181f3046bb3": {
                "Name": "onlyoffice-documentserver",
                "EndpointID": "1a177085de981c48afde8068d8d1654e3dd1ca2746bcf9a182e6dfeddd1ae885",
                "MacAddress": "02:42:ac:12:06:04",
                "IPv4Address": "172.18.6.4/24",
                "IPv6Address": ""
            }
        },
1 Like

Let me demonstrate what I am doing…

[serge@veles redmine]$ docker network create vomus
bb64af07bc3be915660dc0f3191488dc17946f373a389ffaea0daeb6f46cfd5d
[serge@veles redmine]$ docker network ls
NETWORK ID     NAME                     DRIVER    SCOPE
4c8baa8ba5a2   bridge                   bridge    local
46fdff2d436d   docker-redmine_default   bridge    local
82fe1284f705   host                     host      local
417079ea5952   none                     null      local
bb64af07bc3b   vomus                    bridge    local
[serge@veles docker-redmine]$ docker ps
CONTAINER ID   IMAGE                       COMMAND                  CREATED      STATUS          PORTS                                                                      NAMES
3a0b1c84efe5   sameersbn/redmine:5.0.7-1   "/sbin/entrypoint.sh…"   2 days ago   Up 17 seconds   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp   redmine507
[serge@veles docker-redmine]$ docker network connect vomus 3a0b1c84efe5
[serge@veles Docker-DocumentServer]$ docker compose up -d
[+] Running 2/3
 ⠇ Network docker-documentserver_default  Created                                                                                                                                                               3.8s 
 ✔ Container onlyoffice-rabbitmq          Started                                                                                                                                                               3.6s 
 ✔ Container onlyoffice-documentserver    Started                                                                                                                                                               3.7s 
[serge@veles Docker-DocumentServer]$ docker ps 
CONTAINER ID   IMAGE                                             COMMAND                  CREATED          STATUS              PORTS                                                                                                                       NAMES
299a09f0c40d   docker-documentserver-onlyoffice-documentserver   "/app/ds/run-documen…"   22 seconds ago   Up 18 seconds       0.0.0.0:8081->80/tcp, :::8081->80/tcp, 0.0.0.0:4433->443/tcp, :::4433->443/tcp, 0.0.0.0:8082->8080/tcp, :::8082->8080/tcp   onlyoffice-documentserver
5fb398efef35   rabbitmq                                          "docker-entrypoint.s…"   23 seconds ago   Up 19 seconds       4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp                                                                         onlyoffice-rabbitmq
3a0b1c84efe5   sameersbn/redmine:5.0.7-1                         "/sbin/entrypoint.sh…"   2 days ago       Up About a minute   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp                                                    redmine507
[serge@veles Docker-DocumentServer]$ docker network connect vomus 299a09f0c40d
[serge@veles Docker-DocumentServer]$ docker network inspect vomus
[
    {
        "Name": "vomus",
        "Id": "bb64af07bc3be915660dc0f3191488dc17946f373a389ffaea0daeb6f46cfd5d",
        "Created": "2024-03-18T21:30:18.105688295+03:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": {},
            "Config": [
                {
                    "Subnet": "172.18.0.0/24",
                    "Gateway": "172.18.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "299a09f0c40d4c681f658594dd1c13e040ef19a0f5b06c1a7897c33d93f4956f": {
                "Name": "onlyoffice-documentserver",
                "EndpointID": "7eb3a0a04e0b9dce0d1f11e085b5148a99039c3fcc73327ecc969fe5f219a702",
                "MacAddress": "02:42:ac:12:00:03",
                "IPv4Address": "172.18.0.3/24",
                "IPv6Address": ""
            },
            "3a0b1c84efe51c40380b9b93d8d296af5e7e35d110756fad47d9668912fdbca7": {
                "Name": "redmine507",
                "EndpointID": "024f1cfe871ae6fc5220f997bf79f5ce043238c9f13066c6f423cca845a57ddf",
                "MacAddress": "02:42:ac:12:00:02",
                "IPv4Address": "172.18.0.2/24",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]

So, we see that Documentserver has an IP of 172.18.0.3. Let us check the connection. The redmine container does not seem to have ping in it, so I am trying to ssh just to check the IP is reachable.

[serge@veles Docker-DocumentServer]$ docker exec -it 3a0b1c84efe5 /bin/bash
root@3a0b1c84efe5:/home/redmine/redmine# ssh 172.18.0.3
ssh: connect to host 172.18.0.3 port 22: Connection refused

Now, log in to Redmine and supply http://172.18.0.3:8081 and see the error…

@vomus
I messaged you privately a couple of days ago.

Could you please tell me which IP address you set in the Redmine plugin settings?

You need to set your external IP address, which should be accessible from your browser.

Hm… I haven’t seen a private message. Speaking of the external address… Ok, I also tried this one. The external address of both redmine instance and onlyoffice server is 10.161.1.111:

I, [2024-03-25T22:33:09.282927 #274]  INFO -- : [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Started POST "/onlyoffice/settings" for 172.18.1.1 at 2024-03-25 22:33:09 +0300
I, [2024-03-25T22:33:09.283777 #274]  INFO -- : [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Processing by OnlyOfficeSettingsController#update as HTML
I, [2024-03-25T22:33:09.283852 #274]  INFO -- : [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"dtiOzErD38i7wFivq+dEu/2gatQO3kK2+FqnCBxjaun2gPJxwylrl0dBs56o9H3O0cA2MOsiF/Ht8ZM0pmR6Cw==", "onlyoffice"=>{"document_server_url"=>"http://10.161.1.111:8081/", "document_server_internal_url"=>"", "plugin_internal_url"=>"", "jwt_secret"=>"HBFZSQSepSbRKPy0wpijSBQwGOQ2ic9a", "jwt_http_header"=>"Authorization", "editor_chat_enabled"=>"1", "editor_feedback_enabled"=>"1", "editor_help_enabled"=>"1", "formats_editable"=>["csv", "epub", "fb2", "html", "odp", "ods", "odt", "otp", "ots", "ott", "rtf", "txt"]}, "commit"=>"Apply"}
I, [2024-03-25T22:33:09.288653 #274]  INFO -- : [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Settings cache cleared.
I, [2024-03-25T22:33:09.290062 #274]  INFO -- : [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204]   Current user: naumovs (id=5)
I, [2024-03-25T22:33:09.293120 #274]  INFO -- onlyoffice-redmine: [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Starting the process of saving settings
I, [2024-03-25T22:33:09.293556 #274]  INFO -- onlyoffice-redmine: [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Current settings: {"conversion"=>{"timeout"=>120000}, "editor"=>{"chat_enabled"=>true, "compact_header_enabled"=>false, "feedback_enabled"=>true, "force_save_enabled"=>false, "help_enabled"=>true, "toolbar_tabs_disabled"=>false}, "formats"=>{"editable"=>["csv", "docxf", "epub", "fb2", "html", "odp", "ods", "odt", "otp", "ots", "ott", "pdfa", "rtf", "txt"]}, "ssl"=>{"verify_mode"=>1}, "jwt"=>{"enabled"=>false, "secret"=>"***", "algorithm"=>"HS256", "http_header"=>"Authorization"}, "document_server"=>{"url"=>"http://localhost/", "internal_url"=>""}, "plugin"=>{"enabled"=>true, "url"=>"", "internal_url"=>""}, "trial"=>{"enabled"=>false, "enabled_at"=>"", "period"=>2592000}, "fallback_jwt"=>{"enabled"=>true, "secret"=>"***", "algorithm"=>"HS256", "http_header"=>"Authorization"}}
I, [2024-03-25T22:33:09.294013 #274]  INFO -- onlyoffice-redmine: [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Patched settings: {"conversion"=>{"timeout"=>120000}, "editor"=>{"chat_enabled"=>true, "compact_header_enabled"=>false, "feedback_enabled"=>true, "force_save_enabled"=>false, "help_enabled"=>true, "toolbar_tabs_disabled"=>false}, "formats"=>{"editable"=>["csv", "epub", "fb2", "html", "odp", "ods", "odt", "otp", "ots", "ott", "rtf", "txt"]}, "ssl"=>{"verify_mode"=>1}, "jwt"=>{"enabled"=>true, "secret"=>"***", "algorithm"=>"HS256", "http_header"=>"Authorization"}, "document_server"=>{"url"=>"http://10.161.1.111:8081/", "internal_url"=>""}, "plugin"=>{"enabled"=>true, "url"=>"http://localhost/", "internal_url"=>""}, "trial"=>{"enabled"=>false, "enabled_at"=>"", "period"=>2592000}, "fallback_jwt"=>{"enabled"=>true, "secret"=>"***", "algorithm"=>"HS256", "http_header"=>"Authorization"}}
I, [2024-03-25T22:33:09.298182 #274]  INFO -- onlyoffice: [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Starting GET http://10.161.1.111:8081/healthcheck {"accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], "accept"=>["application/json"], "user-agent"=>["Ruby"], "host"=>["10.161.1.111:8081"]} 
I, [2024-03-25T22:33:09.302849 #274]  INFO -- onlyoffice: [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] 200 OK {"server"=>["nginx"], "date"=>["Mon, 25 Mar 2024 19:33:09 GMT"], "content-type"=>["text/plain; charset=utf-8"], "content-length"=>["4"], "connection"=>["close"], "etag"=>["W/\"4-X/5TO4MPCKAyY0ipFgr6/IraRNs\""]} true
I, [2024-03-25T22:33:09.303238 #274]  INFO -- onlyoffice: [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Starting POST http://10.161.1.111:8081/coauthoring/CommandService.ashx {"accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], "accept"=>["application/json"], "user-agent"=>["Ruby"], "host"=>["10.161.1.111:8081"], "content-type"=>["application/json"]} {"c":"version"}
I, [2024-03-25T22:33:09.306284 #274]  INFO -- onlyoffice: [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] 200 OK {"server"=>["nginx"], "date"=>["Mon, 25 Mar 2024 19:33:09 GMT"], "content-type"=>["application/json"], "transfer-encoding"=>["chunked"], "connection"=>["close"], "vary"=>["Accept-Encoding"], "etag"=>["W/\"20-sqFUhS5qXkrPSFl04J3+cHltf4g\""]} {"error":0,"version":"8.0.0.99"}
I, [2024-03-25T22:33:09.306944 #274]  INFO -- onlyoffice: [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Starting POST http://10.161.1.111:8081/ConvertService.ashx {"accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], "accept"=>["application/json"], "user-agent"=>["Ruby"], "host"=>["10.161.1.111:8081"], "content-type"=>["application/json"]} {"filetype":"txt","key":"1711395189","outputtype":"docx","url":"http://localhost/onlyoffice/ping?token=eyJhbGdvcml0aG0iOiJIUzI1NiIsImFsZyI6IkhTMjU2In0.eyJ1cmwiOiJodHRwOi8vbG9jYWxob3N0L29ubHlvZmZpY2UvcGluZyJ9.-bdjlGz4FpBqkAbp3JGtLct1_PXcE0kDOw3BxDscSoU"}
I, [2024-03-25T22:33:13.322250 #274]  INFO -- onlyoffice: [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] 200 OK {"server"=>["nginx"], "date"=>["Mon, 25 Mar 2024 19:33:13 GMT"], "content-type"=>["application/json; charset=UTF-8"], "content-length"=>["12"], "connection"=>["close"], "etag"=>["W/\"c-5lC/GNXd6iIppom73lLvBY0S2ZI\""]} {"error":-4}
E, [2024-03-25T22:33:13.322375 #274] ERROR -- onlyoffice-redmine: [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Error while downloading the document file to be converted (200 OK)
I, [2024-03-25T22:33:13.328920 #274]  INFO -- : [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Redirected to http://localhost/settings/plugin/onlyoffice_redmine
I, [2024-03-25T22:33:13.329057 #274]  INFO -- : [1ff21aa0-a4ed-4b1d-8059-ede63f0ee204] Completed 302 Found in 4045ms (ActiveRecord: 5.8ms | Allocations: 9457)
I, [2024-03-25T22:33:13.333646 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db] Started GET "/settings/plugin/onlyoffice_redmine" for 172.18.1.1 at 2024-03-25 22:33:13 +0300
I, [2024-03-25T22:33:13.334295 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db] Processing by SettingsController#plugin as HTML
I, [2024-03-25T22:33:13.334340 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db]   Parameters: {"id"=>"onlyoffice_redmine"}
I, [2024-03-25T22:33:13.338911 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db] Settings cache cleared.
I, [2024-03-25T22:33:13.340037 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db]   Current user: naumovs (id=5)
I, [2024-03-25T22:33:13.358683 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db]   Rendered plugins/000_redmine_x_ux_upgrade/app/views/settings/plugin.html.erb within layouts/admin (Duration: 13.3ms | Allocations: 17102)
I, [2024-03-25T22:33:13.371369 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db]   Rendered inline template (Duration: 0.5ms | Allocations: 161)
I, [2024-03-25T22:33:13.372626 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db]   Rendered inline template (Duration: 0.3ms | Allocations: 161)
I, [2024-03-25T22:33:13.415522 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db]   Rendered plugins/000_redmine_x_ux_upgrade/app/views/layouts/base.html.erb (Duration: 53.4ms | Allocations: 34274)
I, [2024-03-25T22:33:13.415634 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db]   Rendered layout layouts/admin.html.erb (Duration: 70.3ms | Allocations: 54307)
I, [2024-03-25T22:33:13.415855 #274]  INFO -- : [bb30e15f-6a0e-405c-b196-9eebcc9d79db] Completed 200 OK in 81ms (Views: 61.9ms | ActiveRecord: 11.2ms | Allocations: 59423)

@vomus

Please provide the following information:

  1. A screenshot displaying the connection from DS in the connector to Redmine.
  2. The entire log folder from the document server.
  3. The diagram of your computer network.