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

[Bug]: Docker部署后,注册登录管理界面,每次刷新都会退出,并且看不到新注册用户和评论 || [Bug]: After Docker deployment, registration and login management interface will exit every time it is refreshed, and newly registered users and comments cannot be seen. #2219

Open
Miykah opened this issue Dec 24, 2023 · 1 comment
Labels
discussion Question or dicussion Inactive

Comments

@Miykah
Copy link

Miykah commented Dec 24, 2023

问题描述 | Describe the bug

使用Docker部署,compose文件如下:

# docker-compose.yml
version: '3'

services:
  waline:
    container_name: waline
    image: lizheming/waline:latest
    restart: always
    ports:
      - 8360:8360
    volumes:
      - /opt/waline/data:/app/data
    environment:
      TZ: 'Asia/Shanghai'
      MYSQL_HOST: '127.0.0.1'
      MYSQL_PORT: '3306'
      MYSQL_DB: 'waline'
      MYSQL_USER: 'root'
      MYSQL_PASSWORD: 'xxxxxxx'
      MYSQL_PREFIX: 'wl_'
      MYSQL_CHARSET: 'utf8mb4'
      SECURE_DOMAINS: 'comment.xxx.xxx'
      SMTP_HOST: 'mail.xxx.xxx'
      SMTP_PORT: 465
      SMTP_USER: 'xxx@xxx.xxx'
      SMTP_PASS: 'xxx'
      SMTP_SECURE: true
      SITE_NAME: 'xxx'
      SITE_URL: 'https://blog.xxx.com'
      AUTHOR_EMAIL: 'xxx@163.com'

问题

  1. 我在 ip:8360,尝试评论,评论成功,并且邮件通知也正常,但页面刷新之后评论又没了,但是mysql数据库仍有评论
  2. 后台管理界面啥也没有,注册一个访客用户,管理员界面也看不到。
  3. 登录后台管理界面,刷新之后又需要重新登陆

image

image

希望大佬答疑解惑

问题网站 | Website URL

https://comment.miykah.top

服务部署在哪里? | Where your waline deploy?

Docker

数据存储在哪里?| Where your comment data store?

MySQL


Problem description | Describe the bug

Use Docker to deploy, the compose file is as follows:

# docker-compose.yml
version: '3'

services:
  waline:
    container_name:waline
    image: lizheming/waline:latest
    restart: always
    ports:
      - 8360:8360
    volumes:
      - /opt/waline/data:/app/data
    environment:
      TZ: 'Asia/Shanghai'
      MYSQL_HOST: '127.0.0.1'
      MYSQL_PORT: '3306'
      MYSQL_DB: 'waline'
      MYSQL_USER: 'root'
      MYSQL_PASSWORD: 'xxxxxxx'
      MYSQL_PREFIX: 'wl_'
      MYSQL_CHARSET: 'utf8mb4'
      SECURE_DOMAINS: 'comment.xxx.xxx'
      SMTP_HOST: 'mail.xxx.xxx'
      SMTP_PORT: 465
      SMTP_USER: 'xxx@xxx.xxx'
      SMTP_PASS: 'xxx'
      SMTP_SECURE: true
      SITE_NAME: 'xxx'
      SITE_URL: 'https://blog.xxx.com'
      AUTHOR_EMAIL: 'xxx@163.com'

question

  1. I am at ip:8360 and tried to comment. The comment was successful and the email notification was normal. However, after the page was refreshed, the comments disappeared, but there were still comments in the mysql database.
  2. There is nothing in the background management interface. Even if you register a guest user, you cannot see the administrator interface.
  3. Log in to the backend management interface. You need to log in again after refreshing.

image

image

I hope you guys can answer your questions

Question Website | Website URL

https://comment.miykah.top

Where is the service deployed? | Where your waline deploy?

Docker

Where is the data stored? | Where your comment data store?

MySQL

@Miykah Miykah added the bug Something isn't working label Dec 24, 2023
@github-actions github-actions bot changed the title [Bug]: Docker部署后,注册登录管理界面,每次刷新都会退出,并且看不到新注册用户和评论 [Bug]: Docker部署后,注册登录管理界面,每次刷新都会退出,并且看不到新注册用户和评论 || [Bug]: After Docker deployment, registration and login management interface will exit every time it is refreshed, and newly registered users and comments cannot be seen. Dec 24, 2023
@lizheming
Copy link
Collaborator

lizheming commented Dec 24, 2023

  1. 你应该是老用户,Waline 版本升级需要新增 like 字段,具体见更新日志 https://t.me/walinelog/42
  2. 注册用户后台左上角「管理」-「用户」页面可以进行管理
  3. 这个情况官网没办法复现,我也没碰到过,可能需要你自行研究下。官网默认用的sessionStorage保活,你也可以登录的时候勾选上「下次自动登录」会使用localStorage进行保活。

  1. You should be an old user. Waline version upgrade requires a new like field. For details, please see the update log https://t.me/walinelog/42
  2. Management can be done on the "Management" - "User" page in the upper left corner of the registered user backend.
  3. There is no way to reproduce this situation on the official website, and I have never encountered it. You may need to do your own research. The official website uses sessionStorage to keep alive by default. You can also check "Automatically log in next time" when logging in to use localStorage to keep alive.

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

No branches or pull requests

2 participants