Unable to retrieve tag from onlyoffice/documentserver repository

Go on with the Failed to install on my DeepIn(Linux) topic.

After I tried repeatedly, I finally installed Docker version 25.0.2 on my Deepin OS 20.9 successfully. Then, I tried to install ONLYOFFICE Doc Space Server using docker, but it came out a failure result, as shown in the snapshot attached here:
Unable to retrieve tag from onlyoffice/documentserver repository
How to make it able to retrieve the tag?

1 Like

hi @VincentYoung

Please execute the following command:

docker --debug pull onlyoffice/documentserver

It seems that there might be an issue with connecting to the repository.

我也出现了这个情况,目前还没有解决。

root@MiWiFi-RB06-srv:~# wget http://download.onlyoffice.com/docspace/docspace-install.sh
--2024-02-10 22:10:23--  http://download.onlyoffice.com/docspace/docspace-install.shResolving download.onlyoffice.com (download.onlyoffice.com)... 13.227.62.67, 13.227.62.56, 13.227.62.105, ...
Connecting to download.onlyoffice.com (download.onlyoffice.com)|13.227.62.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4835 (4.7K) [application/x-sh]
Saving to: 'docspace-install.sh'

docspace-install.sh  100%[======================>]   4.72K  --.-KB/s    in 0s      

2024-02-10 22:10:23 (650 MB/s) - 'docspace-install.sh' saved [4835/4835]

root@MiWiFi-RB06-srv:~# bash docspace-install.sh -skiphc true
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org/debian-security bookworm-security InRelease        
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libcurl4
The following NEW packages will be installed:
  curl libcurl4
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 705 kB of archives.
After this operation, 1363 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 libcurl4 amd64 7.88.1-10+deb12u5 [390 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 curl amd64 7.88.1-10+deb12u5 [315 kB]
Fetched 705 kB in 2s (377 kB/s)
Selecting previously unselected package libcurl4:amd64.
(Reading database ... 34484 files and directories currently installed.)
Preparing to unpack .../libcurl4_7.88.1-10+deb12u5_amd64.deb ...
Unpacking libcurl4:amd64 (7.88.1-10+deb12u5) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.88.1-10+deb12u5_amd64.deb ...
Unpacking curl (7.88.1-10+deb12u5) ...
Setting up libcurl4:amd64 (7.88.1-10+deb12u5) ...
Setting up curl (7.88.1-10+deb12u5) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Select 'Y' to install ONLYOFFICE docspace using Docker (recommended). Select 'N' to install it using RPM/DEB packages.
Install with Docker [Y/N/C]? y
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  net-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 243 kB of archives.
After this operation, 1001 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 net-tools amd64 2.10-0.1 [243 kB]
Fetched 243 kB in 1s (194 kB/s)
Selecting previously unselected package net-tools.
(Reading database ... 34497 files and directories currently installed.)
Preparing to unpack .../net-tools_2.10-0.1_amd64.deb ...
Unpacking net-tools (2.10-0.1) ...
Setting up net-tools (2.10-0.1) ...
Processing triggers for man-db (2.11.2-2) ...
Setting up swapspace version 1, size = 6 GiB (6442446848 bytes)
no label, UUID=67cb8d6b-3ac7-43fb-8c4a-7cb9d59e85f7
# Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl gnupg >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
+ sh -c chmod a+r /etc/apt/keyrings/docker.gpg
+ sh -c echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bookworm stable" > /etc/apt/sources.list.d/docker.list   
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin >/dev/null
+ sh -c docker version
Client: Docker Engine - Community
 Version:           25.0.3
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        4debf41
 Built:             Tue Feb  6 21:14:25 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          25.0.3
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       f417435
  Built:            Tue Feb  6 21:14:25 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.28
  GitCommit:        ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

================================================================================    

To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:

    dockerd-rootless-setuptool.sh install

Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.


To run the Docker daemon as a fully privileged service, but granting non-root       
users access, refer to https://docs.docker.com/go/daemon-access/

WARNING: Access to the remote API on a privileged Docker daemon is equivalent       
         to root access on the host. Refer to the 'Docker daemon attack surface'    
         documentation for details: https://docs.docker.com/go/attack-surface/      

================================================================================    

Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
1e2c892fe90fb09a6b6fa119236e283a6a762b5c0176bc1bb4bf896d4d233718
ping: usage error: Destination address required
A problem was detected for  domains when using a loopback IP address or when using NAT.
Select 'Y' to continue installing with configuring the use of external IP in Docker via Google Public DNS.
Select 'N' to cancel ONLYOFFICE DocSpace installation.
Continue installation [Y/N]? y
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libjq1 libonig5
The following NEW packages will be installed:
  jq libjq1 libonig5
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 388 kB of archives.
After this operation, 1165 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 libonig5 amd64 6.9.8-1 [188 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 libjq1 amd64 1.6-2.1 [135 kB]Get:3 http://deb.debian.org/debian bookworm/main amd64 jq amd64 1.6-2.1 [64.9 kB]
Fetched 388 kB in 1s (467 kB/s)
Selecting previously unselected package libonig5:amd64.
(Reading database ... 36730 files and directories currently installed.)
Preparing to unpack .../libonig5_6.9.8-1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.8-1) ...
Selecting previously unselected package libjq1:amd64.
Preparing to unpack .../libjq1_1.6-2.1_amd64.deb ...
Unpacking libjq1:amd64 (1.6-2.1) ...
Selecting previously unselected package jq.
Preparing to unpack .../archives/jq_1.6-2.1_amd64.deb ...
Unpacking jq (1.6-2.1) ...
Setting up libonig5:amd64 (6.9.8-1) ...
Setting up libjq1:amd64 (1.6-2.1) ...
Setting up jq (1.6-2.1) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed       
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0      
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 58.5M  100 58.5M    0     0  16.6M      0  0:00:03  0:00:03 --:--:-- 35.8M
Downloading configuration files to the /app/onlyoffice directory...OK
[+] Running 12/12
 ✔ onlyoffice-mysql-server 11 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled     22.9s 
   ✔ 328ba678bf27 Pull complete                                                6.7s 
   ✔ f3f5ff008d73 Pull complete                                                1.7s 
   ✔ dd7054d6d0c7 Pull complete                                                2.8s 
   ✔ 70b5d4e8750e Pull complete                                                5.0s 
   ✔ cdc4a7b43bdd Pull complete                                                4.5s 
   ✔ 3e9c0b61a8f3 Pull complete                                                6.3s 
   ✔ 806a08b6c085 Pull complete                                               12.7s 
   ✔ 021b2cebd832 Pull complete                                                8.1s 
   ✔ ad31ba45b26b Pull complete                                               14.0s 
   ✔ 0d4c2bd59d1c Pull complete                                                9.8s 
   ✔ 148dcef42e3b Pull complete                                               11.6s 
[+] Running 1/2
 ⠦ Volume "onlyoffice_mysql_data"     Crea...                                  0.6s 
 ✔ Container onlyoffice-mysql-server  S...                                     0.6s 
Unable to retrieve tag from onlyoffice/documentserver repository
Terminated
root@MiWiFi-RB06-srv:~# docker --debug pull onlyoffice/documentserver
Using default tag: latest
latest: Pulling from onlyoffice/documentserver
29202e855b20: Pull complete
e8c0717fd574: Pull complete
ec60bb9ab533: Pull complete
983f2037eeac: Pull complete
56444b543267: Pull complete
f8856db8d8a1: Pull complete
Digest: sha256:ba008a8ff0d29199fa46cd7b7397d7cc734a9bb3a1fa7842a49b529469540399
Status: Downloaded newer image for onlyoffice/documentserver:latest
docker.io/onlyoffice/documentserver:latest
root@MiWiFi-RB06-srv:~# bash docspace-install.sh -skiphc true
Select 'Y' to install ONLYOFFICE docspace using Docker (recommended). Select 'N' to install it using RPM/DEB packages.
Install with Docker [Y/N/C]? y
ping: usage error: Destination address required
Downloading configuration files to the /app/onlyoffice directory...OK
[+] Running 1/0
 ✔ Container onlyoffice-mysql-server  R...                                     0.0s 
Unable to retrieve tag from onlyoffice/documentserver repository
Terminated
root@MiWiFi-RB06-srv:~#
1 Like
sudo docker --debug pull onlyoffice/documentserver

it seems all right, and then, I repeat the command before this:

sudo bash docspace-install.sh docker

and still got the error:

the same with @touma

Hello, @VincentYoung @touma
Please provide some additional information about:

  1. Do you use mirrors for Docker, for example: https://docker.mirrors.ustc.edu.cn/?
    1.1. May I ask you to modify the Google Public DNS to the ones you are using in the file /etc/docker/daemon.json?

1, I didn’t use any mirrors for Docker
1.1, here is the snapshot of this file, how do I modify it to the G00GLE ones?

Hmm, it seems the issue might be due to our different locations.
Please run the following commands and show me the results:

  1. Run this command to retrieve the list of available tags for the ONLYOFFICE Document Server from Docker Hub:

    curl -s -X GET https://hub.docker.com/v2/repositories/onlyoffice/documentserver/tags/
    
  2. Run this command to execute the installation script for DocSpace using Docker:

    sudo bash docspace-install.sh docker -x
    

After verification, it has been confirmed that configuring a proxy for the system enables scientific internet access, and the installation can be completed successfully

1 Like

1,

curl -s -X GET https://hub.docker.com/v2/repositories/onlyoffice/documentserver/tags/

the first page:


and the last page:

2,

sudo bash docspace-install.sh docker -x

are you sure the command parameter is right?


and the last page:


here is my configuration of ladder:
NAT mode for the virtual machine, it’s IP 192.168.56.1, v2rayng installed on windows 10, services on the port 10809, so, I configured the virtual PC system agent as the above, also, proxifier installed on windows to check the connection details, these are ok for me to open G00GLE, but I don’t know why not ok for installing OO via docker

There have been issues with the Privoxy proxy server.

It seems that when using the script, there’s an error when trying to make a request to https://hub.docker.com/v2/repositories/onlyoffice/documentserver/tags/ and it can’t continue executing the rest of the script.

As Touma mentioned in a similar topic, configuring the system proxy helped him.

  1. 使用 Clash ,开启 局域网监听 (即允许来自局域网的连接)
  2. 配置Linux的系统代理配置( 通过修改 vi ~/.bashrc 文件)

export http_proxy=http://192.168.1.200:7890
export https_proxy=http://192.168.1.200:7890

你的系统代理配置应该是这个样子的,其中 192.168.1.200 应该替换为你当前运行 Clash 电脑的 IP 地址。

然后通过

source ~/.bashrc

刷新确保代理生效

接下来可以使用一键安装脚本安装。