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

kv: inconsistent on arm64 #242

Closed
dezren39 opened this issue Oct 29, 2023 · 1 comment
Closed

kv: inconsistent on arm64 #242

dezren39 opened this issue Oct 29, 2023 · 1 comment

Comments

@dezren39
Copy link
Contributor

dezren39 commented Oct 29, 2023

this is probably related to using a pi nano which is arm64.

i will report anyways, i think maybe there could be improved messaging,
but the issue might be something underlying with badger or something.

this is things i found, links with like dgraph and stuff,
so idk maybe it's not entirely an issue for here, but user will be confused.

it is probably more related to arm64, but exacerbated by low memory low power device.

maybe i should check the minimum requirements for charm/badger but i'd hoped
it would work nicely for those devices so i could use it in helper scripts
for less technical users of raspberry-alike arm thing.

the key has been set in advanced and can be 'get' from other windows and linux boxes.

sometimes it works here, sometimes it doesn't.

when i tried before list would work but get's would fail,
now when i redid this for this message it's the list failing

root@beepy39:/home/user# charm kv list
Error: During db.vlog.open error: while truncating last value log file: /root/.local/share/charm/cloud.charm.sh/kv/charm.sh.kv.user.default/000004.vlog error: mremap size mismatch: requested: 20 got: 20000000
Usage:
  charm kv list [@DB] [flags]

Flags:
  -d, --delimiter string   delimiter to separate keys and values (default "\t")
  -h, --help               help for list
  -k, --keys-only          only print keys and don't fetch values from the db
  -r, --reverse            list in reverse lexicographic order
  -b, --show-binary        print binary values
  -v, --values-only        only print values

root@beepy39:/home/user# charm kv list
Error: while opening memtables error: while opening fid: 8 error: while updating skiplist error: mremap size mismatch: requested: 20 got: 134217728
Usage:
  charm kv list [@DB] [flags]

Flags:
  -d, --delimiter string   delimiter to separate keys and values (default "\t")
  -h, --help               help for list
  -k, --keys-only          only print keys and don't fetch values from the db
  -r, --reverse            list in reverse lexicographic order
  -b, --show-binary        print binary values
  -v, --values-only        only print values

root@beepy39:/home/user# charm kv get yes
plz
root@beepy39:/home/user# charm kv list
Error: while opening memtables error: while opening fid: 9 error: while updating skiplist error: mremap size mismatch: requested: 20 got: 134217728
Usage:
  charm kv list [@DB] [flags]

Flags:
  -d, --delimiter string   delimiter to separate keys and values (default "\t")
  -h, --help               help for list
  -k, --keys-only          only print keys and don't fetch values from the db
  -r, --reverse            list in reverse lexicographic order
  -b, --show-binary        print binary values
  -v, --values-only        only print values

another attempt from user instead of root

   Linked!

user@beepy39:~ $ charm kv list
joyce   love
value   value1
yes     plz
user@beepy39:~ $ charm kv get yes
Error: while opening memtables error: while opening fid: 1 error: while updating skiplist error: mremap size mismatch: requested: 148 got: 134217728
Usage:
  charm kv get KEY[@DB] [flags]

Flags:
  -h, --help          help for get
  -b, --show-binary   print binary values

user@beepy39:~ $ charm kv get joyce
Error: During db.vlog.open error: while truncating last value log file: /home/user/.local/share/charm/cloud.charm.sh/kv/charm.sh.kv.user.default/000001.vlog error: mremap size mismatch: requested: 20 got: 20000000
Usage:
  charm kv get KEY[@DB] [flags]

Flags:
  -h, --help          help for get
  -b, --show-binary   print binary values

user@beepy39:~ $ charm kv get value
Error: while opening memtables error: while opening fid: 2 error: while updating skiplist error: mremap size mismatch: requested: 20 got: 134217728
Usage:
  charm kv get KEY[@DB] [flags]

Flags:
  -h, --help          help for get
  -b, --show-binary   print binary values
@dezren39 dezren39 changed the title kv: inconsistent get commands with pi nano kv: inconsistent with pi nano Oct 29, 2023
@dezren39 dezren39 changed the title kv: inconsistent with pi nano kv: inconsistent on arm64 Oct 29, 2023
@dezren39
Copy link
Contributor Author

dupe of #32

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

No branches or pull requests

1 participant