8429 Commits

Author SHA1 Message Date
James Valleroy
b111c67e32 freedombox Debian release 23.20
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmVJrB0WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICHo/EADJuVx9w7Ra/h+87Dq2lvdzxVAF
 Lrb/tpW9lpZLwBJZfSh6E7+KkQZxpDVYORvv6L6RAeFiFCfIIbkslmEXQff0+OC3
 DhhvjUYnt9BHBRaXAiI1HuzzrjNwdsvLxNsYLIGFzkIrLs6lLffQoM8pCrf+I06R
 obCpqtx57FwjGPA6xQGcp5PmWRARXdY/XIL/raovjN/UhC/vh8SgddtpGXfoy0/p
 NY8SXdqJvVSXV6wmf+1XxEAFLj77tcr2HuYxMuUYNL/aqDr5xVjoAvY1GKcCYQEh
 RIkqjXqqTV1URDiRZ7RqNy8fQg4kJldrJDELhOyTPqxCatU8rmT++fl4r9B4+sGa
 fn29cs8h17APPjboe6GbrPB83KCtyItZfltwG9IgmgC1TIWLJZQmw3iYJyek3akJ
 ICzdlnoDLjDmuX2S3STnyPC937OksWc88/kG3NwNek8le5ZVxhfjKEmrp3B7aYMX
 9QRcDIqS/P1PLB0WaVwOyhVIPZmu4iZTYjV9v0A1hhusMOGRJjIrawOdRsliZ2c7
 3rIAPLvXvoZU7UPuGHhOreH4s3iUXJQYGraoOhI/3lJefZzllXsu1xVPAfquytZV
 t97D/U/Z6elMYFM/zTjimmFEk4jKkyIWA+P6o4041Q0b2FTNvUKSp4YGfYJahbaG
 VjFEJgoWmERAYBxcMQ==
 =JEJf
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmVOEXMWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICCZID/9BtAC+ttqcOuPFviOlDmF2aBn/
 LL5nitLvFEoCdOS08NMh6e7pQBfiUho9MoJFslEgv0/v4VL52jYYE0yQkZ+YzjpF
 mYN+OwvtEZmjuw6OYt53Djc9bO4Ad4G9TmYXeX0BGe4dFMI/p7K97umWh9ZiWuR5
 khWUkIxxDKLPXFQfwmeYa5qpoRZcb1wtZ7KD/sZjuY1QysKHRxLXLACGi4Q7IWss
 VUljoXm+fElYbmIlKfDtg8cD3sCkJWrnM9ruXbKqOhPnSXyZFjRV/3iLXfdIatS6
 yC/TDT6DM7ANDk+QZvKTdmoVhQ/yVnrNRGbRIMTTgHWTmKwJqQf+ndYpJsbLJkYH
 TyQhwr+rS3qK0LB5EznPhFWsJLVlEOrfpclcMSUuRIlniAUVP5hoT44WRn8q8z0M
 rbPYSQ97FFJhkfbAOodEFvsc6xbiEIzGWlM1CsWIjIy715vKrSxakDEa8VT60V8y
 6NtnTFv9cqAzWfZAFP0200K3IbOSZ1YOq85BmZJgHg9NgpDjjT8ZV+XX5AURqYhQ
 NdKFOWlE1EXct62memcAGU9P2kcxfP+mLK7asvq2yU+lbmAqBANhCGBUNvt44Azw
 cWId1mNbZoNxrzdCpvD136vBjzRmmhO7BKcdE1/sgEZHMjbQTxpwnGpXZwtymknL
 ZHyR5n2Spm5zoeb9dQ==
 =CMKU
 -----END PGP SIGNATURE-----

Merge tag 'v23.20' into debian/bookworm-backports

freedombox Debian release 23.20

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-10 06:18:09 -05:00
James Valleroy
d22d142490
Release v23.20 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v23.20
2023-11-06 21:08:59 -05:00
James Valleroy
441eee7e1f
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-06 21:02:47 -05:00
James Valleroy
4c37d54f5c
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-06 20:21:54 -05:00
Sunil Mohan Adapa
a11197b285
email: Increase the size of the message to 100MiB
- This includes the envelope size, so the actual size of the message and
attachments is somewhat lower.

Tests:

- Install the app freshly with the patch. Notice that message_size_limit is set
to 102400000 by running 'postconf message_size_limit'.

- Install the app without the patch. Apply patche and notice that the app is
updated. Notice that message_size_limit is set to 102400000 by running 'postconf
message_size_limit'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-06 13:03:53 -05:00
Joseph Nuthalapati
fd1955a084
tests: functional: Run tests on two app servers
- Using `--dist=loadscope` splits the tests based on module, thus
  ensuring each app's tests get assigned to one worker only.
