Skip to content
New issue

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

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

Already on GitHub? # to your account

Trying to move form Memos stable version to latest version. I am getting error when trying to run. Log added. #4357

Open
FutureEye1 opened this issue Feb 2, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@FutureEye1
Copy link

Describe the bug

Hi, I want to IOS app which support the latest version and has removed the stable version support due to api change as I am told. So I am trying to move to memos latest version and I am getting the below error. What could be reason? I am not developer so appreciate any help here.

I am running on a synology NAS.

memos-latest
date,stream,content
2025/02/02 16:53:00,stderr,2025/02/02 21:53:00 ERROR failed to migrate error="strconv.Atoi: parsing "00_memo_tags.sql": invalid syntax\nfailed to convert patch version to int: 00_memo_tags.sql\ngithub.heygears.com/usememos/memos/store.(*Store).getSchemaVersionOfMigrateScript\n\t/backend-build/store/migrator.go:243\ngithub.heygears.com/usememos/memos/store.(*Store).normalizedMigrationHistoryList\n\t/backend-build/store/migrator.go:282\ngithub.heygears.com/usememos/memos/store.(*Store).preMigrate\n\t/backend-build/store/migrator.go:161\ngithub.heygears.com/usememos/memos/store.(*Store).Migrate\n\t/backend-build/store/migrator.go:38\nmain.init.func1\n\t/backend-build/bin/memos/main.go:61\ngithub.heygears.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989\ngithub.heygears.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117\ngithub.heygears.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041\nmain.main\n\t/backend-build/bin/memos/main.go:171\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1700\nfailed to get schema version of migrate script\ngithub.heygears.com/usememos/memos/store.(*Store).normalizedMigrationHistoryList\n\t/backend-build/store/migrator.go:284\ngithub.heygears.com/usememos/memos/store.(*Store).preMigrate\n\t/backend-build/store/migrator.go:161\ngithub.heygears.com/usememos/memos/store.(*Store).Migrate\n\t/backend-build/store/migrator.go:38\nmain.init.func1\n\t/backend-build/bin/memos/main.go:61\ngithub.heygears.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989\ngithub.heygears.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117\ngithub.heygears.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041\nmain.main\n\t/backend-build/bin/memos/main.go:171\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1700\nfailed to normalize migration history list\ngithub.heygears.com/usememos/memos/store.(*Store).preMigrate\n\t/backend-build/store/migrator.go:162\ngithub.heygears.com/usememos/memos/store.(*Store).Migrate\n\t/backend-build/store/migrator.go:38\nmain.init.func1\n\t/backend-build/bin/memos/main.go:61\ngithub.heygears.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989\ngithub.heygears.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117\ngithub.heygears.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041\nmain.main\n\t/backend-build/bin/memos/main.go:171\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1700\nfailed to pre-migrate\ngithub.heygears.com/usememos/memos/store.(*Store).Migrate\n\t/backend-build/store/migrator.go:39\nmain.init.func1\n\t/backend-build/bin/memos/main.go:61\ngithub.heygears.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989\ngithub.heygears.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117\ngithub.heygears.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041\nmain.main\n\t/backend-build/bin/memos/main.go:171\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1700"

Steps to reproduce

Just running the latest version. Stable version works awesome no issue with that. It is just latest version is not running.

The version of Memos you're using

latest

Screenshots or additional context

No response

@FutureEye1 FutureEye1 added the bug Something isn't working label Feb 2, 2025
@johnnyjoygh
Copy link
Collaborator

Just running the latest version. Stable version works awesome no issue with that. It is just latest version is not running.

The suggestion is to avoid using "latest" and just use "stable," even though "latest" and "stable" are the same.

@FutureEye1
Copy link
Author

I thought stable is v19.0 and latest is v23.1

@primetime00
Copy link

primetime00 commented Feb 4, 2025

I'm having the same issue on neosmemo/memos:stable:
ERROR failed to migrate error="strconv.Atoi: parsing \"00_memo_tags.sql\": invalid syntax\nfailed to convert patch version to int: 00_memo_tags.sql\ngithub.heygears.com/usememos/memos/store.(*Store).getSchemaVersionOfMigrateScript\n\t/backend-build/store/migrator.go:243\ngithub.heygears.com/usememos/memos/store.(*Store).normalizedMigrationHistoryList\n\t/backend-build/store/migrator.go:282\ngithub.heygears.com/usememos/memos/store.(*Store).preMigrate\n\t/backend-build/store/migrator.go:161\ngithub.heygears.com/usememos/memos/store.(*Store).Migrate\n\t/backend-build/store/migrator.go:38\nmain.init.func1\n\t/backend-build/bin/memos/main.go:61\ngithub.heygears.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989\ngithub.heygears.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117\ngithub.heygears.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041\nmain.main\n\t/backend-build/bin/memos/main.go:171\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1700\nfailed to get schema version of migrate script\ngithub.heygears.com/usememos/memos/store.(*Store).normalizedMigrationHistoryList\n\t/backend-build/store/migrator.go:284\ngithub.heygears.com/usememos/memos/store.(*Store).preMigrate\n\t/backend-build/store/migrator.go:161\ngithub.heygears.com/usememos/memos/store.(*Store).Migrate\n\t/backend-build/store/migrator.go:38\nmain.init.func1\n\t/backend-build/bin/memos/main.go:61\ngithub.heygears.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989\ngithub.heygears.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117\ngithub.heygears.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041\nmain.main\n\t/backend-build/bin/memos/main.go:171\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1700\nfailed to normalize migration history list\ngithub.heygears.com/usememos/memos/store.(*Store).preMigrate\n\t/backend-build/store/migrator.go:162\ngithub.heygears.com/usememos/memos/store.(*Store).Migrate\n\t/backend-build/store/migrator.go:38\nmain.init.func1\n\t/backend-build/bin/memos/main.go:61\ngithub.heygears.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989\ngithub.heygears.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117\ngithub.heygears.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041\nmain.main\n\t/backend-build/bin/memos/main.go:171\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1700\nfailed to pre-migrate\ngithub.heygears.com/usememos/memos/store.(*Store).Migrate\n\t/backend-build/store/migrator.go:39\nmain.init.func1\n\t/backend-build/bin/memos/main.go:61\ngithub.heygears.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989\ngithub.heygears.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117\ngithub.heygears.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041\nmain.main\n\t/backend-build/bin/memos/main.go:171\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:272\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1700"

@James-Rocker
Copy link

I am also having the same issue with the most recent stable release using the docker image.

@linlord
Copy link

linlord commented Feb 5, 2025

I am also having the same issue with the most recent stable release using the docker image.我也使用Docker Image的最新稳定版本也遇到了同样的问题。

me too

@0x1af2aec8f957
Copy link

0x1af2aec8f957 commented Feb 5, 2025

Problem version: ghcr.io/usememos/memos:0.23.1

Running well: 0.23.0

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

No branches or pull requests

6 participants