关于更新docspace的问题

大家好,我想请教下如下几个问题。
主机环境:虚拟机
主机操作系统:ubuntu server 24.02 lts
网络环境:使用代理访问互联网
部署方式:非docker环境

描述:
之前我安装的docspace community版本为8.2.2。我看到changelog上提示已经有新版本。因此我参照doc的updating方法执行bash docspace-install.sh -u true,但是没有成功。

执行过程中
出现dpkg错误,然后我做了一些处理

t2

但是我reboot后,无法出现login界面,检查
systemctl status redis rabbitmq-server mysql openresty nginx

root@ubunturoot:/home/ubunturoot# systemctl status redis rabbitmq-server mysql openresty nginx
● redis-server.service - Advanced key-value store
     Loaded: loaded (/usr/lib/systemd/system/redis-server.service; enabled; preset: enabled)
     Active: active (running) since Sat 2025-04-12 00:39:41 UTC; 36min ago
       Docs: http://redis.io/documentation,
             man:redis-server(1)
   Main PID: 924 (redis-server)
     Status: "Ready to accept connections"
      Tasks: 6 (limit: 19101)
     Memory: 7.6M (peak: 8.4M)
        CPU: 13.641s
     CGroup: /system.slice/redis-server.service
             └─924 "/usr/bin/redis-server 127.0.0.1:6379"

Apr 12 00:39:40 ubunturoot systemd[1]: Starting redis-server.service - Advanced key-value store...
Apr 12 00:39:41 ubunturoot systemd[1]: Started redis-server.service - Advanced key-value store.

● rabbitmq-server.service - RabbitMQ Messaging Server
     Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled; preset: enabled)
     Active: active (running) since Sat 2025-04-12 00:40:19 UTC; 35min ago
   Main PID: 923 (beam.smp)
      Tasks: 52 (limit: 19101)
     Memory: 151.5M (peak: 190.4M)
        CPU: 1min 2.471s
     CGroup: /system.slice/rabbitmq-server.service
             ├─ 923 /usr/lib/erlang/erts-13.2.2.5/bin/beam.smp -W w -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30 -pc unicode -P 1048576 -t 5000000 -stbt db -zdbbl 128000 -sbwt none -sbwtdcpu none -sbwtdio none -->
             ├─1065 erl_child_setup 65536
             ├─1503 /usr/lib/erlang/erts-13.2.2.5/bin/inet_gethost 4
             ├─1504 /usr/lib/erlang/erts-13.2.2.5/bin/inet_gethost 4
             └─2020 /bin/sh -s rabbit_disk_monitor

Apr 12 00:39:40 ubunturoot systemd[1]: Starting rabbitmq-server.service - RabbitMQ Messaging Server...
Apr 12 00:40:19 ubunturoot systemd[1]: Started rabbitmq-server.service - RabbitMQ Messaging Server.

● mysql.service - MySQL Community Server
     Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled; preset: enabled)
     Active: active (running) since Sat 2025-04-12 00:39:57 UTC; 36min ago
       Docs: man:mysqld(8)
             http://dev.mysql.com/doc/refman/en/using-systemd.html
    Process: 914 ExecStartPre=/usr/share/mysql-8.4/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
   Main PID: 1043 (mysqld)
     Status: "Server is operational"
      Tasks: 58 (limit: 19101)
     Memory: 496.3M (peak: 497.0M)
        CPU: 23.998s
     CGroup: /system.slice/mysql.service
             └─1043 /usr/sbin/mysqld

Apr 12 00:39:40 ubunturoot systemd[1]: Starting mysql.service - MySQL Community Server...
Apr 12 00:39:57 ubunturoot systemd[1]: Started mysql.service - MySQL Community Server.

● openresty.service - The OpenResty Application Platform
     Loaded: loaded (/usr/lib/systemd/system/openresty.service; enabled; preset: enabled)
     Active: active (running) since Sat 2025-04-12 00:39:44 UTC; 36min ago
    Process: 918 ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 1121 ExecStart=/usr/local/openresty/nginx/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 1172 ExecStartPost=/bin/sleep 1 (code=exited, status=0/SUCCESS)
   Main PID: 1155 (nginx)
      Tasks: 17 (limit: 19101)
     Memory: 25.9M (peak: 29.7M)
        CPU: 2.802s
     CGroup: /system.slice/openresty.service
             ├─1155 "nginx: master process /usr/local/openresty/nginx/sbin/nginx -g daemon on; master_process on;"
             ├─1156 "nginx: worker process"
             ├─1157 "nginx: worker process"
             ├─1158 "nginx: worker process"
             ├─1159 "nginx: worker process"
             ├─1160 "nginx: worker process"
             ├─1161 "nginx: worker process"
             ├─1162 "nginx: worker process"
             ├─1163 "nginx: worker process"
             ├─1164 "nginx: worker process"
             ├─1165 "nginx: worker process"
             ├─1166 "nginx: worker process"
             ├─1167 "nginx: worker process"
             ├─1168 "nginx: worker process"
             ├─1169 "nginx: worker process"
             ├─1170 "nginx: worker process"
             └─1171 "nginx: worker process"

Apr 12 00:39:40 ubunturoot systemd[1]: Starting openresty.service - The OpenResty Application Platform...
Apr 12 00:39:44 ubunturoot systemd[1]: Started openresty.service - The OpenResty Application Platform.

● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running) since Sat 2025-04-12 00:39:47 UTC; 36min ago
       Docs: man:nginx(8)
    Process: 917 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 1313 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 1314 (nginx)
      Tasks: 17 (limit: 19101)
     Memory: 38.3M (peak: 39.7M)
        CPU: 298ms
     CGroup: /system.slice/nginx.service
             ├─1314 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             ├─1315 "nginx: worker process"
             ├─1316 "nginx: worker process"
             ├─1317 "nginx: worker process"
             ├─1318 "nginx: worker process"
             ├─1320 "nginx: worker process"
             ├─1321 "nginx: worker process"
             ├─1322 "nginx: worker process"
             ├─1323 "nginx: worker process"
             ├─1324 "nginx: worker process"
             ├─1325 "nginx: worker process"
             ├─1326 "nginx: worker process"
             ├─1327 "nginx: worker process"
             ├─1328 "nginx: worker process"
             ├─1329 "nginx: worker process"
             ├─1330 "nginx: worker process"
             └─1331 "nginx: worker process"

Apr 12 00:39:40 ubunturoot systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Apr 12 00:39:47 ubunturoot nginx[917]: 2025/04/12 00:39:40 [info] 917#917: Using 116KiB of shared memory for nchan in /etc/nginx/nginx.conf:61
Apr 12 00:39:47 ubunturoot nginx[917]: 2025/04/12 00:39:40 [info] 917#917: Using 131072KiB of shared memory for nchan in /etc/nginx/nginx.conf:61
Apr 12 00:39:47 ubunturoot systemd[1]: Started nginx.service - A high performance web server and a reverse proxy server.
lines 64-115/115 (END)

root@ubunturoot:/home/ubunturoot# 

检查systemctl | grep docspace,多个service未正常启动。

求助:
1、docspace community的updating是不是不能用bash docspace-install.sh -u true?
2、对于现在,我该如何处理?
3、因为数据我之前都没有备份过 :sob:,如果需要我rebuild docspace community,我现在该如何导出数据?

非常感谢!!! :kissing_heart:

您好,
让我们一步一步地来排查问题。
首先,请确认一下:
您当前要更新的是哪个版本的 DocSpace(您之前只提到了 Document Server 的版本)? 另外,您的 OpenSearch 是哪个版本?

请注意,强烈不建议运行 sudo rm /var/lib/dpkg/info/docspace* 这个命令,因为它可能导致不可逆的问题,从而阻止之后的更新尝试。

总体来说,您使用的更新命令是正确的。