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

Installation fails even though key has been set #75

Closed
nickbe opened this issue Oct 31, 2018 · 14 comments
Closed

Installation fails even though key has been set #75

nickbe opened this issue Oct 31, 2018 · 14 comments

Comments

@nickbe
Copy link

nickbe commented Oct 31, 2018

The installer runs until the end. But then all I get is: Something went wrong.
Debug output is:

ErrorException (E_ERROR)
Undefined variable: dbMessage (View: /var/www/freescout.xxxxxxxxxxxxx/html/resources/views/vendor/installer/finished.blade.php)

@freescout-helpdesk
Copy link
Contributor

Issue has been fixed. Please remove all files from /var/www/freescout.xxxxxxxxxxxxx/html/, download updated application https://github.com/freescout-helpdesk/freescout and run installation process again.

@nickbe
Copy link
Author

nickbe commented Oct 31, 2018

Will try this evening :) Thanks

@nickbe
Copy link
Author

nickbe commented Oct 31, 2018

Ok, the installer worked now :) Thanks for that.
But the css is not loaded at all:
grafik

@freescout-helpdesk
Copy link
Contributor

freescout-helpdesk commented Nov 1, 2018

Are you using nginx or apache?
Can you check error message for css file in browser console?

@freescout-helpdesk
Copy link
Contributor

Also make sure that web server user is able to write (at least 755 permissions) to the following folders:

  • /public/css/builds
  • /public/js/builds

@nickbe
Copy link
Author

nickbe commented Nov 1, 2018

I just found out that this has to do something with the .htaccess cache settings in exaxtly those two folders. It seems that on the first run the two .css and .js files a generated, but then they won't get loaded. As soon as I simply comment out the settings in the .htaccess files it works immediately.

@freescout-helpdesk
Copy link
Contributor

@nickbe
Copy link
Author

nickbe commented Nov 1, 2018

The only line in /public/css/builds and /public/js/builds where the cache settings are done

@freescout-helpdesk
Copy link
Contributor

This one https://github.com/freescout-helpdesk/freescout/blob/dist/public/css/builds/.htaccess
It is strange. This is standard Laravel configuration used in all Laravel projects.
Probably there is some server misconfiguration or browser issue.

@nickbe
Copy link
Author

nickbe commented Nov 1, 2018

I tested this on multiple browsers and on two different server installations (one virtual). Same problem on both servers.

@freescout-helpdesk
Copy link
Contributor

What error do you see in browser console for CSS and JS in /public/css/builds and /public/js/builds? Is it 404 error?

Do you have files requested on page in builds folders?

Are you using CloudFlare or similar systems?

@nickbe
Copy link
Author

nickbe commented Nov 2, 2018

When I enter the path to the css/js files manually then all I get is a server misconfiguration error, which disappears immediately after comment out the cache option from the .htaccess file.
Servers are root servers under Debian

@freescout-helpdesk
Copy link
Contributor

Thank you. Replace content of the .htaccess files with (we will add it to the next release):

<FilesMatch "\.(css|js)$">
    <IfModule mod_headers.c>
    	Header set Cache-Control "max-age=172800, public, must-revalidate"
    </IfModule>
</FilesMatch>

@nickbe
Copy link
Author

nickbe commented Nov 2, 2018

Ok. Now it seems to work. Thanks.

@nickbe nickbe closed this as completed Nov 2, 2018
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