• 3

請問有沒有適合取代 flickr 的 docker?

maya95 wrote:
各種 docker 總是顯示 deploying 不然就是deploying 1/2 過幾十分鐘卻永遠裝不起來
系統重裝/重開機 N 次 , 先 stop 或 delete 再重裝也是一樣


點選那三個點,可以看 logs。

通常可以知道問題出在哪裡 ....

一般可能是掛載上去的目錄,docker 沒有存取權。
maya95

有看啊, 看不出所以然

2023-07-20 9:13
NextCloud 的 log. Emby 則是空白一片. Truecharts 的 Piwigo / Wordpress 也完全裝不起來.

2023-07-20T00:22:35.026424033Z The files belonging to this database system will be owned by user "postgres".
2023-07-20T00:22:35.026491737Z This user must also own the server process.
2023-07-20T00:22:35.026506898Z
2023-07-20T00:22:35.031786515Z The database cluster will be initialized with locale "en_US.utf8".
2023-07-20T00:22:35.031818562Z The default database encoding has accordingly been set to "UTF8".
2023-07-20T00:22:35.031847350Z The default text search configuration will be set to "english".
2023-07-20T00:22:35.031863537Z
2023-07-20T00:22:35.031878668Z Data page checksums are disabled.
2023-07-20T00:22:35.031893752Z
2023-07-20T00:22:35.032209821Z fixing permissions on existing directory /var/lib/postgresql/data ... ok
2023-07-20T00:22:35.035865131Z creating subdirectories ... ok
2023-07-20T00:22:35.036595996Z selecting dynamic shared memory implementation ... posix
2023-07-20T00:22:35.067519586Z selecting default max_connections ... 100
2023-07-20T00:22:35.103269647Z selecting default shared_buffers ... 128MB
2023-07-20T00:22:35.168852346Z selecting default time zone ... Etc/UTC
2023-07-20T00:22:35.205526116Z creating configuration files ... ok
2023-07-20T00:22:35.661051688Z running bootstrap script ... ok
2023-07-20T00:22:36.866610504Z performing post-bootstrap initialization ... ok
2023-07-20T00:22:37.138048514Z syncing data to disk ... ok
2023-07-20T00:22:37.138131033Z
2023-07-20T00:22:37.138180420Z initdb: warning: enabling "trust" authentication for local connections
2023-07-20T00:22:37.138197275Z You can change this by editing pg_hba.conf or using the option -A, or
2023-07-20T00:22:37.138211339Z --auth-local and --auth-host, the next time you run initdb.
2023-07-20T00:22:37.138240526Z
2023-07-20T00:22:37.138255446Z Success. You can now start the database server using:
2023-07-20T00:22:37.138269422Z
2023-07-20T00:22:37.138283057Z pg_ctl -D /var/lib/postgresql/data -l logfile start
2023-07-20T00:22:37.138296771Z
2023-07-20T00:22:37.266816638Z waiting for server to start....2023-07-20 00:22:37.266 UTC [46] LOG: starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2023-07-20T00:22:37.268579007Z 2023-07-20 00:22:37.268 UTC [46] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-07-20T00:22:37.275031774Z 2023-07-20 00:22:37.274 UTC [47] LOG: database system was shut down at 2023-07-20 00:22:36 UTC
2023-07-20T00:22:37.281534570Z 2023-07-20 00:22:37.281 UTC [46] LOG: database system is ready to accept connections
2023-07-20T00:22:37.317424767Z done
2023-07-20T00:22:37.317463795Z server started
2023-07-20T00:22:37.803927767Z CREATE DATABASE
2023-07-20T00:22:37.807227005Z
2023-07-20T00:22:37.807270746Z
2023-07-20T00:22:37.807285881Z /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
2023-07-20T00:22:37.807299840Z
2023-07-20T00:22:37.807372795Z 2023-07-20 00:22:37.807 UTC [46] LOG: received fast shutdown request
2023-07-20T00:22:37.808281841Z waiting for server to shut down....2023-07-20 00:22:37.808 UTC [46] LOG: aborting any active transactions
2023-07-20T00:22:37.811990958Z 2023-07-20 00:22:37.811 UTC [46] LOG: background worker "logical replication launcher" (PID 53) exited with exit code 1
2023-07-20T00:22:37.812464992Z 2023-07-20 00:22:37.812 UTC [48] LOG: shutting down
2023-07-20T00:22:37.827589846Z 2023-07-20 00:22:37.827 UTC [46] LOG: database system is shut down
2023-07-20T00:22:37.908501366Z done
2023-07-20T00:22:37.908560413Z server stopped
2023-07-20T00:22:37.908943770Z
2023-07-20T00:22:37.908969725Z PostgreSQL init process complete; ready for start up.
2023-07-20T00:22:37.908985865Z
2023-07-20T00:22:37.940212316Z 2023-07-20 00:22:37.940 UTC [1] LOG: starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2023-07-20T00:22:37.940682853Z 2023-07-20 00:22:37.940 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2023-07-20T00:22:37.940710850Z 2023-07-20 00:22:37.940 UTC [1] LOG: listening on IPv6 address "::", port 5432
2023-07-20T00:22:37.942478188Z 2023-07-20 00:22:37.942 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-07-20T00:22:37.947021668Z 2023-07-20 00:22:37.946 UTC [74] LOG: database system was shut down at 2023-07-20 00:22:37 UTC
2023-07-20T00:22:37.953493495Z 2023-07-20 00:22:37.953 UTC [1] LOG: database system is ready to accept connections
maya95 wrote:
NextCloud ...(恕刪)


