memos
memos copied to clipboard
cant create memo with picture
Describe the bug
when i create a memo with picture, the picture cannot be upload, and the server fault is shown like below:
Server profile data: /var/opt/memos dsn: /var/opt/memos/memos_prod.db addr: port: 5230 mode: prod driver: sqlite version: 0.20.0 metric: true
███╗ ███╗███████╗███╗ ███╗ ██████╗ ███████╗ ████╗ ████║██╔════╝████╗ ████║██╔═══██╗██╔════╝ ██╔████╔██║█████╗ ██╔████╔██║██║ ██║███████╗ ██║╚██╔╝██║██╔══╝ ██║╚██╔╝██║██║ ██║╚════██║ ██║ ╚═╝ ██║███████╗██║ ╚═╝ ██║╚██████╔╝███████║ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ Version 0.20.0 has been started on port 5230
See more in: 👉Website: https://usememos.com 👉GitHub: https://github.com/usememos/memos
2024-02-18T21:39:46.080Z INFO jobs/presign_link.go:26 links pre-signed {"duration": "71.670992ms"} 2024-02-18T21:39:52Z latency=11.20269ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:39:52Z latency=21.358748ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:39:52Z latency=22.487384ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:39:52Z latency=107.174654ms method=POST uri=/memos.api.v2.MemoService/GetUserMemosStats status=200 error= 2024-02-18T21:39:52Z latency=111.136117ms method=POST uri=/memos.api.v2.MemoService/ListMemos status=200 error= 2024-02-18T21:39:53Z latency=1.019278ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:39:53Z latency=2.228444ms method=POST uri=/memos.api.v2.MemoService/GetUserMemosStats status=200 error= 2024-02-18T21:40:03Z latency=2.969106ms method=POST uri=/memos.api.v2.UserService/ListUserAccessTokens status=200 error= 2024-02-18T21:40:06Z latency=311.118µs method=GET uri=/setting status=200 error= 2024-02-18T21:40:07.781Z WARN v1/system.go:142 Unknown system setting name {"setting name": "openai-config"} github.com/usememos/memos/api/v1.(*APIV1Service).GetSystemStatus /backend-build/api/v1/system.go:142 github.com/usememos/memos/api/v1.(*APIV1Service).Register.func4.JWTMiddleware.1 /backend-build/api/v1/jwt.go:66 github.com/usememos/memos/api/v1.(*APIV1Service).Register.RateLimiterWithConfig.func6.1 /go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/rate_limiter.go:148 github.com/labstack/echo/v4.(*Echo).add.func1 /go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:582 github.com/labstack/echo/v4/middleware.StaticWithConfig.func1.1 /go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/static.go:167 github.com/labstack/echo/v4/middleware.echoHandlerFuncWrapper.ServeHTTP /go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/timeout.go:164 net/http.(*timeoutHandler).ServeHTTP.func1 /usr/local/go/src/net/http/server.go:3596 2024-02-18T21:40:07Z latency=900.624µs method=GET uri=/api/v1/status status=200 error= 2024-02-18T21:40:07Z latency=1.114318ms method=POST uri=/memos.api.v2.AuthService/GetAuthStatus status=200 error= 2024-02-18T21:40:08Z latency=1.773955ms method=POST uri=/memos.api.v2.UserService/GetUserSetting status=200 error= 2024-02-18T21:40:08Z latency=1.202084ms method=POST uri=/memos.api.v2.InboxService/ListInboxes status=200 error= 2024-02-18T21:40:08Z latency=1.309377ms method=POST uri=/memos.api.v2.UserService/ListUserAccessTokens status=200 error= 2024-02-18T21:40:12Z latency=2.399518ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:40:12Z latency=68.643638ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:40:12Z latency=74.718017ms method=POST uri=/memos.api.v2.MemoService/ListMemos status=200 error= 2024-02-18T21:40:12Z latency=2.305942ms method=POST uri=/memos.api.v2.MemoService/GetUserMemosStats status=200 error= 2024-02-18T21:40:12Z latency=1.728158ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error=
Steps to reproduce
- click picture icon.
- select upload local picture
- click create, then the fault occures.
The version of Memos you're using
20.0
Screenshots or additional context
The logs provided above are unrelated to error. Please open the browser console panel and check the error logs.
The logs provided above are unrelated to error. Please open the browser console panel and check the error logs.
i found the error:
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
I tried to compress my jpg to a small size then it worked. it seems that the jpg cannot be over 1M.
........邮件已收到.......
Issue is not in English. It has been translated automatically.
........mail received.......
Maybe blocked by nginx?
correct. i checked my Nginx configuration, it's a config problem. thanks a lot.
On Wed, Feb 21, 2024 at 3:55 AM boojack @.***> wrote:
Maybe blocked by nginx?
— Reply to this email directly, view it on GitHub https://github.com/usememos/memos/issues/2978#issuecomment-1955782377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFEJEBVUBS2Q55NVKBNCHDYUVOZVAVCNFSM6AAAAABDOO4AR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJVG44DEMZXG4 . You are receiving this because you authored the thread.Message ID: @.***>