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

Install command hanging on fresh install #318

Closed
bbashy opened this issue Feb 23, 2017 · 5 comments
Closed

Install command hanging on fresh install #318

bbashy opened this issue Feb 23, 2017 · 5 comments

Comments

@bbashy
Copy link
Contributor

bbashy commented Feb 23, 2017

Expected behaviour

Completion of the install command

Actual behaviour

Hangs on whatever is at this point. Pressing enter after 10 minutes made it continue on to database migrations.

Writing configuration file
Generating JWT key
Generating application key

Pressing enter

Generating application key
**had to press enter here**
Running database migrations

Migration table created successfully.
Migrated: 2014_10_12_000000_create_users_table

Steps to reproduce

Clone and install via steps.

Environment info

Operating System: Debian Jessie 8.7
PHP Version: 7.0.16
Node Version: 7.6.0
Database System: MariaDB
Database Version: 10.1, so MySQL 5.5 I believe

Logs (see storage/logs/) or other output that would be helpful

(If logs are large, please upload as attachment).

@bbashy
Copy link
Contributor Author

bbashy commented Feb 23, 2017

This part of the install script just hangs and doesn't generate the application key https://github.com/REBELinBLUE/deployer/blob/master/app/Console/Commands/InstallApp.php#L531-L532

I still had SomeRandomString in .env after it said it had completed.

@REBELinBLUE
Copy link
Owner

Very odd, I shall set up a debian VM and try it out

@bbashy
Copy link
Contributor Author

bbashy commented Feb 23, 2017

Yeah strange, tried it multiple times as well.

FYI: running the php artisan key:generate command worked fine.

@REBELinBLUE
Copy link
Owner

ok managed to recreate the issue >_<

@REBELinBLUE
Copy link
Owner

Looks like the default environment has changed in laravel at some point so that if it isn't set it defaults to production rather than local. When running the installer the environment isn't set at first and I call key:generate silently so as the environment is production it waits for confirmation. Changed it to call key:generate with the --force parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants