Sunil Mohan Adapa
bc55edd186
logging: Separate logging init logic into a module
...
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-23 17:18:21 -05:00
Sunil Mohan Adapa
f36753fcb8
logging: Log to systemd journal directly
...
While capturing stdout and stderr and automatically logging that to system
logging daemon provides basic information, a lot of information lost in the
process.
This change logs to systemd journal directly so that rich information such as
code file, code function, code line, etc, can be captured in a structured way.
To avoid double logging, discard stdout and stderr in the systemd unit file.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-23 17:18:13 -05:00
Sunil Mohan Adapa
dc7bd96ed7
logging: Don't log to a log file
...
Instead log only to the console and let daemon wrapper (systemd in Debian) take
the logs from the console and log them to system log. There are many advantages
for logging to system log instead of handling files on our own:
- No need to handle log file rotation. This can be configured in many ways and
we don't have to support that. System's log daemon handles this. Closes #1353 .
- Remaining system logs such as sudo and audit logs can be along with FreedomBox
logs for better debugging.
- It is possible to do remote logging based on system logger.
- It is possible to make the logs tamper resistant based on system logger
configuration.
Since timestamp is automatically logged by system log daemon, remove timestamps
from log format. When running on console, timestamps are not very useful.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-23 17:18:04 -05:00
Sunil Mohan Adapa
a541ea06b7
logging: Make cherrypy log to the main log
...
- Access log is not populated by cherrpy anymore.
- CherrPy does not log WSGI handler requests at all. So the request for HTML
pages actually is never logged. Only static file requests which are hardly
useful are logged.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-23 17:17:56 -05:00
Sunil Mohan Adapa
8a7c849fbf
logging: Don't log static file requests
...
They are rarely useful. Refactor setup of static file serving to a method to
avoid repetition.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-23 17:17:45 -05:00
prolinux ukraine
c5ac291146
Translated using Weblate (Ukrainian)
...
Currently translated at 3.0% (30 of 1013 strings)
2018-12-19 22:12:11 +01:00
advocatux
d16091726d
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (1013 of 1013 strings)
2018-12-19 22:01:10 +01:00
Johannes Keyser
03bc72bfe2
Translated using Weblate (German)
...
Currently translated at 100.0% (1013 of 1013 strings)
2018-12-19 22:00:36 +01:00
Pavel Borecki
2ad9c05dcc
Translated using Weblate (Czech)
...
Currently translated at 100.0% (1013 of 1013 strings)
2018-12-19 21:59:43 +01:00
James Valleroy
b6cd60b647
Release v0.45.0 to unstable
...
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v0.45.0
2018-12-17 19:06:31 -05:00
James Valleroy
19eb8cb3fe
Fetch latest manual from wiki
...
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-17 19:05:30 -05:00
James Valleroy
dcfad32b22
Update translation strings
...
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-17 18:33:50 -05:00
Allan Nordhøy
7c026ec100
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 99.9% (991 of 992 strings)
2018-12-18 00:32:00 +01:00
ssantos
ec496b1692
Translated using Weblate (German)
...
Currently translated at 100.0% (992 of 992 strings)
2018-12-17 13:08:43 +01:00
James Valleroy
a99c4e0901
functional_tests: Move backup test into backups feature
...
Remove @bind tag from backups feature.
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 20:48:14 -05:00
James Valleroy
6a3f158266
backups: Make validator errors translatable
...
Fix spelling error.
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 20:47:08 -05:00
Michael Pimmer
493fdd572b
Backups: bump module version
...
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:58 -05:00
Michael Pimmer
bb95229a91
Backups: unittests for accessing repository with borg directly
...
- adapt action and write tests for accessing a borg repo directly
via borg+ssh, without mounting it
- some docstring updates
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:51 -05:00
Michael Pimmer
a5ab22babf
Backups: notify that credentials of remote backups are stored
...
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:48 -05:00
Michael Pimmer
fc9e406bf8
Backups: allow using keyfile as credentials for sshfs mounts
...
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:44 -05:00
Michael Pimmer
b2f5d68ca6
Backups: allow creating archive in unmounted repository
...
- mount repository if necessary before creating an archive
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:38 -05:00
Michael Pimmer
067fea7d17
Backups: functional tests update; restoring backup bugfix
...
- updated functional tests to work with changed UI
- fixed bug when restoring an uploaded file
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:31 -05:00
Michael Pimmer
3724dac9e6
Backups: Cleanup and improved error handling
...
- fixes issues as supposed by jvalleroy
- new repositories always get a UUID so they can immediately be fully
used (mounted, queried etc) also before saving them
- remove test connection page -- errors are shown on form submission
- improved error handling when creating remote repositories
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:24 -05:00
Michael Pimmer
eab8991b54
Backups: support for encrypted repositories
...
- implement download, restore, delete archives of encrypted
repositories
- change how BorgRepository and SshBorgRepository handle path
- when/before creating remote repositories, check whether the
connection works
- updated tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:17 -05:00
Michael Pimmer
6651c0468e
Backups: remove archive name when creating an archive
...
- use datetime as archive name w/o asking user
- updated functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:10 -05:00
Michael Pimmer
c223250569
Backups: remove unittests to backups test directory
...
And add one bugfix to reset cfg.actions_dir after changing it
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:00 -05:00
Michael Pimmer
13e8ae1bb2
Backups, remote repository: adapt functional tests
...
- fix functional tests of backups
- rename export-and-download url to download
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:57 -05:00
Michael Pimmer
3c24c9d63b
Backups, remote repositories: change network_storage to dict
...
- change network_storage storage to dict format for easier handling
- added unittests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:53 -05:00
Michael Pimmer
15e26caa23
Backups, remote repositories: create/delete/restore of remote repos
...
- updated unittests
- implemented create/delete/restore remote archives
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:48 -05:00
Michael Pimmer
37aa2f9992
Backups, remote backups: fix unittests
...
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:45 -05:00
Michael Pimmer
cf6bbd6bba
Backups, remote repositories: use object-oriented repositories
...
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:42 -05:00
Michael Pimmer
27fbc982c7
Backups, remote repositories: re-use template for root location
...
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:38 -05:00
Michael Pimmer
e3817a1a31
Backups, remote repositories: integrate to backups index page
...
- integrate remote repositories into backups index page
- remove, mount and unmount repositories via UI
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:35 -05:00
Michael Pimmer
3a8b69fc82
Backups, remote repositories: start using sshfs
...
- actions to mount/umount via sshfs
- tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:31 -05:00
Michael Pimmer
4be1b0be76
Backups, remote repositories: uniform parameter handling
...
- introduce env_vars in backups script and access_params for more
uniform handling of access parameters
- added tests for creating and deleting an archive
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:27 -05:00
Michael Pimmer
0e2489ec23
Backups, remote repositories: implement init, info and some test
...
- added functionality to use remote repositories
- added some tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:22 -05:00
Michael Pimmer
4eeceaa695
Backups: allow testing the connection of ssh locations
...
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:17 -05:00
Michael Pimmer
b6d1237c0c
Backups: first UI sceleton for remote / encrypted backups
...
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:10 -05:00
Joseph Nuthalapati
9e4fb5eb59
apache: Switch to php-fpm from mod_php
...
Also try to automatically work for future versions of PHP.
Fixes #1413
Fixes #1258
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:24:47 -05:00
Doma Gergő
c9a0fcbf7e
Translated using Weblate (Hungarian)
...
Currently translated at 91.5% (908 of 992 strings)
2018-12-12 05:08:25 +01:00
Herdir
7d445b173f
Translated using Weblate (French)
...
Currently translated at 77.8% (772 of 992 strings)
2018-12-12 05:08:24 +01:00
Allan Nordhøy
fe4df02fb9
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 99.7% (989 of 992 strings)
2018-12-07 19:22:04 +01:00
Allan Nordhøy
f20e2e4b8e
Translated using Weblate (Italian)
...
Currently translated at 52.3% (519 of 992 strings)
2018-12-07 19:22:04 +01:00
Doma Gergő
f86a3b7035
Translated using Weblate (Hungarian)
...
Currently translated at 90.7% (900 of 992 strings)
2018-12-07 19:22:04 +01:00
Allan Nordhøy
1315b5123a
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 59.1% (586 of 992 strings)
2018-12-07 19:22:04 +01:00
Joseph Nuthalapati
d8942eec6f
udiskie: Finish merging udiskie into storage
...
Fixes #1370
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-07 11:20:38 -05:00
advocatux
db690cb581
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (992 of 992 strings)
2018-12-05 13:09:13 +01:00
Doma Gergő
21d1dbc489
Translated using Weblate (Hungarian)
...
Currently translated at 86.0% (853 of 992 strings)
2018-12-05 13:09:12 +01:00
Pavel Borecki
dc44fc9a76
Translated using Weblate (Czech)
...
Currently translated at 100.0% (992 of 992 strings)
2018-12-05 13:09:09 +01:00
Doma Gergő
4f96b57c84
Translated using Weblate (Hungarian)
...
Currently translated at 84.1% (839 of 998 strings)
2018-12-04 02:52:30 +01:00