poppabear8883 / unit3d-installer Goto Github PK
View Code? Open in Web Editor NEWProvisioner and Installer for the UNIT3D Torrent Tracker Platform.
Provisioner and Installer for the UNIT3D Torrent Tracker Platform.
Right now its easy to accidentally abort the installer. Ideally we should have a level of confirmation to confirm the user actually wants to abort.
If the installer is in the middle of a process, it should allow that current process to finish before checking
for the abort code.
urn:ietf:params:acme:error:connection :: The server could not connect
to the client to verify the domain :: Fetching
http://www.domainname.com/.well-known/acme-challenge/Dgij10WefTWCrzSKX
2W4bB-BeJa17IK2V1AiEg8ZjE4: Timeout during connect (likely firewall
problem)
Ubuntu 18.04
I realize SSL is the only way to use in a production/public environment. However I installed it, with the installer, in a test/debug private environment and it still redirects to HTTPS after logging in. Where do I need to disable this redirection? Thanks.
Getting an error that it cannot create the unit3d MySQL user during installation. I tried now 3 times with different passwords etc.
Ubuntu 18.04.2 LTS
Is there any way to proceed or anything I can look at to debug?
Also, I tried joining the Discord that is advertised here but it doesn't seem to exist.
Upon using installer. I have noticed this when it uses certbot to get a LetsEncrypt Cert.
Output
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel):
It seems the installer is selecting 1
in the background when in fact it should be 2
.
can i install on debian 9 ?
Hi everyone, so I want to apologise right away because I don't have the exact error message on me - we had a power outage last night and I lost the terminal page... Anyway, the error was along the line of "database DROP didn't work/wasn't possible because it doesn't exist" or something very close to that.
It was the only error too, 192.168.1.99 took me to the login page but I got an error when logging in (the /login page didn't exist apparently).
query cache is deprecated since MySQL v8:
https://dev.mysql.com/doc/refman/5.7/en/query-cache.html
This causes the MySQL Server to fail on service start.
There's no way to continue / retry the installation of a step fails, is there?
In Process.php line 1160:
The process "su www-data -s /bin/bash --command="cd /var/www/html && npm run prod"" exceeded the timeout of 360 seconds.
install
olaf@ubuntu:~/installer$
olaf@ubuntu:~/installer$ sudo su www-data -s /bin/bash --command="cd /var/www/html && npm run prod"
> @ prod /var/www/html
> npm run production
> @ production /var/www/html
> cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
DONE Compiled successfully in 462321ms 10:45:28
Asset Size Chunks Chunk Names
/css/app.css 314 KiB 0 [emitted] [big] /js/app
/css/main/login.css 12.1 KiB 0 [emitted] /js/app
/css/main/twostep.css 427 bytes 0 [emitted] /js/app
/css/themes/dark-blue.css 5.1 KiB 0 [emitted] /js/app
/css/themes/dark-green.css 5.1 KiB 0 [emitted] /js/app
/css/themes/dark-pink.css 5.1 KiB 0 [emitted] /js/app
/css/themes/dark-purple.css 5.1 KiB 0 [emitted] /js/app
/css/themes/dark-red.css 5.1 KiB 0 [emitted] /js/app
/css/themes/dark-teal.css 5.1 KiB 0 [emitted] /js/app
/css/themes/dark-yellow.css 5.1 KiB 0 [emitted] /js/app
/css/themes/galactic.css 9.78 KiB 0 [emitted] /js/app
/js/app.js 3.9 MiB 0 [emitted] [big] /js/app
/js/app.js.LICENSE 2.86 KiB [emitted]
/js/unit3d.js 29 KiB [emitted]
certbot renew --dry-run
[===░░░░░░░░░░░░░░░░░░░░░░░░░] (Please Wait ...)
In Process.php line 1160:
The process "certbot renew --dry-run" exceeded the timeout of 180 seconds.
install
I try to install UNIT3D use automate installer on my VirtualBox - Ubuntu Server
but when run command "su www-data -s /bin/bash --command="cd /var/www/html && npm run prod""
The time is exceeded...
What i must do ?
I might be blind, but I dont see debian.sh in this source to install it?
user@xxxxx: git clone .....
user@xxxxx: cd installer
user@xxxxx/installer: ./install.sh
user@xxxxx/installer:
nothing happens :/
mysql -e "CREATE USER 'unit3d'@'localhost' IDENTIFIED BY '123';"
[============================] (Done!)
[ERROR] ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'unit3d'@'localhost'
Maybe it should be dropped before it's created, like the databases.
It is STRONGLY advised to set a DB Server Root Password.
DB Server Root Password []:
> 123
Could it default to a randomly generated password?
Maybe it doesn't even need to ask.
API Keys
================================================================================
Obtaining an TMDB Key:
* Visit https://www.themoviedb.org/
* Create Free Account
* Visit https://www.themoviedb.org/settings/api
TMDB Key []:
> 1
Is this really necessary for a quick dev setup?
Issue with the conditional statement and set value for ssl
config setting.
Tries to install SSL cert even if you choose no ssl
at the prompt.
Hi,
I got this error: ./ubuntu.sh: line 42: php: command not found
Ubuntu 16.04
need to add igdb too .env stub
and have installer ask for key.
In my opinion its 2018 and we shouldn't even give the end-user a option to NOT use SSL.
Hi there,
I'm using a dedicated server with Debian 9.
On a fresh install doing:
git clone https://github.com/poppabear8883/UNIT3D-INSTALLER.git installer
cd installer
sudo ./install.sh
give nothing. it seems the script don't run at the end.
is it because Debian 9 is not supported?
The install.sh is supposed to detect it is Debian, then run the debian.sh (But no debian.sh)
Thank you
During the install process steps of Configuring & Securing
Database a error occurs which appears to be a issue on Ubuntu 18.04.
The error occurs right after the mysql_install_db
step.
[ERROR] 2018-08-04 16:35:36 [ERROR] The data directory needs to be specified.
Hello,
Everything appeared to be installed without any issue on my server and right after did reboot of the server and I'm getting this when I visit server address:
The environment file is invalid: Dotenv values containing spaces must be surrounded by quotes.
This is on fresh copy of Ubuntu server 18.04.1
This is will be needed for future UNIT3D-Community-Edition release. Predis is deprecated.
pecl install redis
and adding extension=redis.so to /etc/php/7.4/fpm/php.ini
Hello,
I'm on fresh install of Ubuntu 18.04.1 LTS and when I ran the installer I got this:
admin@ubuntu_test:~$ git clone https://github.com/ServNX/UNIT3D-INSTALLER.git
Cloning into 'UNIT3D-INSTALLER'...
remote: Counting objects: 173, done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 173 (delta 70), reused 155 (delta 52), pack-reused 0
Receiving objects: 100% (173/173), 39.88 KiB | 7.98 MiB/s, done.
Resolving deltas: 100% (70/70), done.
admin@ubuntu_test:~$ ls
UNIT3D-INSTALLER
admin@ubuntu_test:~$ cd UNIT3D-INSTALLER
admin@ubuntu_test:~/UNIT3D-INSTALLER$ ls
artisan box.json composer.json composer.lock install.sh phpunit.xml README.md src tests tools ubuntu.sh
admin@ubuntu_test:~/UNIT3D-INSTALLER$ sudo ./install.sh
Preparing Environment For The Installer ...
=============================================
Adding PPA Repositories ...
OK
Updating Packages ...
OK
Installing PHP ...
E: Package 'debconf-utils' has no installation candidate
OK
Installing Composer ...
./ubuntu.sh: line 32: php: command not found
sudo: php: command not found
OK
Adding Installer Packages ...
OK
Launching The Installer ...
=============================================
./ubuntu.sh: line 42: php: command not found
Line 42 in ubuntu.sh has php artisan install
Did I miss something? Do I still have to manually install all of prerequisites from here https://github.com/HDInnovations/UNIT3D/wiki/Manual-Install ?
Thanks!
It would be nice if the installer handled setting up the MAIL info within the .env
like it does for the API keys.
Mail Settings (Used for things like invites, registration, ect.)
/* You will need a provider like torguard. https://torguard.net/anonymous-email.php */
MAIL_DRIVER=smtp
MAIL_HOST=stealth.tg
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=TLS
MAIL_FROM_NAME=SITENAMEHERE
[email protected]
Mail settings test should ask for following info above and if possible fire a test email to make sure it works before moving to next step.
To accomplish that we could add a simple artisan command to test the Laravel mail configuration.
Working on a second fresh install for this. Currently trying a fresh install of Ubuntu 18.04LTS from their website. After the installer finishes setting up UFW it fails at this line in the installer.
git clone --single-branch --branch development https://github.com/HDInnovations/UNIT3D-HiFi.git /var/www/html
[ERROR] Cloning into '/var/www/html'... remote: Repository not found. fatal: repository 'https://github.com/HDInnovations/UNIT3D-HiFi.git/' not found
Hello, first of all thank you for your work.
I have an error message while creating the database:
"[ERROR] mysql : [ERROR] Found option without preceding group in config file
/root/.my.cnf at line 1!
mysql: [ERROR] Fatal error in defaults handling. Program aborted!"
In advance, thank you for your reply
Titeuf
First of all, we apologize for the my bad English, using translator to write.
After several repeated reinstallations and new installations, i got it installed without any problems
. Now when I open the address https://omade.link i see a white page.
my ping test
--- www.omade.link ping statistics ---
81 packets transmitted, 81 received, 0% packet loss, time 177ms
rtt min/avg/max/mdev = 42.838/47.606/73.914/4.265 ms
How i can fix it and see own new web?
Fresh install ubuntu 18.04
sed -i 's/;date.timezone =/date.timezone = UTC/g' /etc/php/7.4/cli/php.ini
Wouldn't it be simpler to put all local conf in /etc/php/7.4/cli/conf.d/90-local.ini ?
Hi,
trying fresh install on vps ubuntu 20.04 keep getting this error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
any help welcome
cheers Loud
Did update to 1.8.6 with php artisan git:update
and it went well. When I went to Staff Dashboard it was showing 1.8.5 was installed and that there's 1.8.6 available. Per xI Poppabear config/unit3d.php
was never updated. Running git fetch origin && git checkout origin/master -- config/unit3d.php
fixed the issue.
Hello,
So I ran into few more inconsistencies with how I setup my website initially so I decided to start over. Everything went well up to this point:
rm -rf /etc/nginx/sites-available/default
[â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘] (Done!)
ufw allow 'Nginx Full'
[============================] (Done!)
ufw delete allow 'Nginx HTTP'
[============================] (Done!)
ufw allow 6001
[============================] (Done!)
systemctl restart nginx
[â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘] (Done!)
apt install -y python-certbot-nginx
[============================] (Done!)
certbot --redirect --nginx -n --agree-tos [email protected] -d mydomain.com -d www.mydomain.com
[============================] (Done!)
[ERROR] Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mydomain.com
http-01 challenge for www.mydomain.com
nginx: [warn] conflicting server name "mydomain.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.mydomain.com" on 0.0.0.0:80, ignored
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. www.mydomain.com (http-01): urn:ietf:params:acme:error:unauthorized :: The
client lacks sufficient authorization :: Invalid response from
http://www.mydomain.com/.well-known/acme-challenge/_HHkp8CaeZ969yVWi6l0LkcN87R3DhFZhHyMbyLLhy4: "<html>
<hr><center>", mydomain.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks
sufficient authorization :: Invalid response from
http://mydomain.com/.well-known/acme-challenge/Jw-hSjDNra-iSI7s4R3-jEQVMhPBO_VCueH8KCjScEM: "<html>
<hr><center>"
myusername@bt:~/UNIT3D-INSTALLER$
The site does not work so I assume it did not finish installing.
Installed on a clean Ubuntu 18.04 VM (kvm) and install went fine. On visiting the URL tosses a 500 error.
/var/log/nginx/error.log shows:
root@cryptorrents:/var/www/html# tail -f /var/log/nginx/error.log #1 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(327): Doctrine\DBAL\Driver\PDOConnection->prepare('select
id,
n...')
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(658): Illuminate\Database\Connection->Illuminate\Database{closure}('select id
, n...', Array) #3 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(625): Illuminate\Database\Connection->runQueryCallback('select
id,
n...', Array, Object(Closure))
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(334): Illuminate\Database\Connection->run('select i...PHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'unit3d.pages' doesn't exist in /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:61 Stack trace: #0 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(61): PDO->prepare('select
id,
n...', Array)
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(327): Doctrine\DBAL\Driver\PDOConnection->prepare('select id
, n...') #2 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(658): Illuminate\Database\Connection->Illuminate\Database\{closure}('select
id,
n...', Array)
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(625): Illuminate\Database\Connection->runQueryCallback('select id
, n...', Array, Object(Closure)) #4 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(3
Before this is was complaining about the connect to unit3d@localhost being denied, I went in and manually set the users pass in Mysql to match what the script reported at end of install and it seems to have cleared that issue up.
add this intaller install with unit3d (user can install or no ) web open free control panel like isp, webmin or other
-- UNIT3D Version: Latest
-- Laravel Version: Latest
-- PHP Version: 7.2
-- Database Driver & Version:
MySQL, Latest
-- Web Server Driver & Version:
Latest
-- OS Driver and Version:
Ubuntu 19.04
Ubuntu 18.04
Automated installer terminates with MySQL "data directory needs to be specified"
18.04 Behaviour:
mysqladmin: [Warning] Using a password on the command line interface can be
insecure.
Warning: Since password will be sent to server in plain text, use ssl connection
to ensure password safety.
Resumes to install when installer terminates instead of running the whole process again.
As per manual instructions:
Add * * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1 to crontab.
/path/to/artisan becomes whatever directory you put the codebase on your server.
Example * * * * * php /var/www/html/artisan schedule:run >> /dev/null 2>&1
I believe this was just overlooked.
Thanks @D0rk from Discord!
Hi,
This auto installer not works. Im fresh install ubuntu 18.04 LTS 64bits. I've already tried 10+ times and the installation always ends with the same error
About a month ago, the installation was great for the same server.
My server conf is:
VPS
CPU: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz, 2 cores
RAM: 4GB
HDD: 300 GB SSD-boosted
OS: Ubuntu 18.04 (64 Bit) Fresh re-install over Customer Control Panel. I guess that's what it means( Template OS from a provider).
Could there be a problem with that?
--
Prerequisites
!! WARNING !! We are preparing to install software on your server. Please review and confirm!
================================================================================
Do you wish to continue? (yes/no) [no]:
yes
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
[============================] (Done!)
apt-get install -y nginx mysql-server supervisor redis-server nodejs build-essential git tmux vim wget zip unzip htop
[============================] (Done!)
[ERROR] E: Sub-process /usr/bin/dpkg returned an error code (1)
mysql -e "DROP DATABASE IF EXISTS unit3d"
[░░░░░░░░░░░░░░░░░░░░░░░░░░░░] (Done!)
mysql -e "DROP DATABASE test"
[============================] (Done!)
[Warning] ERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist
Do you wish to continue? (yes/no) [no]:
Having no default would be better than defaulting to no
.
Hello,
I downloaded the installer on a fresh install of Ubuntu 16.04.4, everything went well during the install process, but once it's finished my unit3d instance doesn't display CSS, and this warning / error is shown on the supervisor logs of unit3d-queue:unit3d-queue_00 and unit3d-queue:unit3d-queue_01 :
PHP Warning: require(/var/www/html/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/artisan on line 1
then PHP Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/ usr/share/php') in /var/www/html/artisan on line 18
(Warning then error)
Do you have any idea ?
Thanks
EDIT : I tried again this time with a domain name and choosing HTTPS, the server is running, but the error is still there
This is not a bug, but maybe this issue should be handled automatically if the locale is non-UTF8 ?
Ref issue oerdnj/deb.sury.org#56 (comment)
The script should handle certain characters better, such as using the "&" symbol in the mysql password seems to break and escape the command the script runs resulting in an error.
Maybe have certain variables be put in quotes or graves to help combat this.
hello,
i want to disable email activation and make direct activation. You cand help me?
Thanks!
During the install process steps of Validating Installer Policies this error appears on Ubuntu 16.04 and 18.04.
PHP Notice: Undefined offset: 0 in /root/UNIT3D-INSTALLER/src/Helpers/helpers.php on line 133
Unsupported GNU/Linux distribution
Need more validation for user input, right now its easy to put in invalid values and should be more explicit on what the input should be.
Server Name [ubuntu]:
> ubun^H^H^H^[[3~^[[3~^H^H^H
The FQDN for this server [ubuntu]:
> http://^H^H^H^H^H^H^H^H
i have 414 Request-URI Too Large when I add www. to my domain
TODO
used a fresh ubuntu 20.04 install.
after the install i got 2 warnings, no error at all.
su www-data -s /bin/bash --command="cd /var/www/html && php artisan migrate --seed"
[============================] (Done!)
[Warning]
su www-data -s /bin/bash --command="cd /var/www/html && php artisan test:email"
[============================] (Done!)
[Warning]
[OK] Done!
the tried to login with shown login credentials, does not work, checked database table users, its empty.
when registering a user i got error 500, means registration has not worked.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.