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

Cannot edit asset models #12911

Closed
2 tasks done
MattyGroch opened this issue Apr 25, 2023 · 4 comments
Closed
2 tasks done

Cannot edit asset models #12911

MattyGroch opened this issue Apr 25, 2023 · 4 comments
Labels
🚫 not a bug This issue is not a bug

Comments

@MattyGroch
Copy link

Debug mode

Describe the bug

I have created an asset model and when I try to edit the existing model (through /models/1/edit), I am met with a 500 Server Error.

Reproduction steps

  1. Navigate to the asset models page (/models)
  2. Click the edit button on an existing model

Expected behavior

I would expect the asset edit page to load.

Screenshots

No response

Snipe-IT Version

6.1.0

Operating System

Ubuntu 22.04

Web Server

Apache

PHP Version

8.1.2

Operating System

macOS Ventura 13.2.1

Browser

Google Chrome

Version

111.0.5563.146

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

Exception
The /var/www/snipe-it/bootstrap/cache directory must be present and writable. (View: /var/www/snipe-it/resources/views/models/edit.blade.php)
=======================
php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Additional context

This is a brand-new installation. I have configured LDAP and SAML and nothing else. I only started to add asset models just now.

The install is running in AWS on an EC2 instance.

@welcome
Copy link

welcome bot commented Apr 25, 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 Apr 25, 2023

The /var/www/snipe-it/bootstrap/cache directory must be present and writable is the answer. Correct the permissions on that directory and you should be all set.
`

@snipe snipe added the 🚫 not a bug This issue is not a bug label Apr 25, 2023
@snipe snipe closed this as completed Apr 26, 2023
@4kmartin
Copy link

@snipe you moved my ticket here i have verified all files and permissions are correct. this did not work

see screen shot:
image

@4kmartin
Copy link

for those interested and maybe landing here the solution that worked for me is #12313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚫 not a bug This issue is not a bug
Projects
None yet
Development

No branches or pull requests

3 participants