全新安装tos5 在一次重启后现在登录页面一直空白
发表于 : 2022年 7月 17日 星期天 6:59 pm
型号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'
---------
谁能找下问题
之前版本是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'
---------
谁能找下问题