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 redirects to Login Screen #96

Closed
astupidmoose opened this issue Nov 7, 2018 · 11 comments
Closed

/Install redirects to Login Screen #96

astupidmoose opened this issue Nov 7, 2018 · 11 comments

Comments

@astupidmoose
Copy link

Hello,

I've tried installing twice, and both instances I get stuck when trying to goto the install wizard. I am simply redirected to a login page, but I have no credentials yet.

Is this a known issue?

Using ubuntu 16.04 off a digital ocean base install.

@freescout-helpdesk
Copy link
Contributor

Hi,

So you followed Installation Guide and on step 8. Installing the Application you are being redirected to the login page?

@astupidmoose
Copy link
Author

astupidmoose commented Nov 8, 2018

Yes, correct.

going to mydomain.com/install simply redirects to mydomain.com/login upon installation.

DB is MariaDB. Webserver is Nginx.

Installed via git

@freescout-helpdesk
Copy link
Contributor

freescout-helpdesk commented Nov 8, 2018

Do you see web installer page or it redirects you immediately to the /login?

Try to open:
/install.php
/install?nocache=1

@astupidmoose
Copy link
Author

astupidmoose commented Nov 8, 2018

Both immediately redirect to /login without ever seeing the installer page

Same results for the above

@astupidmoose
Copy link
Author

Not sure if this will help, but i've set debug on and it looks like install is attempted at some point before login:

image

@freescout-helpdesk
Copy link
Contributor

Do you have .env file? If so try to remove it and run:

php artisan freescout:clear-cache

@astupidmoose
Copy link
Author

Yes, I had 3 .env files:

.env
.env.example
.env.travis

I removed all 3 and then was able to visit /install.php where it stated:

Web installer will need to create .env file in the root folder of your application. Please run the following commands in SSH console to allow the web server to write to the root folder:

sudo chgrp freescout /var/www/html
sudo chmod ug+rwx /var/www/html

This is a bit different from the install instructions:

sudo chgrp www-data /var/www/html
sudo chmod ug+rwx /var/www/html

However after running both, I was still seeing the same error.

I manually created a new .env file based on the example one which brought the following into the installer:

Please run the following commands in SSH console:
php artisan key:generate
php artisan freescout:clear-cache

After running this.. It starts redirections to the login screen again :(

@freescout-helpdesk
Copy link
Contributor

2 installation methods have been explained in the guide: https://github.com/freescout-helpdesk/freescout/wiki/Installation-Guide#8-installing-the-application

Web installer is not working because your web server can not create .env file in the root folder (most likely due to permissions issue). So if you can not fix this permissions issue, just follow "8.2 Manual installation": https://github.com/freescout-helpdesk/freescout/wiki/Installation-Guide#82-manual-installation

@astupidmoose
Copy link
Author

What are the proper permissions? They are being set based on the above however it's still not working.

Creating a manual user gives the following errors on creation:
In Connection.php line 452: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'freescout.users' doesn't exist

I'm assuming the web installer would be inserting tables into the database and since this has not been completed then there is no table to add to? The installation steps only creates the raw DB and doesn't seem to create tables.

@freescout-helpdesk
Copy link
Contributor

Yes. Sorry, one instruction is missing in the manual installation:

php artisan migrate

@astupidmoose
Copy link
Author

OK that managed to work.

Still not sure why I couldn't bring up the installer but past that now. Hopefully if others have the same issue they can see this and do manual install

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

No branches or pull requests

2 participants