(I apologize if this is not the right community for the question described in the post title.)
My problem with setting up Mollysocket is that my knowledge and competence with such things is very limited (I have MSc in natural sciences) so the instructions on their Github repo are not clear enough for me to resolve the issues I’ve faced. I have a strong passion for these though, and there are still lots of things I do understand.
However, none of the three alternative methods to install Mollysocket worked. First I tried using crates.io, but hit the wall when trying to perform “cargo install mollysocket” because it ended up giving a feature error which I couldn’t pass regardless the given instructions of using nightly version and enabling such unstable feature (+ I’ve no idea where to find Cargo.toml file).
So next I tried the precompiled version, but then the issue was that I couldn’t start mollysocket via systemctl. Troubleshooting by myself was impossible because I couldn’t find anything from the search engines related to this.
And the Docker option, well, I think I understood everything until the step where I should generate VAPID key. I copy-pasted the given command from their Github, but this results in a error that such command does not exist.
The instructions given on their Github are, in my opinion, not so beginner friendly, thus I would be very grateful to those who could help with this.
Commands and errors?
cargo install mollysocket
ends up with
error[E0658]: c"…" literals are experimental … error: could not compile
rusqlite
(lib) due to previous error.Now
rustc --explain E0658
states that this is due to unstable feature “repr128”. I’m using a nightly version.After systemctl enable --now mollysocket
performing systemctl status mollysocket gives
… Active: failed (Result: exit-code) … Process: … (code=exited, status=203/EXEC) …
sudo -u mollysocket mollysocket vapid gen | systemd-creds encrypt --name=ms_vapid -p - -
or basically any command starting mollysocket ends up with
mollysocket:command not found error.
mollysocket
command is inside the docker container(s), so outside you get not found.github.com/mollyim/mollysocket/blob/main/README.md
VAPID key VAPID key is used to authorize mollysocket server to send requests to your push server, if it supports it. To generate a new key, you can run this command mollysocket vapid gen. Or using docker, docker compose run mollysocket vapid gen. This value can be passed to mollysocket via a file, location given with vapid_key_file parameter, or directly in the vapid_privkey parameter. The key file takes the precedence.
github.com/mollyim/mollysocket/issues
I guess I managed to break too many things while testing several settings…so I did a fresh Linux Mint installation and decided to try Crates option again almost succeeding…
Now I managed to perform cargo install mollysocket as well as create vapid key (though only as a plaintext…) and add that to corresponding file. I set up Mollysocket to be used in air-gapped mode (webserver = false), then performing systemctl restart mollysocket, and now based on systemctl status mollysocket the process is now active. I also got the QR code via journalctl -u mollysocket, but now the status on the Molly app says it’s “Unable to create the linked device”.
That’s where I’m stuck now. Seems to be so close to work…
sudo journalctl -xe -u mollysocket # to see full log