- Though app servers run in 2 separate VMs, the pytest-xdist workers
  simply run in two Python subprocesses (`-n 2`). This allows us to
  generate a unified test report.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2023-11-05 09:21:47 -08:00
Sunil Mohan Adapa
f4d8d3d046
ejabberd: Update old STUN URIs to remove 'transport' parameter
- If the STUN/TURN configuration is not managed by FreedomBox, the parameters
are left unchanged.

Tests:

- Install app after installing Coturn. Notice that STUN URI doesn't have a
'transport' parameter.

- Install app without the patches after installing Coturn. Notice that STUN URIs
have 'transport' parameter. Then apply patches. Setup is run. 'transport'
parameter is removed and only one STUN URI is present. matrix-synapse server
restarts successfully and don't have show any errors/warnings regarding
STUN/TURN configuration during startup.

- Install app without patches and set custom STUN/TURN URIs. Apply patches.
Setup is run. The URIs are not changed.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-05 06:44:07 -05:00
Sunil Mohan Adapa
e42740b589
matrixsynapse: Update old STUN URIs to remove 'transport' parameter
- If the STUN/TURN configuration is not managed by FreedomBox, the parameters
are left unchanged.

Tests:

- Install app after installing Coturn. Notice that STUN URI doesn't have a
'transport' parameter.

- Install app without the patches after installing Coturn. Notice that STUN URIs
have 'transport' parameter. Then apply patches. Setup is run. 'transport'
parameter is removed and only one STUN URI is present. matrix-synapse server
restarts successfully and don't have show any errors/warnings regarding
STUN/TURN configuration during startup.

- Install app without patches and set custom STUN/TURN URIs. Apply patches.
Setup is run. The URIs are not changed.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-05 06:43:56 -05:00
Sunil Mohan Adapa
e6e6896d0d
coturn: Fix incorrectly passing transport argument to STUN URIs
Closes: #2362.

Passing ?transport= parameter in STUN URIs is invalid. It always uses UDP.
Chrome and perhaps Firefox has recently started enforcing the correct syntax
leading to failures using the Coturn server URIs we set in Janus. This also
likely effects matrix-syanpse and ejabberd clients.

Links:

1) https://www.rfc-editor.org/rfc/rfc7064#section-3.1
2) https://bugs.chromium.org/p/chromium/issues/detail?id=1385735

Tests:

- Install Coturn. Observe that STUN URIs shown don't contain the 'transport'
parameter.

- Install Janus and launch the meeting room. Notice that the STUN URIs in the
room page don't have 'transport' parameter.

- Install ejabberd and notice that the auto-configured STUN URIs don't have
'transport' parameter.

- Install matrix-synapse and notice that the auto-configured STUN URIs don't
have 'transport' parameter.

- Install ejabberd and matrix-synapse. Ensure that STUN URIs manually. They are
not allowed to 'transport' parameter for the STUN URIs but must have transport
parameter for TURN URIs.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-05 06:43:54 -05:00
Sunil Mohan Adapa
5e6c676748
operation: Fix issue with re-running setup when it fails first time
When setup is run from the application thread after startup, it continuously
tries until it succeeds. However, after making the first attempt, it does not
collect the status of the operation keeping the operation object in operation
manager. When trying for the second time, trying to create operation with same
ID fails since the operation is already present.

Fix this by allowing the operation to be recreated if the existing operation has
failed.

Tests:

- Unit tests pass.

- Functional tests for bepasty app pass.

- Install an app. Create an error in the setup mechanism for an app. Increment
is app version number. Start the service and notice that setup of app is
attempted and fails. Few seconds later the setup is attempted again and the
process continues. Each time the failure is due to fault in the app's setup
method rather than operation not being accepted.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-04 17:48:35 -04:00
Sunil Mohan Adapa
300f90f2a2
backups: Don't leave services stopped if backup fails
- We stop services before backup and restart them when backup is completed.
However, if backup fails, we are not restarting the services. With this change,
ensure that stopped services are restarted even if backup process fails.

- Similarly for restore operation.

Tests:

- Backup and restore of an app work.

- Functional tests for matrix-synapse work.

- Run the following two tests without the patch to ensure that the reported bug
is reproducible.

- Make a backup operation fail by raising an exception in the privileged code
that takes backup. Enable matrix-synapse app. Run backup including the
matrix-synapse app. Backup fails and shows an error. The service is
stopped before backup and restarted after backup failure.

