-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
"500 Server Error" when creating or editing any asset models or manufacturer #14123
Comments
👋 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. |
Yes, that script will pull from the master branch
Is it?
Did that work? What was the output? What's your output from |
Hello @snipe :)
How do I change the script to use 6.2.3?
drwxrwxr-x. 2 snipeitapp apache 64 Jan 10 14:07 cache
Thanks a lot! |
Oh and I get the same error when I try to open the [Integrations] /admin/slack :( |
It definitely seems like a permissions issue. Can you
and show me the output? Permissions errors can be persnickety and provide confusing error logs because sometimes the issue is that it can't write to the error log itself so it kinda doesn't know what to do with itself when it's having a problem. |
Sure that. ls -al /var/www/html/snipeit/bootstrap
ls -al /var/www/html/snipeit/bootstrap/cache
ls -al /var/www/html/snipeit/storage
ls -al /var/www/html/snipeit/storage/logs
|
Let's try:
I'm not sure your |
I did that and now I cannot access Snipe-IT at all. Error 500. Did a reboot and it's the same. |
I can also install everything from scratch. I've a snapshot with every linux updates installed without Snipe-IT. But I would like to modify the install.sh from wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh so I would target 6.2.3. But I don't know how to achieve this. |
The version on master is stable with important bugfixes, we just haven't tagged the release officially yet. You probably shouldn't complicate anything further TBH. What do your logs say? Can you show me exactly what you ran and what the output was? |
Alright. Thanks for the clarification. I just followed this:
Then I entered a few little things in the linux cmd within the initial setup and opend the browser. This is /var/log/snipeit-install.log:
|
I would hope our own installer handles the SELinux side of things, but just in case we don't (which would be a bug), take a peek here: https://snipe-it.readme.io/docs/linuxosx#notes-on-selinux Also, did you end up configuring mail? When you try to load Snipe-IT, are you getting a server-level 500 (browser-styled) or our styled version of a 500? In a console, try this for a "the sky is blue":
Which should open a tinker prompt. Then type:
Let me know if you see that in your
|
I get the 500 error in Snipe-IT style. Not just plain white background and the error as ugly text :D Just fyi after I did not configured mail. No need for that in the moment. When I run cat /etc/sysconfig/selinux:
I tried to use Artisan:
Yes I see this in storage/logs/laravel.log: |
|
When I turn off SELinux temporarily I can finally work with everything!
|
I just rebooted and SELinux is on again. And I can work as well now :D
|
I want to thank you very much @snipe . I'll close this one for now. Have a great day! |
Debug mode
Describe the bug
Hello,
sadly I get the "500 Server Error" when I try to create or edit any asset models or manufacturer.
Snipe-IT Version: v6.2.4-pre build 12343 (gb23ce6cfc)
PHP Version: 8.0.30
Laravel Version: 8.83.22
Datenbanktreiber: mysql
First of all I have a question. I used this command from the documentation.
wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh
But now I'm running v6.2.4-pre build 12343 (gb23ce6cfc) and not v6.2.3. Is this normal?
I have no clue how to fix all this. A hint would be awesome!
In the debug menu I see this errors:
LOG.error: The /var/www/html/snipeit/bootstrap/cache directory must be present and writable. (View: /var/www/html/snipeit/resources/views/categories/edit.blade.php) {"view":{"view":"\/var\/www\/html\/snipeit\/vendor\/livewire\/livewire\/src\/LivewireComponentsFinder.php","data":[]},"userId":2,"exception":{}}
Reproduction steps
Snipe-IT Version
v6.2.4-pre build 12343 (gb23ce6cfc)
Operating System
Rocky Linux 9.3
Web Server
Apache/2.4.57 (Rocky Linux)
PHP Version
8.0.30
The text was updated successfully, but these errors were encountered: