Girish Ramakrishnan
9d45e4e0ae
refactor: make removeVolume not clear
2019-01-15 09:46:24 -08:00
Johannes Zellner
13fac3072d
Support username search in user listing api
2019-01-15 17:21:40 +01:00
Girish Ramakrishnan
6d8fdb131f
remove unused constant
2019-01-14 14:37:43 -08:00
Girish Ramakrishnan
ee65089eb7
s3: make copying and uploading significantly faster
2019-01-14 13:47:07 -08:00
Girish Ramakrishnan
40c7d18382
Fix upload progress message
2019-01-14 12:23:03 -08:00
Girish Ramakrishnan
3236a9a5b7
backup: retry rsync file downloads
...
fixes #608
2019-01-14 11:57:10 -08:00
Girish Ramakrishnan
d0522d7d4f
backups: retry tgz downloads
...
Part of #608
2019-01-14 11:36:11 -08:00
Girish Ramakrishnan
aef6b32019
Update mail container with the spf fixes
2019-01-14 10:32:55 -08:00
Girish Ramakrishnan
11b4c886d7
Add changes
2019-01-14 09:58:55 -08:00
Johannes Zellner
3470252768
Add user pagination to rest api
2019-01-14 16:39:20 +01:00
Johannes Zellner
1a3d5d0bdc
Fix linter issues
2019-01-14 16:26:27 +01:00
Johannes Zellner
05f07b1f47
Add paginated user listing on the db level
2019-01-14 16:08:55 +01:00
Girish Ramakrishnan
898f1dd151
Make volume logic work with absolute paths
2019-01-13 21:12:22 -08:00
Girish Ramakrishnan
17ac6bb1a4
script is not called from redis addon anymore
2019-01-13 19:04:32 -08:00
Girish Ramakrishnan
f05bed594b
remove redundant assert
2019-01-13 16:06:54 -08:00
Girish Ramakrishnan
e63b67b99e
resolve any boxdata symlink
2019-01-13 15:17:02 -08:00
Girish Ramakrishnan
efbc045c8a
Add event for tracking dyndns changes
2019-01-12 15:24:22 -08:00
Girish Ramakrishnan
172d4b7c5e
backup: store cleanup result properly
2019-01-12 15:17:04 -08:00
Girish Ramakrishnan
8b9177b484
disallow downgrade of App Store apps
...
We hit this interesting case:
1. Dashboard showed update indicator for an app of v1. indicator is saying v2 is available.
2. In the meantime, the cron updated the app from v1 to v2 and then to v3 (i.e updates applied)
3. Dashboard for whatever reason (internet issues/laptop suspend) continues to show v2 update indicator.
This is despite the update logic clearing the update available notification.
4. Use clicked updated indicator on the updated app. App updates to an old version v2!
2019-01-11 14:19:32 -08:00
Girish Ramakrishnan
2acb065d38
Track what the the backup cleaner removed
2019-01-11 14:09:43 -08:00
Girish Ramakrishnan
0b33b0b6a2
task: result can be json
2019-01-11 14:02:18 -08:00
Girish Ramakrishnan
0390891280
Fix test
2019-01-11 13:36:02 -08:00
Girish Ramakrishnan
9203534f67
get app object in start of update func
2019-01-11 13:28:39 -08:00
Girish Ramakrishnan
e15d11a693
eventlog: add the old and new manifest in restore
2019-01-11 12:27:42 -08:00
Girish Ramakrishnan
c021d3d9ce
backup: add retry only if > 1
2019-01-11 11:07:19 -08:00
Girish Ramakrishnan
ea3cc9b153
Fix error message
2019-01-11 10:58:51 -08:00
Girish Ramakrishnan
3612b64dae
gpg is in different packages in ubuntu
2019-01-11 10:20:28 -08:00
Girish Ramakrishnan
79f9180f6b
run backup cleanup as a task
2019-01-10 16:07:06 -08:00
Girish Ramakrishnan
766ef5f420
remove spurious argument
2019-01-10 16:02:15 -08:00
Girish Ramakrishnan
bdbb9acfd0
lint
2019-01-10 10:51:31 -08:00
Johannes Zellner
6bdac3aaec
Add missing -y in cloudron-setup
2019-01-10 15:28:56 +01:00
Johannes Zellner
14acdbe7d1
Use notifications api for unexpected process exits
2019-01-10 14:30:00 +01:00
Johannes Zellner
895280fc79
Remove unused function mailUserEventToAdmins()
2019-01-10 13:32:39 +01:00
Johannes Zellner
83ae303b31
Skip notifications for user actions against the same user
2019-01-10 13:21:26 +01:00
Johannes Zellner
cc81a10dd2
Add more notification/mailer wrapper
2019-01-10 12:00:04 +01:00
Girish Ramakrishnan
6e3600011b
Update mail container sha
2019-01-09 16:31:53 -08:00
Girish Ramakrishnan
2b07b5ba3a
Add mail container that logs events
2019-01-09 16:18:53 -08:00
Girish Ramakrishnan
7b64b2a708
do-spaces: Limit download concurrency
...
https://www.digitalocean.com/community/questions/rate-limiting-on-spaces?answer=40441
2019-01-09 15:09:29 -08:00
Girish Ramakrishnan
810f5e7409
Fix line param parsing
...
lines is a positive integer or -1 to disable line limiting. The
default value is 10 if no argument is given.
Fixes #604
2019-01-08 13:23:29 -08:00
Girish Ramakrishnan
1affb2517a
Protect the updater service from the oom killer
...
Fixes #576
2019-01-08 10:51:47 -08:00
Johannes Zellner
85ea9b3255
Rework the oom notification
2019-01-08 14:37:58 +01:00
Johannes Zellner
07e052b865
Fix notifications route to return all notifications if nothing specified
2019-01-08 13:46:18 +01:00
Girish Ramakrishnan
bc0ea740f1
Add more changes
2019-01-07 09:43:48 -08:00
Johannes Zellner
841b4aa814
Can't pass booleans over query
2019-01-07 17:30:28 +01:00
Johannes Zellner
9989478b91
Add all admins action helper
2019-01-07 14:56:49 +01:00
Johannes Zellner
d3227eceff
Give better oom notification title
2019-01-07 14:05:42 +01:00
Johannes Zellner
5f71f6987c
Create notifications for app down event
2019-01-07 13:01:27 +01:00
Johannes Zellner
86dbb1bdcf
Create notification for oom events
2019-01-07 12:57:57 +01:00
Girish Ramakrishnan
77ac8d1e62
Add changes
2019-01-06 19:23:44 -08:00
Girish Ramakrishnan
e62d417324
Set OOMScoreAdjust to stop box code from being killed
...
OOMScoreAdjust can be set between -1000 and +1000. This value is inherited
and systemd has no easy way to control this for children (box code also
runs as non-root, so it cannot easily set it for the children using
/proc/<pid>/oom_score_adj.
When set to -1000 and the process reaches the MemoryMax, it seems the kernel
does not kill any process in the cgroup and it spins up in high memory. In fact,
'systemctl status <service>' stops displaying child process (but ps does), not sure
what is happenning.
Keeping it -999 means that if a child process consumed a lot of memory, the kernel
will kill something in the group. If the main box itself is killed, systemd will
kill it at all because of KillMode=control-group.
Keeping it -999 also saves box service group being killed relative to other docker
processes (apps and addons).
Fixes #605
2019-01-06 19:16:53 -08:00