Commit Graph

18207 Commits

Author SHA1 Message Date
Girish Ramakrishnan d857ca46e0 test: add more system tests 2025-07-20 10:25:33 +02:00
Girish Ramakrishnan 0e3cc97ee6 system: use last mountpoint like before 2025-07-20 10:18:06 +02:00
Girish Ramakrishnan 66107cf7a4 system: make filesystem return value an array
Filesystem of df output is not unique
2025-07-20 10:06:01 +02:00
Girish Ramakrishnan 1e8df5c9d0 system: check if mountpoint is array 2025-07-19 13:06:50 +02:00
Girish Ramakrishnan 4f608bdc5f Fix tasks test 2025-07-18 20:55:54 +02:00
Johannes Zellner 3da1bae826 Add a way to disable/enable app configure views based on task error 2025-07-18 20:50:10 +02:00
Girish Ramakrishnan 48559d3358 tasks: distinguish runtime crash vs task error in worker 2025-07-18 20:02:06 +02:00
Girish Ramakrishnan 5d8871a044 boxerror: remove usage of Object.assign 2025-07-18 19:33:34 +02:00
Girish Ramakrishnan a684fadf43 metrics: fix crash 2025-07-18 19:32:04 +02:00
Johannes Zellner 8c858c6b1e First check for app updates on the backend then fetch updates 2025-07-18 18:13:42 +02:00
Girish Ramakrishnan 7e0803c4b4 clean up task locks 2025-07-18 18:12:07 +02:00
Johannes Zellner 697b42c70f Set max-height for app backup listing 2025-07-18 17:58:33 +02:00
Girish Ramakrishnan cb52dfdd0f backups.backupApp was used by the app update logic 2025-07-18 17:44:22 +02:00
Johannes Zellner db203a5ad8 Pickup app backup progress 2025-07-18 17:40:38 +02:00
Johannes Zellner 3f4df35a3e app backup logs is a secondary action 2025-07-18 16:32:32 +02:00
Johannes Zellner 4661576c8a Add app backup task logs dropdown and improve task tracking 2025-07-18 16:22:41 +02:00
Johannes Zellner b03bb5a3d7 Track app backup tasks in app backup view 2025-07-18 15:53:45 +02:00
Girish Ramakrishnan f7d4f9d94e Add to changelog 2025-07-18 14:41:03 +02:00
Girish Ramakrishnan c10593e4ac tasks: remove the prefix for invokation lookup 2025-07-18 14:33:26 +02:00
Girish Ramakrishnan 47580c6976 tasks: make type field longer 2025-07-18 14:24:24 +02:00
Girish Ramakrishnan 0fa281083e apps: backup is not a state anymore
this is launched as a separate task
2025-07-18 14:14:54 +02:00
Girish Ramakrishnan 0aca6c2588 locks: rename lock types to make it clearer 2025-07-18 13:40:15 +02:00
Johannes Zellner e181abe797 Polish disk usage 2025-07-18 13:36:48 +02:00
Girish Ramakrishnan 7818219763 system: query docker size lazily 2025-07-18 13:05:33 +02:00
Girish Ramakrishnan 25d20266b8 diskusage: emit other entry 2025-07-18 13:02:53 +02:00
Johannes Zellner 330505faaf Also close eventsource on unmounted 2025-07-17 21:16:04 +02:00
Johannes Zellner f7dd10bc08 Add an explicit button to load disk usage details 2025-07-17 21:03:36 +02:00
Johannes Zellner 20cc82e210 slightly better disk usage styling 2025-07-17 19:44:55 +02:00
Johannes Zellner 585885e6a2 Add detailed disk usage view on click 2025-07-17 19:27:09 +02:00
Johannes Zellner 149af003d4 Show filesystem overview in disk usage 2025-07-17 17:06:37 +02:00
Johannes Zellner 50a5b9861a Fix meta tag injection 2025-07-17 17:03:44 +02:00
Girish Ramakrishnan 17ce6f7291 apptaskmanager: release lock and clear active task on task failure 2025-07-17 14:54:47 +02:00
Girish Ramakrishnan 7047ee9391 shell: add timeout logic and rework error handling
what's important:

* if task code ran, it exits with 0. this code is regardless of (error, result)
  * when it exited cleanly, we will get the values from the database

* if task timed out, the box code kills it and it has a flag tracking timedOut. we can
  ignore exit code in this case.

* if task code was stopped, box code will send SIGTERM which ideally it will handle and end with 70.

* if task code crashed and it caught the exception, it will return 50

* if task code crashed and node nuked us, it will exit with 1

* if task code was killed with some unhandleabe signal, taskworker.sh will return the signal (9=SIGKILL)
2025-07-17 12:44:24 +02:00
Girish Ramakrishnan 5e1c32b606 shell: rename signal to abortSignal
this prevents accidental typos with child_process signal handling
2025-07-17 09:50:43 +02:00
Girish Ramakrishnan 38032f0b77 remove the ignored debug 2025-07-17 09:47:26 +02:00
Girish Ramakrishnan 6364ea8e57 grammar 2025-07-17 08:30:51 +02:00
Girish Ramakrishnan c796e724aa shell/task: better logs 2025-07-17 02:04:50 +02:00
Girish Ramakrishnan 63053f46a8 shell: remove sudoCallback 2025-07-17 01:54:39 +02:00
Girish Ramakrishnan 8bf8c278f0 system: add tests for fs usage route 2025-07-17 01:42:28 +02:00
Girish Ramakrishnan aa0c186c8c logStream is not used anymore 2025-07-17 00:37:29 +02:00
Girish Ramakrishnan 5539f74bea system: add disk usage task 2025-07-17 00:09:50 +02:00
Johannes Zellner 11a6cf8236 Add generic 412 http response handler to ask for dashboard refresh 2025-07-16 22:43:16 +02:00
Johannes Zellner ce63dbde1b Check current subscription status once a day 2025-07-16 22:11:11 +02:00
Girish Ramakrishnan 989d843fcb shell: make shell.sudo promise based and waitable 2025-07-16 22:04:24 +02:00
Girish Ramakrishnan 32d07e7959 add spurious log 2025-07-16 21:37:30 +02:00
Girish Ramakrishnan 50b585c1dd shell: merge some options 2025-07-16 21:32:27 +02:00
Girish Ramakrishnan e03beba9bc sudo: add kill-child.sh
ultimately, a non-previlieged child cannot kill previlieged parent.
all the notes and research in shell.js are not useful.
2025-07-16 21:26:57 +02:00
Girish Ramakrishnan e4ceedcac6 logs: use child_process.spawn directly for sudo
shell.sudo will move to a promise based API shortly
2025-07-16 20:23:57 +02:00
Johannes Zellner 80edfffc3f Update pankow 2025-07-16 19:58:21 +02:00
Johannes Zellner 7a734ebf29 Also remove all task log button tooltips 2025-07-16 19:55:22 +02:00