全新安装tos5 在一次重启后现在登录页面一直空白

权限管理、用户设置、域、电源、安全、通知、更新与还原

版主: TerraSupportTMsupportTMjack

主题已锁定
头像
NewUser9967
帖子: 4
注册时间: 2022年 4月 14日 星期四 6:54 pm

全新安装tos5 在一次重启后现在登录页面一直空白

帖子 NewUser9967 »

型号F4-421
之前版本是4.2.39,昨晚按照官方步骤升级到了 5.0.130,升级后正常
今天在一次重启之后,登录页面一直空白
页面源码 有这个信息
We're sorry but TOS5 doesn't work properly without JavaScript enabled. Please enable it to continue.
查看页面 源码 如下:

--------

<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="renderer" content="webkit"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-Control" content="no-cache, must-revalidate"><meta http-equiv="Expires" content="0"><link rel="shortcut icon" href="./tos.ico" sizes="48x48"><link rel="shortcut icon" href="./tos.ico" sizes="32x32"><title>TOS - TerraMaster Operating System</title><style>.overBody {
overflow: hidden;
}</style><link href="css/app.e569b078.css" rel="preload" as="style"><link href="css/chunk-vendors.cdaa7b0b.css" rel="preload" as="style"><link href="js/app.1be7e6ae.js" rel="preload" as="script"><link href="js/chunk-vendors.c227a57f.js" rel="preload" as="script"><link href="css/chunk-vendors.cdaa7b0b.css" rel="stylesheet"><link href="css/app.e569b078.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="img/icons/favicon-16x16.png"><link rel="manifest" href="manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="TOS5"><link rel="apple-touch-icon" href="img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body class="overBody"><noscript><strong>We're sorry but TOS5 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.c227a57f.js"></script><script src="js/app.1be7e6ae.js"></script></body></html>

---------------
/var/log下的TOSDaemon.log内容:

