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

Error 500: creating categories and asset models page #13714

Closed
2 tasks done
cjhudlin opened this issue Oct 5, 2023 · 5 comments
Closed
2 tasks done

Error 500: creating categories and asset models page #13714

cjhudlin opened this issue Oct 5, 2023 · 5 comments

Comments

@cjhudlin
Copy link

cjhudlin commented Oct 5, 2023

Debug mode

Describe the bug

hello,
i have a completely clean install and i have reinstalled the OS and application multiple times, but now i am at a loss as to what is the problem here..
I receive this Error 500 window when clicking either create asset model or create category. the issue seems to be the same as a lot of other users: Exception
The /var/www/html/snipeit/bootstrap/cache directory must be present and writable.

i have check the permissions of the cache file:
drwxrwxr-x. 2 snipeitapp apache 46 Oct 5 17:23 cache

and during install, it is also noted that the cache directory IS wirtable. i am also able to create directories and files under the cache folder

thank you for the help

Reproduction steps

  1. install snipeIT via the "wget" command in the instructions document and go to relevant web pages

...

Expected behavior

for the application to work as intended

Screenshots

image

image

image

Snipe-IT Version

v6.2.1 build 11625

Operating System

centOS stream 8 (vmware)

Web Server

apache

PHP Version

7.4.33

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

@welcome
Copy link

welcome bot commented Oct 5, 2023

👋 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 Oct 5, 2023

If that's what the error is, it's still unable to write to the bootstrap and bootstrap/cache directory (and any subdirectories). maybe check and see if you have SELinux enabled. https://snipe-it.readme.io/docs/linuxosx#notes-on-selinux

Snipe-IT Documentation
Setting up a web server can sound daunting for folks who don't normally do that kind of thing. This guide will help you walk through the configuration for Apache or Nginx on Linux and OSX.Using ApacheThe most common setup for Snipe-IT on a linux server is to use Apache, so if you're not sure what to...

@cjhudlin
Copy link
Author

cjhudlin commented Oct 5, 2023

thank you for your reply. it seems i have it enabled:

image

@cjhudlin
Copy link
Author

cjhudlin commented Oct 5, 2023

it seems i have resolved the issue by running:

semanage fcontext -a -t httpd_sys_rw_content_t "/srv/snipeit/storage(/.)?"
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/snipeit/bootstrap/cache(/.
)?"
restorecon -RF /srv/snipeit/storage
restorecon -RF /var/www/html/snipeit/bootstrap/cache

as root :)

Thank you!

@snipe
Copy link
Owner

snipe commented Oct 5, 2023

Glad 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