Re: [gentoo-user] Bitwarden, anyone?
On Tue, 16 Jun 2020 13:52:52 +0200, Wynn Wolf Arbor wrote: > > So I created a ~/.cache/bwtmp directory and passed TMPDIR= to > > bitwarden, but then it threw another error. I'd better take this up > > with BitWarden. > > I just tried getting it to work again. If this is anything like on my > system, once the noexec problem is fixed, the app fails here because it > doesn't find libsecret. I'm not sure why this is not bundled in the > AppImage, but emerging app-crypt/libsecret fixes this for me, and I can > run the app without any further issues. I might have other libs it > depends on installed already, so I can't say for sure without looking at > the error message. That explains why it just worked for me. /tmp is mounted without noexec and libsecret is already installed. -- Neil Bothwick You can't teach a new mouse old clicks. pgpBhXqkpsxpT.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Bitwarden, anyone?
On Tuesday, 16 June 2020 12:52:52 BST Wynn Wolf Arbor wrote: > On 2020-06-16 12:05, Peter Humphrey wrote: > > So I created a ~/.cache/bwtmp directory and passed TMPDIR= to > > bitwarden, but then it threw another error. I'd better take this up > > with BitWarden. > > I just tried getting it to work again. If this is anything like on my > system, once the noexec problem is fixed, the app fails here because it > doesn't find libsecret. I'm not sure why this is not bundled in the > AppImage, but emerging app-crypt/libsecret fixes this for me, and I can > run the app without any further issues. I might have other libs it > depends on installed already, so I can't say for sure without looking at > the error message. > > Hope that helps. Certainly did - thanks! I'll tell them about it. -- Regards, Peter.
Re: [gentoo-user] Bitwarden, anyone?
On Tuesday, 16 June 2020 12:40:35 BST Neil Bothwick wrote: > On Tue, 16 Jun 2020 12:05:33 +0100, Peter Humphrey wrote: > > It turns out that BitWarden requires execution of a program in /tmp. > > They said to make sure /tmp wasn't mounted noexec! > > > > So I created a ~/.cache/bwtmp directory and passed TMPDIR= to > > bitwarden, but then it threw another error. I'd better take this up > > with BitWarden. > > Have you tried remounting /tmp with exec, just to see if it works? Yes, and it threw another error: A JavaScript error occurred in the main process Uncaught Exception: Error: libsecret-1.so.0: cannot open shared object file: No such file or directory at process.func (electron/js2c/asar.js:138:31) at process.func [as dlopen] (electron/js2c/asar.js:138:31) at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18) at Object.func (electron/js2c/asar.js:138:31) at Object.func [as .node] (electron/js2c/asar.js:147:18) at Module.load (internal/modules/cjs/loader.js:645:32) at Function.Module._load (internal/modules/cjs/loader.js:560:12) at Module.require (internal/modules/cjs/loader.js:685:19) at require (internal/modules/cjs/helpers.js:16:16) at Object. (/home/prh/Bitwarden-1.18.0-x86_64/opt/Bitwarden/resources/app.asar/node_modules/keytar/lib/keytar.js:1:14) -- Regards, Peter.
Re: [gentoo-user] Bitwarden, anyone?
On 2020-06-16 12:05, Peter Humphrey wrote: > So I created a ~/.cache/bwtmp directory and passed TMPDIR= to > bitwarden, but then it threw another error. I'd better take this up > with BitWarden. I just tried getting it to work again. If this is anything like on my system, once the noexec problem is fixed, the app fails here because it doesn't find libsecret. I'm not sure why this is not bundled in the AppImage, but emerging app-crypt/libsecret fixes this for me, and I can run the app without any further issues. I might have other libs it depends on installed already, so I can't say for sure without looking at the error message. Hope that helps. -- Wolf
Re: [gentoo-user] Bitwarden, anyone?
On Tue, 16 Jun 2020 12:05:33 +0100, Peter Humphrey wrote: > It turns out that BitWarden requires execution of a program in /tmp. > They said to make sure /tmp wasn't mounted noexec! > > So I created a ~/.cache/bwtmp directory and passed TMPDIR= to > bitwarden, but then it threw another error. I'd better take this up > with BitWarden. Have you tried remounting /tmp with exec, just to see if it works? -- Neil Bothwick Pound for pound, the amoeba is the most vicious animal on the earth. pgp40BRwJsmkB.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Bitwarden, anyone?
On Tuesday, 16 June 2020 09:43:15 BST Neil Bothwick wrote: > On Tue, 16 Jun 2020 00:42:50 +0100, Peter Humphrey wrote: > > > > So it can work, then. I just have to work out what I'm doing wrong. > > > > I have a support request in with them; no reply yet. > > > > > > Do other AppImages work on your computer? > > > > This is the first one I've tried. Do you recommend any others in > > particular? > > You could try this one: https://www.balena.io/etcher/ > > I just wondered if your problem was with the BitWarden AppImages or > AppImages in general. It turns out that BitWarden requires execution of a program in /tmp. They said to make sure /tmp wasn't mounted noexec! So I created a ~/.cache/bwtmp directory and passed TMPDIR= to bitwarden, but then it threw another error. I'd better take this up with BitWarden. Wynn Wolf Arbor suggested this explanation, but I can't find his message now. (Is KMail playing up again?) -- Regards, Peter.
Re: [gentoo-user] Bitwarden, anyone?
On Tue, 16 Jun 2020 00:42:50 +0100, Peter Humphrey wrote: > > > So it can work, then. I just have to work out what I'm doing wrong. > > > I have a support request in with them; no reply yet. > > > > Do other AppImages work on your computer? > > This is the first one I've tried. Do you recommend any others in > particular? You could try this one: https://www.balena.io/etcher/ I just wondered if your problem was with the BitWarden AppImages or AppImages in general. -- Neil Bothwick System halted - Press all keys at once to continue. pgpuBEegthIDm.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Bitwarden, anyone?
On Monday, 15 June 2020 20:56:05 BST Neil Bothwick wrote: > On Mon, 15 Jun 2020 20:51:54 +0100, Peter Humphrey wrote: > > > I've just tried the AppImage for the desktop client and it just > > > worked, albeit with the usual loading speed of an AppImage. > > > > So it can work, then. I just have to work out what I'm doing wrong. I > > have a support request in with them; no reply yet. > > Do other AppImages work on your computer? This is the first one I've tried. Do you recommend any others in particular? -- Regards, Peter.
Re: [gentoo-user] Bitwarden, anyone?
On Mon, 15 Jun 2020 20:51:54 +0100, Peter Humphrey wrote: > > I've just tried the AppImage for the desktop client and it just > > worked, albeit with the usual loading speed of an AppImage. > > So it can work, then. I just have to work out what I'm doing wrong. I > have a support request in with them; no reply yet. Do other AppImages work on your computer? -- Neil Bothwick First Law of Laboratory Work: Hot glass looks exactly the same as cold glass. pgpabtAgsegtt.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Bitwarden, anyone?
On Monday, 15 June 2020 12:38:03 BST Neil Bothwick wrote: > On Mon, 15 Jun 2020 02:47:56 +0100, Peter Humphrey wrote: > > > Has anyone some experience of bitwarden on Gentoo? It doesn't run for > > > me, and I suspect a java problem. I have icedtea here. > > > > > > I'm talking about the installed version, not the firefox extension, > > > which seems to work. > > > > I've found an overlay with bitwarden-cli-bin, which is now installed > > and ready to accept commands. > > I've just tried the AppImage for the desktop client and it just worked, > albeit with the usual loading speed of an AppImage. So it can work, then. I just have to work out what I'm doing wrong. I have a support request in with them; no reply yet. -- Regards, Peter.
Re: [gentoo-user] Bitwarden, anyone?
On Mon, 15 Jun 2020 02:47:56 +0100, Peter Humphrey wrote: > > Has anyone some experience of bitwarden on Gentoo? It doesn't run for > > me, and I suspect a java problem. I have icedtea here. > > > > I'm talking about the installed version, not the firefox extension, > > which seems to work. > > I've found an overlay with bitwarden-cli-bin, which is now installed > and ready to accept commands. I've just tried the AppImage for the desktop client and it just worked, albeit with the usual loading speed of an AppImage. -- Neil Bothwick Barth's Distinction: There are two types of people: those who divide people into two types, and those who don't. pgpUkahJbeJ19.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Bitwarden, anyone?
On 2020-06-14 23:20, Peter Humphrey wrote: > On Sunday, 14 June 2020 19:06:36 BST Wynn Wolf Arbor wrote: > > That was a good idea - but it didn't help, so that's not the answer. If you're still interested in debugging this, did the error message stay the same? At least the path "/tmp/.org.chromium.Chromium.QkN0cP" should have change to indicate the new TMPDIR. It should also have created files there. > Yes, I understand that. Oh, sorry if I misunderstood something then. I had assumed that you thought Java was needed for the Bitwarden app. There's no indication on the site that it is (though then again it also doesn't say that it is an Electron app), so I thought the confusion came from "JavaScript" in the error message. Good to hear that the bitwarden-cli app works for you. -- Wolf
Re: [gentoo-user] Bitwarden, anyone?
On Sunday, 14 June 2020 12:43:21 BST Peter Humphrey wrote: > Afternoon all, > > Has anyone some experience of bitwarden on Gentoo? It doesn't run for me, > and I suspect a java problem. I have icedtea here. > > I'm talking about the installed version, not the firefox extension, which > seems to work. I've found an overlay with bitwarden-cli-bin, which is now installed and ready to accept commands. -- Regards, Peter.
Re: [gentoo-user] Bitwarden, anyone?
On Sunday, 14 June 2020 19:06:36 BST Wynn Wolf Arbor wrote: > On 2020-06-14 18:45, Peter Humphrey wrote: > > Yes; this is what I get: > > > > $ ./Bitwarden*/opt/Bitwarden/bitwarden > > A JavaScript error occurred in the main process > > Uncaught Exception: > > Error: /tmp/.org.chromium.Chromium.QkN0cP: failed to map segment from > > shared object > > --->8 > > From what I remember this is caused by having /tmp mounted with noexec. > Sadly the app tries to execute a process directly from within the > temporary directory and fails. Try something like this to confirm: > > mkdir $HOME/.cache/bitwarden-tmp > TMPDIR=$HOME/.cache/bitwarden-tmp ./Bitwarden*/opt/Bitwarden/ bitwarden That was a good idea - but it didn't help, so that's not the answer. > To see whether you've mounted /tmp with noexec: mount | grep /tmp > > Should give something like this: > > tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime) > > Note that having /tmp mounted with noexec is usually a good idea. I used > to create a wrapper script that launched these kinds of app with a > special TMPDIR. > > > I haven't played with java before, so I'm trying to follow the gentoo > > wiki. My first question is whether I need a jdk as well as a jre. The > > wiki talks blithely about virtual machines, and I'm left to guess > > whether the jre is the jvm, as it seems. I'm currently installing > > openjre and openjdk; icedtea-bin is also installed. > > The JRE is the Runtime Environment. It includes all things necessary to > run a compiled Java program (so it does indeed include the JVM). The JDK > is the Development Kit - it includes the JRE, but also ships with the > javac compiler and a few other tools. So, if you intend to just run an > already compiled Java program (usually in the form of a .jar), you just > need the JRE. If you need to compile Java programs, you should instead > install the JDK (and can remove the JRE fully). That makes sense, and I'd supposed it to be so. It would be helpful if the wiki said so. > Regardless of that, JavaScript is not Java [1]. There's no need for the > JRE if you want to run JavaScript code. The Bitwarden desktop app does > not need a JRE or JDK. Yes, I understand that. > [1] https://en.wikipedia.org/wiki/JavaScript#Java -- Regards, Peter.
Re: [gentoo-user] Bitwarden, anyone?
On 2020-06-14 18:45, Peter Humphrey wrote: > Yes; this is what I get: > > $ ./Bitwarden*/opt/Bitwarden/bitwarden > A JavaScript error occurred in the main process > Uncaught Exception: > Error: /tmp/.org.chromium.Chromium.QkN0cP: failed to map segment from shared > object > --->8 >From what I remember this is caused by having /tmp mounted with noexec. Sadly the app tries to execute a process directly from within the temporary directory and fails. Try something like this to confirm: mkdir $HOME/.cache/bitwarden-tmp TMPDIR=$HOME/.cache/bitwarden-tmp ./Bitwarden*/opt/Bitwarden/bitwarden To see whether you've mounted /tmp with noexec: mount | grep /tmp Should give something like this: tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime) Note that having /tmp mounted with noexec is usually a good idea. I used to create a wrapper script that launched these kinds of app with a special TMPDIR. > I haven't played with java before, so I'm trying to follow the gentoo > wiki. My first question is whether I need a jdk as well as a jre. The > wiki talks blithely about virtual machines, and I'm left to guess > whether the jre is the jvm, as it seems. I'm currently installing > openjre and openjdk; icedtea-bin is also installed. The JRE is the Runtime Environment. It includes all things necessary to run a compiled Java program (so it does indeed include the JVM). The JDK is the Development Kit - it includes the JRE, but also ships with the javac compiler and a few other tools. So, if you intend to just run an already compiled Java program (usually in the form of a .jar), you just need the JRE. If you need to compile Java programs, you should instead install the JDK (and can remove the JRE fully). Regardless of that, JavaScript is not Java [1]. There's no need for the JRE if you want to run JavaScript code. The Bitwarden desktop app does not need a JRE or JDK. [1] https://en.wikipedia.org/wiki/JavaScript#Java -- Wolf
Re: [gentoo-user] Bitwarden, anyone?
On Sunday, 14 June 2020 13:06:32 BST Wynn Wolf Arbor wrote: > Hi Peter, > > On 2020-06-14 12:43, Peter Humphrey wrote: > > Afternoon all, > > > > Has anyone some experience of bitwarden on Gentoo? It doesn't run for > > me, and I suspect a java problem. I have icedtea here. > > > > I'm talking about the installed version, not the firefox extension, > > which seems to work. > > Which installed version are you talking about? I don't see the Bitwarden > desktop or command line app in the tree - I guess you downloaded one > from their site? Yes, it isn't in the tree. I've tried both the Appimage version and the .rpm, the latter after rpm2targz. I installed them in my home directory. > I used to run the desktop app myself, and am pretty sure it does not > require a Java runtime. If you use the AppImage version, there might be > certain libs missing (tested it out just now, and it fails to start > because it cannot find libsecret). > > Have you tried running it from the command line to see what it says? Yes; this is what I get: $ ./Bitwarden*/opt/Bitwarden/bitwarden A JavaScript error occurred in the main process Uncaught Exception: Error: /tmp/.org.chromium.Chromium.QkN0cP: failed to map segment from shared object --->8 I haven't played with java before, so I'm trying to follow the gentoo wiki. My first question is whether I need a jdk as well as a jre. The wiki talks blithely about virtual machines, and I'm left to guess whether the jre is the jvm, as it seems. I'm currently installing openjre and openjdk; icedtea-bin is also installed. -- Regards, Peter.
Re: [gentoo-user] Bitwarden, anyone?
Hi Peter, On 2020-06-14 12:43, Peter Humphrey wrote: > Afternoon all, > > Has anyone some experience of bitwarden on Gentoo? It doesn't run for > me, and I suspect a java problem. I have icedtea here. > > I'm talking about the installed version, not the firefox extension, > which seems to work. Which installed version are you talking about? I don't see the Bitwarden desktop or command line app in the tree - I guess you downloaded one from their site? I used to run the desktop app myself, and am pretty sure it does not require a Java runtime. If you use the AppImage version, there might be certain libs missing (tested it out just now, and it fails to start because it cannot find libsecret). Have you tried running it from the command line to see what it says? -- Wolf
[gentoo-user] Bitwarden, anyone?
Afternoon all, Has anyone some experience of bitwarden on Gentoo? It doesn't run for me, and I suspect a java problem. I have icedtea here. I'm talking about the installed version, not the firefox extension, which seems to work. -- Regards, Peter.