我剛剛裝了兩個,兩個都沒問題,



會不會是記憶體不太夠,拖慢安裝速度?我是裝 16MB ...
在虛擬機中增加到 16GB, 再重開

Nextcloud 短暫變成 Active , 沒多久又變成 deploying 這時 log 變少剩幾行(同前述最後幾行)

然後又變成 deploying 1/2 卻完全沒有 log, 持續輪迴

Active 時㸃 Web Portal (port 9001) 也開不起來


maya95 wrote:
在虛擬機中增加到 16GB...(恕刪)


我的可以進網頁,不過是錯誤資訊,看來也沒裝成功 ...

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

我是建議用 official 的 docker 試試 ....

charts 的 docker 可用性不高 ....
我看還是用 docker + portainer 就好了

TrueNAS 強迫使用 ZFS, 至少要 8GB RAM, 沒有 RAID 5, 還要求最好使用 ECC

又搞 kubernetes , 真的是極度臃腫, 疊床架屋. 出錯完全沒有頭緒, 應該是不會去用了
昨晚剛好就出了個 nextcloud 的安裝教學 ....

jeel54321 wrote:
昨晚剛好就出了個 nextcloud...(恕刪)


我又裝了一下,這次有安裝成功 ....

差別是,我先設定三個 dataset,data、postgres、backup,然後掛到三個 nextcloud 的目錄。

Storage

Nextcloud Data Volume
Host Path for Nextcloud Data Volume = /mnt/data/nextcloud/data

Postgres Data Volume
Host Path for Postgres Data Volume = /mnt/data/nextcloud/postgres

Postgres Backup Volume
Host Path for Postgres Backup Volume = /mnt/data/nextcloud/backup



另外一開始的 trusted-domain 搞了半天,後來才知道不是填 client 的 ip,而 nextcloud 介面的網址。
maya95

這不是第一次測TrueNAS Scale了, 以前每次改 static IP 也從沒成功過! X群暉反而半天就裝成功[挖鼻孔]

2023-07-24 7:07
jeel54321
jeel54321 樓主

docker 設成跟主機不同 IP?我的經驗是必須有不同的網路卡,接上不同的網段才行。不然網路卡常常會搞混自己是哪個 ip,無法回應。

2023-07-24 11:32
另外 docker 的 ip 好像應該這裡設定,其實我還沒搞清楚,這裡設的跟 docker 裡頭設的有什麼區別 ....




我說的是主機 VM 的 IP, 不是 docker IP 172.xx.xx.xx

從來沒碰過任何 OS 改 IP 還要求測試, 結果還每次都測試不成功的

不想在 DHCP server 裡設 reserved IP. 也不喜歡 TrueNAS UI. 暫時這樣吧.
  • 3
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?