Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Feb 22, 2024 · 14 comments

Comments

@shusheng-zilan
Copy link

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
Copy link
Author

@jackycute can you help me?

@jackycute
Copy link
Member

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
Copy link
Author

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
Copy link
Member

jackycute commented Feb 23, 2024

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

@shusheng-zilan
Copy link
Author

U) F31HO@5N9THJ4OVC7`2Y

@shusheng-zilan
Copy link
Author

@jackycute

@jackycute
Copy link
Member

Please also share your dockerfile

@shusheng-zilan
Copy link
Author

docker-compose.zip

@shusheng-zilan
Copy link
Author

@jackycute

@jackycute
Copy link
Member

jackycute commented Feb 23, 2024

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
Copy link
Author

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

@shusheng-zilan
Copy link
Author

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
Copy link
Member

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants