-
Notifications
You must be signed in to change notification settings - Fork 107
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
Unable to generate a licence #19
Comments
What version of the dotnet-sdk did you install? It seems like it wants version 12.0.0 of Newtonsoft.Json. |
I installed "dotnet-sdk-2.1" |
running (dotnet --version) |
And just to confirm, you ran the Perhaps there's something different about your dotnet install or your environment that is causing it to look for version 12.0.0. You can try just adding that package and rebuilding. |
I did exactly as per your documentation. |
This morning I tried |
Can you please re-run the Can you also confirm the contents of your |
Running
|
Below are the contents of the csproj:
|
Have you been following all of the steps as the root user? I wouldn't recommend that for security and environment reasons. We've seen users in the past having issues getting the dotnet builds and the docker containers working correctly due to the way that dotnet and docker set environment variables. In the past, those issues have been solved by using a regular, unprivileged user instead. |
oh OK. I thought I wouldn't be able to execute the commands as a standard user. Wouldn't doing sudo ./build.sh be the same as running it as root? |
I can't run ./build.sh or the I'm I doing this all wrong? |
You shouldn't have to run with If you followed the recommended steps when installing docker, you would have added an unprivileged user to the As a rule of thumb, you should never run anything with root that doesn't require root. The reason you can't run the dotnet command is probably because the BitBetter directory and the files inside are owned by root now. You should |
OK. Just recreated everything and I'm doing things as my non-privileged user "user" Everything is installed in /opt/ I'm still getting the same error message though!
I've changed details such as user, email and GUID before posting but the actual command has the correct ones. What else can I do now? |
For now I've been unable to recreate this issue, trying clean installs on fresh Debian 9 and Ubuntu 19.04 systems. What operating system and OS version are you attempting this install on? Using the most recent version of BitBetter (commit 15371c3), the default version that installs with the dotnet-sdk-2.1 (oddly enough, this is 2.2.300) and the most recent version of Bitwarden I can't replicate the issue. I've also tried using the version of the dotnet-sdk that you have (2.1.700), but still can't replicate the issue. Perhaps you can try manually installing a different version of the dotnet-sdk. I believe that Microsoft simply provides package names for different versions, so you can try installing Remember that you have to rebuild the license generator again after installing a new version of dotnet-sdk and updating the dotnet packages with |
Thanks @JeffAlyanak
Followed the instructions on the main page for BitBetter and managed to build the Docker images for both BitBetter and Bitwarden with no issues other than the warning about the version being 11.0.1 instead of 11.0.0 and that's all. Also, with regards to the certificate, this is the self-signed one described under "Note: Manually generating Certificate & Key" right? I even searched all the files inside licenceGen for 12.0.0 and could not find any reference. All references I found are for version 11.0.0 as expected. I'm doing this on a virtual machine and I've reverted to the snapshot that only has the minimum Debian installation plus unzip and sudo and nothing else. I will try a different version of dotnet and see. |
I've not had much luck with the commit you referred to above (git clone https://github.com/jakeswenson/BitBetter.git). This is the one right? Not much luck with dotnet2.2 either :-( Edit: removed references to new issue #20 which is now closed. |
Since your issue with |
Tried again multiple times last night and in a completely new environment (lab at work) with a proper certificate and everything. Still getting the same error message! I cannot for the life of me figure out where the reference to 12.0.0.0 is!
|
Hello mate. I cracked it. I ran Then attempted to generate a licence and it generated one. |
I've played around a bit with this tonight and I can't replicate the same issues that you had. For now I'm just going to file this under Unsolved Mysteries and close it as I'm hoping to automate the dotnet setup anyway. |
I had the exact same issue on a fresh debian 9 install. I cannot provide more informations than @tam481 but his solution is working. |
Hello,
When running
/run.sh /opt/BitBetter/.keys/cert.pfx user aa@bb.com aa@bb.com 12345679
I get the error message at the bottom: (Similar to issue #4)
I followed the instructions and installed
dotnet add package Newtonsoft.Json --version 11.0.0
before running the build.shWhat am I doing wrong?
The text was updated successfully, but these errors were encountered: