bob: bob doesn't write files

Hi !

I’m trying to use bob on Raspberry Pi OS (Debian, arm64) and it seems bob can’t write files.

Here’s the output when I try to reproduce the command from the README gif :

$ bob install 0.8.1
Downloaded version v0.8.1 to /home/steuv/.local/share/bob/v0.8.1.appimage
  [00:00:08] [¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦] 14.65MiB/14.65MiB (1.80MiB/s, 0s)
Jan 20 11:14:07.395  INFO v0.8.1 has been successfully installed in /home/steuv/.local/share/bob
$ bob use 0.8.1
Downloaded version v0.8.1 to /home/steuv/.local/share/bob/v0.8.1.appimage
  [00:00:08] [¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦] 14.65MiB/14.65MiB (1.74MiB/s, 0s)
Jan 20 11:14:47.559  INFO You can now use v0.8.1!
$ bob ls
+-------------------------+
¦  Version  ¦  Status     ¦
+-----------+-------------¦
+-------------------------+
$ tree /home/steuv/.local/share/bob/
/home/steuv/.local/share/bob/
+-- nvim-bin
¦   +-- nvim
+-- used

1 directory, 2 files

I’ve checked the permission on bob directory for current user but it’s ok:

$ ls /home/steuv/.local/share/ -al
   rwx------   5   steuv   steuv      4 KiB   Thu Jan 18 13:49:15 2024  ?  ./
   rwxr-xr-x   5   steuv   steuv      4 KiB   Tue Jan  9 21:06:55 2024  ?  ../
   rwxr-xr-x   3   steuv   steuv      4 KiB   Sat Jan 20 11:14:47 2024  ?  bob/
   ...

I’ve installed bob from cartes.io (cargo install bob-nvim) with no error.

I don’t know where to start my troubleshout.
Any help will be appreciated !

About this issue

  • Original URL
  • State: open
  • Created 5 months ago
  • Comments: 20 (11 by maintainers)

Most upvoted comments

Thanks for the time you’ve taken on this issue.

Yeah, I hope they’ll add arm support too sometimes soon !

hmmm i see, I will try soon create a branch with debug log, download it and then show me what it outputs.

Ok, I managed to create the Docker image and run bob, but still the same result, no install append.
And the odd thing is that I did my test on a fresh new Raspberry Pi Os install on an other hardware (Raspberry Pi Zero 2 > Raspberry Pi 4). It’s even a different Debian version (11 Bulleye > 12 Bookworm).

I tried to run an install from binary and an install from cargo crates, and still the same issue.
I’ll try on a VM with Raspberry Pi Os and standard Debian to continue the test.

Log from Docker test:

$ git clone https://github.com/MordechaiHadad/bob.git
Cloning into 'bob'...
remote: Enumerating objects: 2680, done.
remote: Counting objects: 100% (2680/2680), done.
remote: Compressing objects: 100% (879/879), done.
remote: Total 2680 (delta 1762), reused 2577 (delta 1742), pack-reused 0
Receiving objects: 100% (2680/2680), 1.65 MiB | 13.27 MiB/s, done.
Resolving deltas: 100% (1762/1762), done.

$ cd bob/

$ sudo docker image build . -t bob:latest
[+] Building 1.7s (13/13) FINISHED                                                                                                                                                             docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                     0.1s
 => => transferring dockerfile: 447B                                                                                                                                                                     0.0s
 => [internal] load metadata for docker.io/library/rust:latest                                                                                                                                           1.1s
 => [internal] load .dockerignore                                                                                                                                                                        0.0s
 => => transferring context: 61B                                                                                                                                                                         0.0s
 => [1/8] FROM docker.io/library/rust:latest@sha256:87f3b2f93b82995443a1a558c234212dafe79cfdc3af956539610560369ddcd0                                                                                     0.0s
 => [internal] load build context                                                                                                                                                                        0.1s
 => => transferring context: 3.37kB                                                                                                                                                                      0.0s
 => CACHED [2/8] RUN useradd -m -s /bin/bash bobuser                                                                                                                                                     0.0s
 => CACHED [3/8] WORKDIR /app                                                                                                                                                                            0.0s
 => CACHED [4/8] COPY . .                                                                                                                                                                                0.0s
 => CACHED [5/8] RUN cargo build                                                                                                                                                                         0.0s
 => CACHED [6/8] RUN mkdir -p ~/.config/bob && echo '{"version_sync_file_location": "/home/bobuser/.config/nvim/nvim.version"}' > ~/.config/bob/config.json                                              0.0s
 => CACHED [7/8] RUN mkdir -p ~/.config/nvim                                                                                                                                                             0.0s
 => CACHED [8/8] RUN cp target/debug/bob /usr/local/bin/                                                                                                                                                 0.0s
 => exporting to image                                                                                                                                                                                   0.0s
 => => exporting layers                                                                                                                                                                                  0.0s
 => => writing image sha256:20948b6fca72c92684d4a2585208340d3751b6f82685ad1e003dadca57e13e1d                                                                                                             0.0s
 => => naming to docker.io/library/bob:latest                                                                                                                                                            0.0s

$ sudo docker image ls
REPOSITORY    TAG       IMAGE ID       CREATED          SIZE
bob           latest    20948b6fca72   26 minutes ago   2.97GB
hello-world   latest    ee301c921b8a   9 months ago     9.14kB

$ sudo docker container run -it bob:latest bob install latest
Feb 03 17:31:59.972  INFO Fetching latest version
Downloaded version v0.9.5 to /home/bobuser/.local/share/bob/v0.9.5.appimage
  [00:00:00] [¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦] 10.66MiB/10.66MiB (15.63MiB/s, 0s)
Feb 03 17:32:01.899  INFO v0.9.5 has been successfully installed in /home/bobuser/.local/share/bob

$ sudo docker container run -it bob:latest bob list
Feb 03 17:32:28.110 ERROR Error: There are no versions installed

Ye all good, I wish I had a way to recreate this issue though.