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

Bitwarden_RS fresh install error message. #4185

Closed
frontalgaming opened this issue Mar 9, 2021 · 8 comments
Closed

Bitwarden_RS fresh install error message. #4185

frontalgaming opened this issue Mar 9, 2021 · 8 comments

Comments

@frontalgaming
Copy link

frontalgaming commented Mar 9, 2021

Creating a bug report/issue

Required Information

  • DietPi version | 7 0 2
  • Distro version | buster
  • Kernel version | Linux Manager 5.10.17-v7+ DietPi-Config | Minor NTP enhancements #1403 SMP Mon Feb 22 11:29:51 GMT 2021 armv7l GNU/Linux
  • SBC model | RPI3
  • Power supply used | Raspberry official PSU 5V 2A
  • SDcard used | SAMSUNG FIT 64 GB

Additional Information (if applicable)

  • Software title | Bitwarden_RS
  • Was the software title installed freshly or updated/migrated? Fresh install.
  • Can this issue be replicated on a fresh installation of DietPi? Didn't re-try it but this is a fresh install.

Steps to reproduce

  1. Selected Bitwarden_RS on the software list
  2. Message appeared at the start of installation.
  3. [FAILED] DietPi-Software | Automatic latest Bitwarden_RS version detection failed. Version "1.19.0" will be installed as fallback, but a newer version might be available. Please report this at: https://github.com/MichaIng/DietPi/issues

Expected behaviour

  • Find the latest version and install it.

Actual behaviour

-Defaults to an older version because it can't find the newest one of Bitwarden_RS

  • Error message:
  • [FAILED] DietPi-Software | Automatic latest Bitwarden_RS version detection failed. Version "1.19.0" will be installed as fallback, but a newer version might be available. Please report this at: https://github.com/MichaIng/DietPi/issues

Extra details

  • Error message:
  • [FAILED] DietPi-Software | Automatic latest Bitwarden_RS version detection failed. Version "1.19.0" will be installed as fallback, but a newer version might be available. Please report this at: https://github.com/MichaIng/DietPi/issues
@Joulinar
Copy link
Collaborator

Joulinar commented Mar 9, 2021

Hi,

Many thanks for your message. Does the installation failed completely or does it finished but with an older version?

@frontalgaming
Copy link
Author

I'm installing right now. It's taking quite a while. I'll report back once it's done.
Currently it's doing a bunch of compiling for over half an hour but isn't locked up or anything.
It's running hot and heavy.

@Joulinar
Copy link
Collaborator

Joulinar commented Mar 9, 2021

Yep that's bitwarden... It will take a while to finish. You can open a 2nd SSH session and watch processes using htop. On the other hand we will check why latest download fall back to backup URL

@frontalgaming
Copy link
Author

After 77 minutes everything seems to be working properly. The installation finished and I can login to the webserver page and create an account.
Thanks again guys for this amazing project that helps people streamline these things.
Hope you find the bug.

@Joulinar
Copy link
Collaborator

Joulinar commented Mar 9, 2021

well I did a test installation and it is working well on my side. Btw 1.19.0 is the latest version atm. Means you are fine 😄

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Installing Bitwarden_RS: Unofficial Bitwarden password manager server written in Rust

[  OK  ] DietPi-Software | Checking URL: https://github.com/dani-garcia/bitwarden_rs/archive/1.19.0.tar.gz

The code to detect latest version is following and it is giving the correct output to me

curl -sSfL 'https://api.github.com/repos/dani-garcia/bitwarden_rs/releases/latest' | mawk -F\" '/"tag_name": /{print $4}'
1.19.0

Maybe you can check it if you not mind

@frontalgaming
Copy link
Author

frontalgaming commented Mar 9, 2021

curl -sSfL 'https://api.github.com/repos/dani-garcia/bitwarden_rs/releases/latest' | mawk -F" '/"tag_name": /{print $4}'
1.19.0

Yep, it's working. The only reason I posted is because the installation process asked me to report it. Thanks for the help!

@Joulinar
Copy link
Collaborator

Joulinar commented Mar 9, 2021

no problem. Maybe there was a temp issue to detect the version and that's why you fall back to the hardcoded download link. If you are fine I'm going to close this issue. Feel free to reopen if needed.

@MichaIng
Copy link
Owner

Thanks for reporting btw. I added that warning to better keep track of broken GitHub API links or changed file names. Previously the fallback was used silently which means that it could have stayed undetected until someone verified it manually.

If this causes too many false alarms, we can remove it again. I'm anyway going through all GitHub API URLs before a new release since a while, and it can also be automated relatively easy.

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

3 participants