jaruba / PowderWeb

Modern Bittorrent Client with Web UI and Torrent Streaming Capabilities. Also Supports Acestream / SopCast Live Streams, Youtube-dl Links and Local Files.
https://powder.media/
91 stars 24 forks source link

Installation on Ubuntu Server #71

Closed tnan closed 3 years ago

tnan commented 3 years ago

Hi, I did successfully install and run PowderWeb on Ubuntu Server and access WebUI via http://IP:3000 But it need a user to login, how can create user? or what is default admin user?

I follow "https://github.com/jaruba/PowderWeb/wiki/Guide#creating-a-user" But this is Ubuntu Server, it have no interface! Please help for the installation!

jaruba commented 3 years ago

hi, are u running Docker? there is a discussion here and some Dockerfile examples: https://github.com/jaruba/PowderWeb/issues/39

I never got to publishing it officially though, but it should work fine

tnan commented 3 years ago

I am not running on Docker. I follow the original install with Node and NPM on a fresh Ubuntu Server follow

apt update apt upgrade -y apt install -y curl git unzip curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - apt install -y nodejs wget https://github.com/jaruba/PowderWeb/archive/v0.9.0.zip unzip v0.9.0.zip cd PowderWeb-0.9.0 npm install --force cd public npm install -g bower bower install --allow-root npm run build npm start

Then I able to access PowderWeb via a browser http://IP:3000 But it need user to login. How can I create admin user or login in? or How can I get master key? Please help!

jaruba commented 3 years ago

You are installing the GUI version with those commands, you should try using the headless version.

So let's try to get the headless version running for you:

wget https://github.com/jaruba/PowderWeb/archive/headless.zip
unzip headless.zip
cd PowderWeb-headless
npm install
cd public
bower install
cd ..
npm run build
npm run start-headless

(it's possible that i got the zip name and / or unzipped folder names wrong in this example)

I think the master key should be printed after u run npm run start-headless. Keep in mind that for security reasons the master key changes every time u start Powder Web.

Certain settings can only be changed by the master (which uses the master key), such as setting up Jackett and other advanced settings.

To create a new user, you can increase the setting of maximum users, then go to Powder Web's URL address and there will be a register button available.

tnan commented 3 years ago

I follow your step then I got this error

apt update
apt upgrade -y
apt install -y curl git unzip
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
apt install -y nodejs
wget https://github.com/jaruba/PowderWeb/archive/headless.zip
unzip headless.zip
cd PowderWeb-headless
npm install --force
cd public
npm install -g bower
bower install --allow-root
cd ..
npm run build
npm run start-headless

session.log 2021-01-06T19_35_50_517Z-debug.log

jaruba commented 3 years ago

Huh.. you're getting a peer dependency conflict and npm install stops there instead of installing everything.

$ node --version
v8.12.0
$ npm --version
6.4.1

These are the versions I'm using and it installs fine. Can u try downgrading Node to v8.12.0 (this should also automatically downgrade NPM too)

You can check this page to find how to downgrade Node: https://stackoverflow.com/questions/47008159/how-to-downgrade-node-version

jaruba commented 3 years ago

@tnan did you manage to get it working after downgrading Node.js?

jaruba commented 3 years ago

I am presuming that you managed to install it and closing this issue due to inactivity.

If you still have issues running it on Ubuntu Server you can open the issue again.