- Make a restore operation fail by raising an exception in the privileged code
that does restore. Enable matrix-synapse app. Run backup including the
matrix-synapse app and try to restore it. Restore fails and shows an error. The
service is stopped before restore and restarted after restore failure.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-04 10:23:57 -04:00
Besnik Bleta
58b2c3a796
Translated using Weblate (Albanian)
Currently translated at 95.0% (1474 of 1551 strings)
2023-11-03 21:31:47 +01:00
Ihor Hordiichuk
3f2620f1d8
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (1551 of 1551 strings)
2023-11-03 21:31:47 +01:00
Burak Yavuz
14279cc07a
Translated using Weblate (Turkish)
Currently translated at 100.0% (1551 of 1551 strings)
2023-11-03 21:31:47 +01:00
Sunil Mohan Adapa
f105980476
apache: tests: Update to use DiagnosticCheck class
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-01 22:08:50 -04:00
Sunil Mohan Adapa
e3c2546b79
datetime: Fix diagnostic test for checking NTP server sync
Fixes: #2384

- This was missed during the original transition to DiagnosticCheck class for
returning diagnostic results.

Tests:

- In vagrant container, test that the diagnostic test result shows up in
datetime app and it passes.

- Running full diagnostics on the system works.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-11-01 22:08:43 -04:00
James Valleroy
1f90047621
diagnostics: Add shortcut to re-run setup for app
- When running diagnostics for an app, if there are any failures or warnings,
  then show a button to re-run setup.

- When showing all diagnostics results, if there are any failures or warnings
  for an app, then show a button to re-run setup for that app.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Use Result class instead of strings for comparison]
[sunil: Use flex box's justify-content-between to improve button styling]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2023-10-30 22:10:42 -07:00
James Valleroy
2a8b9b94ba
app: Update diagnose() docstring
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Add reference documentation for the DiagnosticCheck and Result classes]
[sunil: Add link to DiagnosticCheck class from docstring]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2023-10-30 22:09:00 -07:00
Ettore Atalan
520ce34e7c
Translated using Weblate (German)
Currently translated at 98.1% (1523 of 1551 strings)
2023-10-30 10:00:19 +00:00
Burak Yavuz
b5ad386d6c
Translated using Weblate (Turkish)
Currently translated at 98.5% (1529 of 1551 strings)
2023-10-28 04:14:38 +00:00
James Valleroy
f7c0062ddd
Release v23.19~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v23.19_bpo12+1
2023-10-26 20:01:55 -04:00
James Valleroy
5abe6171c8 freedombox Debian release 23.19
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmU3IboWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICAkmEADRSP8I6lvRDK4kINU5svIksT6Y
 0bMD94DHiZBh8c1yw2Et/r7yQuo9UkQPAMgPgDDA9ZgMeMiNws9tvWTrTVkFIjMo
 mav3mL/olwQoQRaRbPFldWQbOzZ22nniZ3r9NuukikTgRN0HUljMPl2yFUe1tr9u
 qPl/cg6Z7hLF/DKuX1lnN4W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dLwGntHS/BUA4mUXIYxJHBZazr/zcqciy3d493
 7EyMBGNES/Swd+zekjUhBfBXpD0mMSspuTmaZ1E6YVGGdh/WLzk4qrKiDmIre4eg
 I8g2sUQVV6YKNBhddPhIWcEOkswBRtB73AixuRzKr2P15RbmXqtnX+WIYcfYUVwv
 lDXZmZ79MhmyolccHULMNWgD+DpjD5AoCG9ZPCj1AhSMKrgYkE0txnb/kyraV37g
 d0L3GHVOEP2l39cbWsqtGZ4eQFE5r5vWnPnvUya/iU4pAsHktvSU2bSvtwk0Yooj
 3Q3d61AqfpHuMA6Eyw==
 =/mf2
 -----END PGP SIGNATURE-----

Merge tag 'v23.19' into debian/bookworm-backports

freedombox Debian release 23.19

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-10-26 19:58:47 -04:00
gallegonovato
4c751a75d2
Translated using Weblate (Spanish)
Currently translated at 100.0% (1551 of 1551 strings)
2023-10-25 14:01:36 +02:00
James Valleroy
9020173af2
Release v23.19 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v23.19
2023-10-23 20:36:22 -04:00
James Valleroy
dabd09a364
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-10-23 20:35:23 -04:00
James Valleroy
33542d59bd
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-10-23 20:06:25 -04:00
Joseph Nuthalapati
fba92081d3
Translated using Weblate (Telugu)
Currently translated at 94.3% (1439 of 1525 strings)
2023-10-24 02:04:00 +02:00
Sunil Mohan Adapa
daabeccb60
db: Serialize most of the database queries using locks
See db.py for rationale.

Tests:

