-
-
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
No log files being created in /storage/logs folder #14152
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. |
Anyone have any ideas? Or is there any commands I could run to produce more data? |
What is the output if you run:
And also:
|
Seems the Snipe-IT user didn't have access to the lavaral.log folder. Might have sorted it out: snipeit@$server:
snipeit@$server:/var/www/snipeit$ cd /var/www/snipeit/storage/logs/
snipeit@$server:/var/www/snipeit$ cat /var/www/snipeit/storage/logs/laravel.log | tail |
have any one found out the solution... |
No log files produced in the docker container either. (Context: trying to debug SAML issues) |
Having same issue with Ubuntu 22.04 |
I'm getting some things now, but since the logs don't induce a timestamp, I can only go off the output of "ls-la". snipeit@cqv015x:~$ ls -la /var/www/snipeit/storage/logs/laravel.log Last few entires: |
Debug mode
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
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
The text was updated successfully, but these errors were encountered: