hackmdio / codimd

CodiMD - Realtime collaborative markdown notes on all platforms.
https://hackmd.io/c/codimd-documentation
GNU Affero General Public License v3.0
9.1k stars 1.05k forks source link

It seems like you're encountering an issue where the deployed server's webpage isn't loading, and you'd like to directly access the server to save the completed Markdown documents. #1861

Open shusheng-zilan opened 4 months ago

shusheng-zilan commented 4 months ago

Hello, I'm a Chinese college student. I once deployed CodiMD using Docker, but today I suddenly can't access it anymore. However, I can still connect to port 22 on the server. I wonder if there is a way to directly extract the completed MD files from the server. This is very important to me. Thank you.

shusheng-zilan commented 4 months ago

@jackycute can you help me?

jackycute commented 4 months ago

Hi @shusheng-zilan, You need to provide more information for your issue, I don't know what happened to your deployment and why you can't access it. Do you have screenshot or error logs from server?

shusheng-zilan commented 4 months ago

Hi @jackycute I'm sorry, but due to some things that happened yesterday, I'm only getting to address this issue again today. Below are the error logs. Could you please help me identify the problem and provide a relatively simple solution? My technical expertise is not very high, so I would greatly appreciate it. I'm also very sorry for bothering you. 2024/02/21 05:15:35 portchecker.go:56: dial tcp database:5432: connect: connection success 2024-02-21T05:15:36.578Z warn: Neither 'domain' nor 'CMD_DOMAIN' is configured. This can cause issues with various components. Hint: Make sure 'protocolUseSSL' and 'urlAddPort' or 'CMD_PROTOCOL_USESSL' and 'CMD_URL_ADDPORT' are configured properly. 2024-02-21T05:15:36.586Z warn: Session secret not set. Using random generated one. Please set sessionSecret in your config.js file. All users will be logged out.

Sequelize CLI [Node: 10.24.1, CLI: 5.5.1, ORM: 5.21.3]

Parsed url postgres://codimd:*****@database/codimd No migrations were executed, database schema was already up to date. 2024-02-21T05:15:38.662Z warn: Neither 'domain' nor 'CMD_DOMAIN' is configured. This can cause issues with various components. Hint: Make sure 'protocolUseSSL' and 'urlAddPort' or 'CMD_PROTOCOL_USESSL' and 'CMD_URL_ADDPORT' are configured properly. 2024-02-21T05:15:38.665Z warn: Session secret not set. Using random generated one. Please set sessionSecret in your config.js file. All users will be logged out. Wed, 21 Feb 2024 05:15:39 GMT hsts deprecated The "includeSubdomains" parameter is deprecated. Use "includeSubDomains" (with a capital D) instead. at app.js:94:18 (sequelize) Warning: PostgreSQL does not support TEXT with options. Plain TEXT will be used instead.

Check: http://www.postgresql.org/docs/9.4/static/datatype.html 2024-02-21T05:15:40.775Z info: HTTP Server listening at 0.0.0.0:3000 2024-02-21T05:15:41.808Z info: Your CodiMD version is out of date! The latest version is 2.5.3. Please see what's new on https://hackmd.io/@codimd/release-notes/%2F%40codimd%2Fv2_5_3.

jackycute commented 4 months ago

Please take a screenshot of the browser on visiting your instance.

shusheng-zilan commented 4 months ago

U) F31HO@5N9THJ4OVC7`2Y

shusheng-zilan commented 4 months ago

@jackycute

jackycute commented 4 months ago

Please also share your dockerfile

shusheng-zilan commented 4 months ago

docker-compose.zip

shusheng-zilan commented 4 months ago

@jackycute

jackycute commented 4 months ago

There should appear access logs when you hit the server, so it seems like you are visiting wrong IP or the firewall rule blocks the connection. It's nothing to do with the server itself according to the information you provided.

shusheng-zilan commented 4 months ago

I have been using it normally until this log appeared at 21. image

shusheng-zilan commented 4 months ago

Hi @jackycute Or could you tell me how to update without losing the previous data? It seems that the version in the YAML file is different from what is currently on the website. Thank you very much.

jackycute commented 4 months ago

I have been using it normally until this log appeared at 21. image

those logs will always show up when you start the instance, it looks normal.

jackycute commented 4 months ago

Are you sure you're using the IP that server lives in? maybe the server IP changed and you didn't find out.