Description
Debug mode
- I have enabled debug mode
- I have read checked the Common Issues page
Describe the bug
Trying to troubleshoot another issue, but snipeit is not generating any log files in /var/www/snipeit/storage/logs
Reproduction steps
n/a
Expected behavior
Log files being generated as app is used and modified as part of setting up for location
Screenshots
No response
Snipe-IT Version
v6.2.4-pre build 12343 (gb23ce6cfc)
Operating System
Ubuntu 22.04.3 LTS
Web Server
apache2 2.4.52-1ubuntu4.7
PHP Version
php 2:8.1+92ubuntu1
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
snipeit@$server:/var/www/snipeit/storage/logs$ php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Additional context
Fresh install
Version of Snipe-IT you're running. (If you didn't grab an official release, let us know which branch you pulled from.)
v6.2.4-pre build 12343 (gb23ce6cfc)
What OS and web server you're running Snipe-IT on
Ubuntu 22.04.3 LTS
apache2 2.4.52-1ubuntu4.7
What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
Git
If you're getting an error in your browser, include that error.
n/a
What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
n/a
If a stacktrace is provided in the error, include that too.
n/a
Any errors that appear in your browser's error console.
None that I see
Confirm whether the error is reproduceable on the demo.
n/a
Include any additional information you can find in storage/logs and your webserver's logs.
not relevant?
Include what you've done so far in the installation, and if you got any error messages along the way.
Installation is complete, can add users via LDAP, create locations, etc
Indicate whether or not you've manually edited any data directly in the database
No
log folder permissions:
snipeit@server:/var/www/snipeit/storage/logs$ ls -la
total 12
drwxrwxr-x 2 snipeit www-data 4096 Jan 22 14:20 .
drwxrwxr-x 7 snipeit www-data 4096 Jan 19 20:46 ..
-rwxrwxr-x 1 snipeit www-data 14 Jan 19 17:18 .gitignore
trying to see if Apache logs captured anything related to SnipeIT logs folder:
snipeit@$server:/var/www/snipeit/storage/logs$ sudo grep -R /var/log -e "/var/www/snipeit/storage/logs/"
/var/log/auth.log:Jan 23 14:41:45 $server sudo: snipeit : TTY=pts/0 ; PWD=/var/www/snipeit/storage/logs ; USER=root ; COMMAND=/usr/bin/grep -R /var/log -e /var/www/snipeit/storage/logs/
grep: /var/log/journal/0fe10fa460a64fdcbb67653e45114211/user-1000.journal: binary file matches
Also ran script provided on installation website to ensure subfolders have proper permissions:
sudo chown -R snipeit:www-data /var/www/snipeit
sudo usermod -a -G www-data snipeit
sudo find /var/www/snipeit -type f -exec chmod 664 {} ;
sudo chmod -R 775 /var/www/snipeit/storage
sudo chmod -R 775 /var/www/snipeit/public/uploads
sudo chmod -R 775 /var/www/snipeit/bootstrap/cache