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

"One line installer" does not work on Ubuntu 20.04 and 22.04 #2

Open
tannerdsilva opened this issue Dec 10, 2022 · 13 comments · Fixed by #3
Open

"One line installer" does not work on Ubuntu 20.04 and 22.04 #2

tannerdsilva opened this issue Dec 10, 2022 · 13 comments · Fixed by #3

Comments

@tannerdsilva
Copy link

tannerdsilva commented Dec 10, 2022

Hello.

Recently tried launching one of these price nodes for CakeWallet, and I came across some issues.

On Ubuntu 22.04: there are interactive prompts that ask "which systemd services should be restarted" when new packages are installed. These prompts are not handled properly in the script, and prevent the script from finishing.

After discovering this, I tried the script on Ubuntu 20.04 (which does not have these prompts). The script went much further, however, still fell short of completing.

Without posting the entire output, the script failed at this point:

BUILD SUCCESSFUL in 4m 13s
38 actionable tasks: 38 executed
[*] Installing haveno-pricenode systemd service
install: cannot stat '/haveno/haveno-pricenode/scripts/haveno-pricenode.service': No such file or directory

These failures prevent the "one line installer" from working as promised.

@tannerdsilva tannerdsilva changed the title " "One line installer" does not work on Ubuntu 20.04 and 22.04 Dec 10, 2022
@woodser woodser reopened this Dec 11, 2022
@woodser
Copy link

woodser commented Dec 11, 2022

@tannerdsilva #3 should fix the install script. Please try again with the latest commit to main and let me know if there is any problem. Thanks.

@woodser
Copy link

woodser commented Dec 12, 2022

@tannerdsilva

We would really appreciate deployment of the new server as soon as possible, since we have a list of dependencies awaiting its availability, including updating the client code which depends on it, and then docker support and Continuous Integration (CI) tests.

@tannerdsilva
Copy link
Author

Thanks for the update. Tried the one-liner in the README again this morning (in a rush) and realized some hours later that your HTTP cache does not actually reflect the latest commit on master. This should have been obvious to me.

Trying again with an actual clone of the repo - will update you in the morning on the results. Script running as I write...

@tannerdsilva
Copy link
Author

Same issue still. From commit hash e9994ee03a1e762a94afba8eceee5cac57fca479 on a fresh Ubuntu 20.04:

BUILD SUCCESSFUL in 4m 26s
38 actionable tasks: 38 executed
[*] Installing haveno-pricenode systemd service
install: cannot stat '/haveno/../haveno-pricenode/scripts/haveno-pricenode.service': No such file or directory

@woodser
Copy link

woodser commented Dec 13, 2022

Do you have the haveno-pricenode project in the same parent directory as the haveno project?

@tannerdsilva
Copy link
Author

I'm just starting on a fresh system (nothing installed), cloning haveno-pricenode into the root home folder, and running the script in place.

/root/haveno-pricenode

@woodser
Copy link

woodser commented Dec 13, 2022

Ok. Please try cloning the haveno project to the same directory. That may resolve the error.

@tannerdsilva
Copy link
Author

Same result.

@woodser
Copy link

woodser commented Dec 13, 2022

You cloned the repository using the recursive option?

git clone --recursive https://github.com/haveno-dex/haveno-pricenode.git

@tannerdsilva
Copy link
Author

Yes, same result.

BUILD SUCCESSFUL in 4m 15s
38 actionable tasks: 38 executed
[*] Installing haveno-pricenode systemd service
install: cannot stat '/haveno/../haveno-pricenode/scripts/haveno-pricenode.service': No such file or directory

@woodser
Copy link

woodser commented Dec 13, 2022

What did you need to do to clear the HTTP cache? I need to do the same.

@woodser
Copy link

woodser commented Dec 14, 2022

I found and fixed the issue. A couple scripts just needed to be renamed.

I force pushed the fix to main since it took some experimentation which I want to remove from the commit history, so please git reset --hard d89effc80bf24f95d7e9673324ab85a5ab9205e1, the latest commit on main.

Please run on Ubuntu 22.04 which is preferred over 20.04 for future updates. Might just need to run the one-liner with sudo to bypass any prompts:

sudo curl -s https://raw.githubusercontent.com/haveno-dex/haveno-pricenode/main/scripts/install_pricenode_debian.sh | sudo bash

Thanks, should be good to deploy now.

@woodser
Copy link

woodser commented Dec 15, 2022

@tannerdsilva Any updates?

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

Successfully merging a pull request may close this issue.

2 participants