Coder Social home page Coder Social logo

unit3d-installer's People

Contributors

hdvinnie avatar poppabear8883 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

unit3d-installer's Issues

Feat: Should confirm abort (trap signals & confirmations to continue)

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.

Problem with HTTP only (for debugging with tcpdump)

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.

MySQL Create User failed during installation

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.

Screen Shot 2019-07-05 at 11 30 24 AM

Certbot Issue

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.

Database DROP

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).

Time-out too soon

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]         

[v1.0.0] certbot renew fails..

certbot renew --dry-run
[===░░░░░░░░░░░░░░░░░░░░░░░░░] (Please Wait ...)
In Process.php line 1160:

The process "certbot renew --dry-run" exceeded the timeout of 180 seconds.

install

Excedeed Timeout

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 ?

No debian.sh

I might be blind, but I dont see debian.sh in this source to install it?

debian 9 install not work

user@xxxxx: git clone .....
user@xxxxx: cd installer
user@xxxxx/installer: ./install.sh
user@xxxxx/installer:

nothing happens :/

Installer feedback

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?

Enable SSL doesn't work as expected

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.

Ubuntu 18.04 Compatibility

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.

Add phpredis

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

E: Package 'debconf-utils' has no installation candidate

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!

Mailer Settings

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.

Repository not found on new Ubuntu 18.04

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

[ERROR] mysql : [ERROR] Found option without preceding group in config file

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

All install process OK but white page after install

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

To sed or not to sed

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 ?

Installer for Ubuntu 20.04

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

After update from 1.8.5 to 1.8.6 Staff Dashboard shows update available

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.

Let's Encrypt - Failed authorization procedure. www.mydomain.com (http-01): urn:ietf:params:acme:error:unauthorized

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.

Installer completes fine DB Connect Errors and 500 error

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.

MySQL Triggers Installation error & terminates

Issue Type

  • Technical Discussion
  • Question

End User Info

-- 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

Expected Behavior:

Actual Behavior:

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.

Steps To Reproduce The Problem:

  1. Doing sudo ./install.sh again
  2. Running through unskippable questions

Possible Fix:

Resumes to install when installer terminates instead of running the whole process again.

Installer Doesn't Set Crontab

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.

This auto installer not works on ubuntu 18.04 LTS 64Bit fresh install.

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!

================================================================================

'nginx': Web Server
'mysql-server': Database Server
'supervisor': A Process Control System
'redis-server': In-memory Data Structure Store
'nodejs': JavaScript Run-time Environment (Includes npm)
'build-essential': Basic C/C++ Development Environment
'git': Version Control
'tmux': Screen Multiplexer
'vim': Text Editor
'wget': Transfer Data From A Server
'zip': Compress Files
'unzip': Decompress Files
'htop': Monitor Server Resources

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)

Don't default to cancel

Do you wish to continue? (yes/no) [no]:

Having no default would be better than defaulting to no.

PHP Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php'

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

Better handling of escape characters

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.

Email activation

hello,
i want to disable email activation and make direct activation. You cand help me?
Thanks!

fresh install on ubuntu 20.04 lts - does not setup owner user in table users

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!

unit3d install v4 0

  1. the tried to login with shown login credentials, does not work, checked database table users, its empty.

  2. when registering a user i got error 500, means registration has not worked.

Sim9CzT

  1. when i import a user into the database an login, same error 500

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.