-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
Clear logs? #469
Comments
This will clear the log database. |
from the UI there should be a button to remove the |
There is... but my table grow so big that the web page timed out before any log was shown... and the button did not work i guess for the same reason. At that point, i cleared the table from phpmyadmin,... Good to know the artisan command.. Still would be useful to prevent this situation. Also, logging on database seems... odd. Is there a reason a normal file is not used? For example i cannot parse the database with logcheck. |
Well the initial Lychee was logging on Database, we did not change that. Also it is easier to retrieve and manage than files... Laravel do logs their error in files but the problem is that it is then quite hard to read and it is more dev oriented... |
There is also another way but not advertised. 😇 (Sorry) If you are logged in as admin and you go to https://example.com/api/Logs::clear (GET request) it will do the same as |
Yes but a growing log in a database can be a problem. I do backups, of course who don't, of my server, and 116mb of log was a bit strange, indeed the Lychee mysql backup was even bigger than my NextCloud instance backup, weird. Maybe it was so big because i have debug enabled? Indeed not a major issue at all, but my guess something should be considered. |
That is really surprising... My log database is 4 Mio (14 400 lines) and I have 12 155 lines in my Photo table. |
You should have a look what are the warnings in it. I find this pretty strange. |
i had over 250K lines... My guess is most where due to the various "upgrades" i did from Lychee 3 to Lychee 4 and then to git build... then i forgot composer install and artisan migrate.. All things considered... I am sorry i deleted the rows before actually saving them.. I could fetch yesterday backup and check if you think it's important |
Also, you can just do |
Nah it should be fine, you can just upload new pictures, if something is wrong you will see warnings poping up again. :) |
Did the upgrade from v3 to v4 went smoothly ? |
I now have this little upgrade script:
Might be interesting for other users. |
I would add a Happy to hear that the upgrade went painlessly. 🎉 |
I prefer not to, for security reasons... I have my "storage" and "public/upload" folders assigned to group "apache" with g+w permissions... So far it seems to be enough... is it? |
oh sure. :) that was if you wanted to make the update directly from the GUI. :) |
Is it possible to do the update directly from the GUI? How? |
You go to If it breaks (error 500) you can still go back to command line and do your There are some securities that you need to disable via the advanced settings menu:
The second one is really optional if updates don't need the composer (like 90% of the time) then it can just stay at Hidden tip: to quickly make the login dialog show, you can just press |
My lychee installation has a huge logs table in the database... I mean over 115mb when exported. Is possible to have a way to limit log size or purge/clear from UI?
The text was updated successfully, but these errors were encountered: