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

I | invalid character 'S' after object key on juicefs load #1590

Closed
solracsf opened this issue Mar 16, 2022 · 9 comments
Closed

I | invalid character 'S' after object key on juicefs load #1590

solracsf opened this issue Mar 16, 2022 · 9 comments
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@solracsf
Copy link
Contributor

solracsf commented Mar 16, 2022

I've tried to dump from MySQL and load to Redis, but i got this output on load:

$ juicefs dump "mysql://jfs:jfs@(127.0.0.1:3306)/jfs_data" dump.json

<INFO>: Meta address: mysql://jfs:****@(127.0.0.1:3306)/jfs_data [interface.go:383]
 Snapshot keys count: 10101347 / 10101347 [==============================================================]  done
 Dumped entries count: 3580869 / 3580869 [==============================================================]  done
<INFO>: Dump metadata into dump.json succeed [dump.go:76]

$ juicefs load redis://127.0.0.1:6379 dump.json

<INFO>: Meta address: redis://127.0.0.1:6379 [interface.go:383]
<INFO>: Ping redis: 194.003µs [redis.go:2497]
I | invalid character 'S' after object key
@solracsf solracsf added the kind/bug Something isn't working label Mar 16, 2022
@zhijian-pro
Copy link
Contributor

What is the Redis version?

@zhijian-pro zhijian-pro self-assigned this Mar 17, 2022
@solracsf
Copy link
Contributor Author

solracsf commented Mar 17, 2022

I've tried Redis 6 and KeyDB 6, same error.

@zhijian-pro
Copy link
Contributor

Is it normal to load this json file into mysql?
what is the version of mysql?

@solracsf
Copy link
Contributor Author

I'm not loading into MySQL, but dumping from. It is MariaDB 10.4.

@solracsf
Copy link
Contributor Author

solracsf commented Mar 17, 2022

I've tried to load it into the same server (different database) it was dumped, same error:

$ juicefs load "mysql://jfs:jfs@(10.1.0.4:3306)/jfs" dump.json

<INFO>: Meta address: mysql://jfs:****@(10.1.0.4:3306)/jfs [interface.go:383]
I | invalid character 'S' after object key

@zhijian-pro
Copy link
Contributor

Are there Unicode characters in the file system this time?

@solracsf
Copy link
Contributor Author

solracsf commented Mar 17, 2022

Well it's the same filesystem so i believe the answer is yes :)

@davies davies added this to the Release 1.0 milestone Mar 18, 2022
@davies
Copy link
Contributor

davies commented Apr 6, 2022

@solracsf This should be fixed by #1691, can you test it with latest main branch?

@davies davies closed this as completed Apr 19, 2022
@solracsf
Copy link
Contributor Author

Tested OK with latest main branch.

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

No branches or pull requests

3 participants