Girish Ramakrishnan
152cb48340
Throttle progress messages
...
This was part of the reason the process was dying out of memory since
we were sending too many messages (I guess it was all getting buffered up)
Part of #626
2019-04-03 11:46:28 -07:00
Girish Ramakrishnan
5a4c2a4974
Remove max_old_space and use as much as we can
...
process.memoryUsage() is our friend. also, with --expose-gc we
can use global.gc(). we don't use it yet though
part of #626
2019-04-02 21:42:41 -07:00
Johannes Zellner
cde852f0f9
Add proftpd as service
2019-03-19 15:24:09 -07:00
Girish Ramakrishnan
7983ff5db2
Stash logs in crash log directory
2019-03-01 15:07:06 -08:00
Girish Ramakrishnan
a0b69df20d
Add DataLayout class to help with path xforms
2019-01-18 17:13:25 -08:00
Girish Ramakrishnan
38a4c1aede
Fixup volume management
...
Fixes related to removing directory and directory perms
2019-01-18 15:18:42 -08:00
Girish Ramakrishnan
4a9b0e8db6
Remove all app containers before removing volume
...
If volume location changes, we re-create the volume. However, volume
can only be removed if all the containers using it are deleted. For
example, the scheduler might be running a container using it.
2019-01-17 23:56:31 -08:00
Girish Ramakrishnan
14439ccf77
mount points cannot be removed
2019-01-17 14:55:37 -08:00
Girish Ramakrishnan
13c628b58b
backups (tgz): work with a layout
...
this will allow us to place the localstorage directory in an arbitrary
location
2019-01-16 12:52:04 -08: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
1affb2517a
Protect the updater service from the oom killer
...
Fixes #576
2019-01-08 10:51:47 -08:00
Girish Ramakrishnan
4a34703cd3
rework code to enable/disable remote support
...
we had a generic ssh key management api. this was causing issues because
the ssh format is more complicated than what we had implemented. currently,
the only use case we have is to add our ssh key.
Fixes #600
2018-12-19 13:35:20 -08:00
Girish Ramakrishnan
a8d9b57c47
remove unused tar.js
2018-12-19 11:58:08 -08:00
Girish Ramakrishnan
3f8fa64b98
wildcard must be outside the quotes
2018-12-05 16:39:29 -08:00
Girish Ramakrishnan
804467dce2
StandardOutput=file does not work in ubuntu 16
...
ubuntu 16 has systemd 229 which does not support this. ubuntu 18
has systemd 239 which works ok
2018-12-04 15:02:48 -08:00
Girish Ramakrishnan
7c1ef143f9
Add unbound service
2018-12-02 19:38:34 -08:00
Girish Ramakrishnan
4b3f18ccdb
Fix messages in update.sh
2018-11-30 21:18:36 -08:00
Girish Ramakrishnan
840d78b2f4
run update as a task, so it is cancelable
2018-11-30 21:04:24 -08:00
Girish Ramakrishnan
8e1560f412
Fix crash in apptask
2018-11-30 09:48:26 -08:00
Girish Ramakrishnan
df927eae74
move backupupload.js to scripts
...
it is just a sudo helper
2018-11-29 23:30:56 -08:00
Girish Ramakrishnan
6cd8e769be
remove all uses of sudoSync
2018-11-25 14:43:29 -08:00
Johannes Zellner
161a8fe2bf
Make docker restartable
2018-11-24 22:12:28 +01:00
Girish Ramakrishnan
fcce4a6853
Add note on StandardError
2018-11-15 10:52:31 -08:00
Johannes Zellner
a24c9fbafb
Put cloudron-updater (installer.sh) logs persistently to /var/log/
2018-11-15 14:54:12 +01:00
Girish Ramakrishnan
44da148fd1
remove collectd directory again
2018-11-01 20:33:40 -07:00
Girish Ramakrishnan
97567b7d2a
Do not re-create cloudron.conf
...
All this argument passing going around is just needless
* boxdata/version file is not used
* dashboard config.json is also unused
2018-10-26 15:29:14 -07:00
Girish Ramakrishnan
6153f45fd9
Remove legacy redis directory
2018-10-18 19:30:10 -07:00
Girish Ramakrishnan
2c60614d4b
remove special rm script for redis
2018-10-15 16:14:16 -07:00
Girish Ramakrishnan
816fa94555
Upgrade the db addons using dumps when major version changes
2018-10-15 16:14:13 -07:00
Girish Ramakrishnan
23b9854c57
Use REST API instead of volumes for redis
2018-09-18 13:09:24 -07:00
Girish Ramakrishnan
a46e208c63
Use docker volumes instead of bind mount for app data
2018-09-13 15:35:41 -07:00
Girish Ramakrishnan
621d00a5c6
GPG verify releases
...
Part of #189
2018-08-01 17:16:42 -07:00
Johannes Zellner
35d2755cfb
Remove splashpage logic
2018-01-31 09:24:43 +01:00
Girish Ramakrishnan
ac94a0b7f2
Add route to restore box from backup
...
Part of #439
2017-11-22 23:08:59 -08:00
Girish Ramakrishnan
ea13f8f97e
Fix checkInstall script
2017-09-18 18:19:27 -07:00
Girish Ramakrishnan
6525a467a2
Rework backuptask into tar.js
...
This makes it easy to integrate another backup strategy
as the next step
2017-09-17 18:50:26 -07:00
Girish Ramakrishnan
c8750a3bed
merge the logrotate scripts
2017-09-12 22:03:24 -07:00
Girish Ramakrishnan
9710f74250
remove collectd stats when app is uninstalled
2017-09-12 21:34:15 -07:00
Girish Ramakrishnan
75b3e7fc78
resolve symlinks correctly for deletion
...
part of #394
2017-09-07 21:57:08 -07:00
Girish Ramakrishnan
70acf1a719
Allow app volumes to be symlinked
...
The initial plan was to make app volumes to be set using a database
field but this makes the app backups non-portable. It also complicates
things wrt to app and server restores.
For now, ignore the problem and let them be symlinked.
Fixes #394
2017-09-07 15:50:34 -07:00
Johannes Zellner
2f51088e67
Add logrotate support for *.log files in /run mounts of apps
...
logrotate config files may contain arbitrary commands which are
exectued as root, thus the config files have to be owned by root.
This is the reason we need the sudo scripts :-/
To test the generated scripts, just run:
$ logrotate /etc/logrotate.conf -v
Fixes #396
2017-08-12 00:04:00 +02:00
Johannes Zellner
3307b581af
Give the spawned node processes a bit more memory
...
Two cloudrons failed with 200 again and bumping it up helps
We still should look into the tarfs module to fix the root cause
2017-06-26 13:06:57 +02:00
Girish Ramakrishnan
c0c07c2839
ensure .ssh dir exists
...
Fixes #349
2017-06-07 09:50:31 -07:00
Girish Ramakrishnan
7467907c09
Do not dump data in update script since it might have the cert
2017-05-19 14:34:20 -07:00
Johannes Zellner
7dc277a80c
Give the backup task more memory 150 is often too close to the limit
2017-05-17 14:17:54 +02:00
Girish Ramakrishnan
a0e122e578
Try to make tests work again
2017-04-23 18:03:40 -07:00
Girish Ramakrishnan
e15c3f05c2
Pass DEBUG args to node.sh
2017-04-21 12:04:54 -07:00
Johannes Zellner
a94d44da75
Add generic node.sh to run node apps as root and with memory limitations
2017-04-20 15:20:11 +02:00
Johannes Zellner
cec52e14f6
Remove s3 backup test shell script
2017-04-18 16:58:27 +02:00