vitodeploy / vito

The Ultimate Server Management Tool
https://vitodeploy.com
GNU Affero General Public License v3.0
1.06k stars 166 forks source link

Server settings available updates error 500 #210

Closed alexanderzeillinger closed 4 months ago

alexanderzeillinger commented 4 months ago

Describe the bug Shows empty brackets and when I click on "Check" there is an error 500

To Reproduce Steps to reproduce the behavior:

  1. Go to Server Settings
  2. Click on Check

Expected behavior No error

Screenshots image

saeedvaziry commented 4 months ago

@alexanderzeillinger check your storage/logs/laravel.log file

alexanderzeillinger commented 4 months ago

[2024-05-15 19:19:04] production.ERROR: SQLSTATE[HY000]: General error: 1 no such column: updates (Connection: sqlite, SQL: update "servers" set "updates" = 49, "last_update_check" = 2024-05-15 19:19:04, "updated_at" = 2024-05-15 19:19:04 where "id" = 3) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1 no such column: updates (Connection: sqlite, SQL: update \"servers\" set \"updates\" = 49, \"last_update_check\" = 2024-05-15 19:19:04, \"updated_at\" = 2024-05-15 19:19:04 where \"id\" = 3) at /home/vito/vito/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829) [stacktrace]

saeedvaziry commented 4 months ago

Looks like the update command didn't work correctly. do you have the logs of the update script?

if not maybe you can run the update again

alexanderzeillinger commented 4 months ago

I ran the migrations manually, now the missing columns are there, solved.