2022/07/17 16:15:33 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:218 [[35;1mfailed to connect to `host=127.0.0.1 user=terramaster database=tos`: server error (FATAL: the database system is in recovery mode (SQLSTATE 57P03))
[[0m[[33m[1.879ms] [[34;1m[rows:-][[0m SELECT count(*) FROM INFORMATION_SCHEMA.columns WHERE table_schema = CURRENT_SCHEMA() AND table_name = 'share' AND column_name = 'time_machine_limit'
M
2022/07/17 16:15:33 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:186 [[35;1mfailed to connect to `host=127.0.0.1 user=terramaster database=tos`: server error (FATAL: the database system is in recovery mode (SQLSTATE 57P03))
[[0m[[33m[71.257ms] [[34;1m[rows:0][[0m ALTER TABLE "share" ADD "time_machine_limit" text DEFAULT ''
M
2022/07/17 16:15:33 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:167 [[35;1mfailed to connect to `host=127.0.0.1 user=terramaster database=tos`: server error (FATAL: the database system is in recovery mode (SQLSTATE 57P03))
[[0m[[33m[1.799ms] [[34;1m[rows:-][[0m SELECT count(*) FROM information_schema.tables WHERE table_schema = CURRENT_SCHEMA() AND table_name = 'user_table' AND table_type = 'BASE TABLE'
M
2022/07/17 16:15:33 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:140 [[35;1mfailed to connect to `host=127.0.0.1 user=terramaster database=tos`: server error (FATAL: the database system is in recovery mode (SQLSTATE 57P03))
[[0m[[33m[1.527ms] [[34;1m[rows:0][[0m CREATE TABLE "user_table" ("username" text UNIQUE,"password" text NOT NULL,"email" text DEFAULT '',"phone_number" text DEFAULT '',"cloudactive" bigint DEFAULT 0,"remarks" text DEFAULT '',"alias" text DEFAULT '',"otp_secret" text DEFAULT '',"bind_mobile" text DEFAULT '',"bind_time" text DEFAULT '',"last_pwd_change_time" timestamptz,"is_nvr" boolean DEFAULT false,PRIMARY KEY ("username"))
M
2022/07/17 16:15:33 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:167 [[35;1mfailed to connect to `host=127.0.0.1 user=terramaster database=tos`: server error (FATAL: the database system is in recovery mode (SQLSTATE 57P03))
[[0m[[33m[1.663ms] [[34;1m[rows:-][[0m SELECT count(*) FROM information_schema.tables WHERE table_schema = CURRENT_SCHEMA() AND table_name = 'file_recently' AND table_type = 'BASE TABLE'
M
2022/07/17 16:15:33 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:140 [[35;1mfailed to connect to `host=127.0.0.1 user=terramaster database=tos`: server error (FATAL: the database system is in recovery mode (SQLSTATE 57P03))
[[0m[[33m[1.570ms] [[34;1m[rows:0][[0m CREATE TABLE "file_recently" ("id" bigserial,"path" varchar(65535) NOT NULL,"user_name" varchar(255) NOT NULL,"create_time" timestamptz NOT NULL,PRIMARY KEY ("id"))
M
2022/07/17 16:15:33 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:167 [[35;1mfailed to connect to `host=127.0.0.1 user=terramaster database=tos`: server error (FATAL: the database system is in recovery mode (SQLSTATE 57P03))
[[0m[[33m[1.652ms] [[34;1m[rows:-][[0m SELECT count(*) FROM information_schema.tables WHERE table_schema = CURRENT_SCHEMA() AND table_name = 'user_table' AND table_type = 'BASE TABLE'
M
2022/07/17 16:15:33 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:140 [[35;1mfailed to connect to `host=127.0.0.1 user=terramaster database=tos`: server error (FATAL: the database system is in recovery mode (SQLSTATE 57P03))
[[0m[[33m[1.540ms] [[34;1m[rows:0][[0m CREATE TABLE "user_table" ("username" text UNIQUE,"password" text NOT NULL,"email" text DEFAULT '',"phone_number" text DEFAULT '',"cloudactive" bigint DEFAULT 0,"remarks" text DEFAULT '',"alias" text DEFAULT '',"otp_secret" text DEFAULT '',"bind_mobile" text DEFAULT '',"bind_time" text DEFAULT '',"last_pwd_change_time" timestamptz,"is_nvr" boolean DEFAULT false,PRIMARY KEY ("username"))
M
2022/07/17 16:15:33 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:167 [[35;1mfailed to connect to `host=127.0.0.1 user=terramaster database=tos`: server error (FATAL: the database system is in recovery mode (SQLSTATE 57P03))
[[0m[[33m[1.619ms] [[34;1m[rows:-][[0m SELECT count(*) FROM information_schema.tables WHERE table_schema = CURRENT_SCHEMA() AND table_name = 'CronTab' AND table_type = 'BASE TABLE'
M
2022/07/17 16:15:33 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:140 [[35;1mfailed to connect to `host=127.0.0.1 user=terramaster database=tos`: server error (FATAL: the database system is in recovery mode (SQLSTATE 57P03))
[[0m[[33m[1.557ms] [[34;1m[rows:0][[0m CREATE TABLE "CronTab" ("id" bigserial,"minute" text,"hour" text,"day" text,"month" text,"day_of_week" text,"command" text,PRIMARY KEY ("id"))
M
2022/07/17 16:15:38 [[31;1m/root/go-src/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:369 [[35;1mERROR: catalog is missing 1 attribute(s) for relid 17216 (SQLSTATE XX000)
[[0m[[33m[17.597ms] [[34;1m[rows:-][[0m SELECT c.column_name, c.is_nullable = 'YES', c.udt_name, c.character_maximum_length, c.numeric_precision, c.numeric_precision_radix, c.numeric_scale, c.datetime_precision, 8 * typlen, c.column_default, pd.description FROM information_schema.columns AS c JOIN pg_type AS pgt ON c.udt_name = pgt.typname LEFT JOIN pg_catalog.pg_description as pd ON pd.objsubid = c.ordinal_position AND pd.objoid = (SELECT oid FROM pg_catalog.pg_class WHERE relname = c.table_name AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname = c.table_schema)) where table_catalog = 'tos' AND table_schema = CURRENT_SCHEMA() AND table_name = 'share_config'

---------
谁能找下问题
头像
TMzethar
技术支持
帖子: 2414
注册时间: 2020年 4月 27日 星期一 12:05 pm

Re: 全新安装tos5 在一次重启后现在登录页面一直空白

帖子 TMzethar »

看起来是数据库文件损坏了,请尝试检查修复一下文件系统:
https://forum.terra-master.com/cn/viewt ... =88&t=1691

如果依然不能进入TOS网页,请重新安装TOS。
进入TOS网页后,请收集一份日志发送给技术支持邮箱再检查一下。
头像
NewUser9967
帖子: 4
注册时间: 2022年 4月 14日 星期四 6:54 pm

Re: 全新安装tos5 在一次重启后现在登录页面一直空白

帖子 NewUser9967 »

{L_BUTTON_AT}TMzethar
现在tos 网页登录界面打不开,进不去
ssh 功能之前开了,局域网能进
smb/cifs功能正常,我用台式机能正常访问
我安装的一个应用也正常,应该就是TOS 页面出问题了,别的没什么问题
头像
NewUser9967
帖子: 4
注册时间: 2022年 4月 14日 星期四 6:54 pm

Re: 全新安装tos5 在一次重启后现在登录页面一直空白

帖子 NewUser9967 »

{L_BUTTON_AT}TMzethar

进不去管理页面的情况下,如何重新安装TOS5,有没有相关介绍操作
头像
TMzethar
技术支持
帖子: 2414
注册时间: 2020年 4月 27日 星期一 12:05 pm

Re: 全新安装tos5 在一次重启后现在登录页面一直空白

帖子 TMzethar »

{L_BUTTON_AT}NewUser9967

1. 将设备关机;
2. 取出全部硬盘;
3. 将设备开机;
4. 待网络灯亮起后,用 TNAS PC 重新搜索你的TNAS 设备;
5. 然后选中搜索到的设备,点击 “登录”;
6. 插入全部硬盘;
7. 再接着按照 web 页面指引安装新系统。
主题已锁定

回到 “系统配置”