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

Pre-flight not loaded, 403 instead when installing on plesk #15233

Closed
2 tasks done
Dejv92 opened this issue Aug 7, 2024 · 8 comments
Closed
2 tasks done

Pre-flight not loaded, 403 instead when installing on plesk #15233

Dejv92 opened this issue Aug 7, 2024 · 8 comments

Comments

@Dejv92
Copy link

Dejv92 commented Aug 7, 2024

Debug mode

Describe the bug

When trying to install Snipe-it to a webserver running plask webhosting service (I am admin so I cat set and allow all possible parameters, not restricted by any webhosting company), I am stucked after succesfully install dependencies I also generate key succesfully.
I strugle with last step - Pre-Flight & Setup. When trying to access page, I get an error:

Forbidden

You don't have permission to access this resource.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Tryied advices from Installation/Upgrading Issues like cleaning cache etc...

Log from plesk is attached.
snipeit 2024-08-07 112351

Web root is set to ./public folder (almost sure this is set up correctly).

Reproduction steps

  1. Upload Snipeit to plesk server
  2. configure .env
  3. install dependencies
  4. generate app key
  5. try to open Pre-flight, no success
    ...

Expected behavior

Pre-flight show instead so 403 and additionally 500 error.

Screenshots

Snímek obrazovky 2024-08-07 113222

Snipe-IT Version

7.0.10

Operating System

Alma linux 9.4

Web Server

Apache (can go to nginx)

PHP Version

8.2.21

Operating System

Windows 11

Browser

Firefox

Version

128.0.3

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

Forbidden

You don't have permission to access this resource.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

HTTP status code in network console is 403.

Additional context

No response

Copy link

welcome bot commented Aug 7, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@snipe
Copy link
Owner

snipe commented Aug 7, 2024

I think you'll probably have to tweak your mod security settings

@Dejv92
Copy link
Author

Dejv92 commented Aug 7, 2024

Thanks! I temporarily turn mod security off (just for page reload) and now I got a 500 error and this:

snipeit 2024-08-07 114837

file database.sqlite does not exists (not sure when it should be created)

additional errors
Using ${var} in strings is deprecated, use {$var} instead in /var/www/vhosts/snipeit.xxxxxx.cz/app/Models/License.php on line 188

Using ${var} in strings is deprecated, use {$var} instead in /var/www/vhosts/snipeit.xxxxxxxx.cz/app/Models/License.php on line 220

@snipe
Copy link
Owner

snipe commented Aug 7, 2024

You're need to create the sqlite file if that's what you're going to try to use. You should note that we don't officially support sqlite though, so you may run into some weird issues.

@Dejv92
Copy link
Author

Dejv92 commented Aug 7, 2024

So when I want MySQL (MariaDB) I made an mistake in .env file? When I generate an app key, all infos from .env file is gone (now there is sqlite and I dont know why), I dont know how this works, if it was tranfasered to other conf files or if it is not intended behavior. I am almost sure I used MySQL in file originaly :/ Should I try to change this file again or do whole instalation again from skretch?

@snipe
Copy link
Owner

snipe commented Aug 7, 2024

The only thing we do when you generate that key is change the actual app key itself, we don't reset any of your other settings.

@Dejv92
Copy link
Author

Dejv92 commented Aug 7, 2024

Looks like some built-in tool in plesk totaly changed .env file, after I changed it back (preserved only app key), it now worsk even with Mod security on.

Thanks!

@Dejv92 Dejv92 closed this as completed Aug 7, 2024
@snipe
Copy link
Owner

snipe commented Aug 7, 2024

Excellent - glad to hear you're sorted!

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