- Run functional tests and unit tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-10-23 12:40:13 -04:00
Joseph Nuthalapati
28143c091a
kiwix: Do not require login to access the app
Kiwix content packages should be publicly accessible by default. Allow
the frontpage shortcut to be accessed without logging in.

Added a functional test to check that Kiwix library can be accessed
without logging in.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2023-10-22 14:04:18 -07:00
Sunil Mohan Adapa
16c556de45
glib: Add a jitter to the interval by default when scheduling tasks
- When many tasks are scheduled at once, they will try to write to the database
at the same time. This happens prominently in develop mode when multiple
notifications are attempted to be shown.

- Also other resource contention may happen.

- Avoid this by adding or subtracting 5% to the provided task scheduling
interval time.

Tests:

- Print the interval times in the schedule() method and verify that the final
interval values are randomized and vary by only 5% from the provided interval.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-10-21 18:43:23 -04:00
Sunil Mohan Adapa
2bf4271e04
glib: Refactor schedule debugging in a central place
Tests:

- Print the interval time in schedule() method and verify that the times are as
expected in develop mode and production mode.

- Notification shows up for RAM usage if the check hardcoded to True.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-10-21 18:43:20 -04:00
Cheshma Golla
2795e2d994
Translated using Weblate (Telugu)
Currently translated at 94.2% (1437 of 1525 strings)
2023-10-21 18:03:41 +00:00
Joseph Nuthalapati
f46c678914
Translated using Weblate (Telugu)
Currently translated at 94.2% (1437 of 1525 strings)
2023-10-21 18:03:41 +00:00
B.Nandhini
8ec5484f3e
Translated using Weblate (Telugu)
Currently translated at 94.2% (1437 of 1525 strings)
2023-10-21 18:03:40 +00:00
Shaik
940b73ba39
Translated using Weblate (Hindi)
Currently translated at 43.4% (663 of 1525 strings)
2023-10-19 08:30:43 +02:00
Lohitha _Durga
7ce32d1a5b
Translated using Weblate (Telugu)
Currently translated at 93.5% (1427 of 1525 strings)
2023-10-19 08:30:43 +02:00
SHAIK.FAMILABANU
2a9ff3bbd9
Translated using Weblate (Telugu)
Currently translated at 93.5% (1427 of 1525 strings)
2023-10-19 08:30:42 +02:00
M.venkateswarlu
765fd051e8
Translated using Weblate (Telugu)
Currently translated at 93.4% (1425 of 1525 strings)
2023-10-19 08:27:10 +02:00
anudeep kumar
0836b75818
Translated using Weblate (Telugu)
Currently translated at 93.4% (1425 of 1525 strings)
2023-10-19 08:27:10 +02:00
Anvitha Pachwa
7d120a2d0b
Translated using Weblate (Telugu)
Currently translated at 93.4% (1425 of 1525 strings)
2023-10-19 08:27:10 +02:00
Shaik
9c3a887f25
Translated using Weblate (Arabic)
Currently translated at 1.1% (17 of 1525 strings)
2023-10-19 08:18:22 +02:00
M.venkateswarlu
5ce5a23b54
Translated using Weblate (Telugu)
Currently translated at 93.3% (1423 of 1525 strings)
2023-10-19 08:18:22 +02:00
Thop Siva
ea9f1567bc
Translated using Weblate (Telugu)
Currently translated at 93.3% (1423 of 1525 strings)
2023-10-19 08:18:22 +02:00
Harshitha Chainur
31d6b9a9f0
Translated using Weblate (Telugu)
Currently translated at 93.3% (1423 of 1525 strings)
2023-10-19 08:18:22 +02:00
anudeep kumar
a40af86111
Translated using Weblate (Telugu)
Currently translated at 93.1% (1421 of 1525 strings)
2023-10-19 07:56:23 +02:00
Thop Siva
3c555e17fe
Translated using Weblate (Telugu)
Currently translated at 93.1% (1421 of 1525 strings)
2023-10-19 07:56:23 +02:00
M.venkateswarlu
7d86aa4067
Translated using Weblate (Telugu)
Currently translated at 93.2% (1422 of 1525 strings)
2023-10-19 07:55:08 +02:00
G Praharsha
5bcce01ba6
Translated using Weblate (Telugu)
Currently translated at 93.2% (1422 of 1525 strings)
2023-10-19 07:55:08 +02:00
Sk juber
64ae3de3de
Translated using Weblate (Telugu)
Currently translated at 93.2% (1422 of 1525 strings)
2023-10-19 07:37:42 +02:00
O SIDDHARDHA
57f604088e
Translated using Weblate (Telugu)
Currently translated at 93.2% (1422 of 1525 strings)
2023-10-19 07:37:42 +02:00