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) server is not accepting new accounts #210

Closed
2 tasks done
Yiyi-philosophy opened this issue Sep 25, 2024 · 2 comments
Closed
2 tasks done

(BUG) server is not accepting new accounts #210

Yiyi-philosophy opened this issue Sep 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Yiyi-philosophy
Copy link

Yiyi-philosophy commented Sep 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is This A Security Issue?

  • This is not a security issue

Describe The Problem

After building docker:

# file: docker-compose.yml
# image: 0.14.0
version: "3"
volumes:
  data:
services:
  note-mark:
    image: ghcr.io/enchant97/note-mark-aio
    restart: unless-stopped
    volumes:
      - data:/data
    environment:
      JWT_SECRET: "xxx"
      CORS_ORIGINS: "*"
      ALLOW_SIGNUP: "true"
    ports:
      - 58600:8000

I visit http://192.168.2.14:58080/login and try to create user.
image

It shows this:
server is not accepting new accounts

and docker logs:

note-mark-1  | {"time":"2024-09-25T08:58:39.820091241Z","id":"","remote_ip":"192.168.2.7","host":"192.168.2.14:58600","method":"POST","uri":"/api/users","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0","status":403,"error":"","latency":402901,"latency_human":"402.901µs","bytes_in":48,"bytes_out":0}

Expected Behavior

I'm not sure what's happening here. I hope someone could point out what causes this problem.When trying to create a new user at http://192.168.2.14:58600/login, I expect to successfully register an account.

Steps To Reproduce

use my docker-compose.yml
and docker-compose up -d

Environment

Linux 22.04.3-Ubuntu x86

# file: docker-compose.yml
# image: 0.14.0
version: "3"
volumes:
  data:
services:
  note-mark:
    image: ghcr.io/enchant97/note-mark-aio
    restart: unless-stopped
    volumes:
      - data:/data
    environment:
      JWT_SECRET: "xxx"
      CORS_ORIGINS: "*"
      ALLOW_SIGNUP: "true"
    ports:
      - 58600:8000

Extra Context

tried Edge and Firefox, both the same error.

@Yiyi-philosophy Yiyi-philosophy added the bug Something isn't working label Sep 25, 2024
@Yiyi-philosophy
Copy link
Author

Yiyi-philosophy commented Sep 25, 2024

Update: This bug fixed when I set docker image version to 0.13.0.

@enchant97
Copy link
Owner

Thanks for reporting, will be fixed shortly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants