Compare commits

...
21 Commits
Author SHA1 Message Date
Lauri Ojansivu 915ab47a72 v8.04 2025-10-16 17:59:24 +03:00
Lauri Ojansivu 09ff287da2 Updated translations. 2025-10-16 17:52:03 +03:00
Lauri Ojansivu 2896180f80 Updated ChangeLog. 2025-10-16 17:50:52 +03:00
Lauri Ojansivu 4283b5b0e3 Disable not working minio and s3 support temporarily.
Thanks to xet7 !
2025-10-16 17:49:39 +03:00
Lauri Ojansivu bbbd3abf06 Try to fix Broken Hyperlinks in Markdown to HTML conversion.
Thanks to xet7 !

Fixes #5932
2025-10-16 17:47:59 +03:00
Lauri Ojansivu dd88483ec7 Removed extra npm packages.
Thanks to xet7 !
2025-10-15 23:26:33 +03:00
Lauri Ojansivu 00ddec7575 Fix popups positioning. Part 2.
Thanks to xet7 !
2025-10-15 23:19:07 +03:00
Lauri Ojansivu ab0ebab240 Updated ChangeLog. 2025-10-15 07:57:18 +03:00
Lauri Ojansivu 79e83e33ec Use only MongoDB 7 at Snap.
Thanks to xet7 !
2025-10-15 07:56:11 +03:00
Lauri Ojansivu aa402d652d Updated ChangeLog. 2025-10-15 07:49:05 +03:00
Lauri Ojansivu 690481c138 Remove using fork with MongoDB at Snap.
Thanks to xet7 !
2025-10-15 07:47:57 +03:00
Lauri Ojansivu 881125aa98 Updated ChangeLog. 2025-10-15 07:46:54 +03:00
Lauri Ojansivu 77eea4d494 Fix popups positioning.
Thanks to xet7 !

Fixes #5924
2025-10-15 07:44:46 +03:00
Lauri Ojansivu b26e16abb8 Updated ChangeLog. 2025-10-15 07:39:18 +03:00
Lauri Ojansivu f08c7702ee Fix wide screen.
Thanks to xet7 !

Fixes #5915
2025-10-15 07:38:14 +03:00
Lauri Ojansivu a4399c7ef4 Updated translations. 2025-10-15 07:25:33 +03:00
Lauri Ojansivu d6e50ed9a0 Updated ChangeLog. 2025-10-15 07:21:15 +03:00
Lauri Ojansivu 6b848b318d Make sure that all cards are visible.
Thanks to xet7 !

Related #5915
2025-10-15 07:15:46 +03:00
Lauri Ojansivu 70ce70cf0e Try to fix Snap to not fork mongodb.
Thanks to xet7 !
2025-10-14 14:29:42 +03:00
Lauri Ojansivu 5a79bc5ee3 v8.03 2025-10-14 13:51:47 +03:00
Lauri Ojansivu 5792a86959 Fix Snap MongoDB to not fork at systemd, so it stays running.
Thanks to xet7 !
2025-10-14 13:45:51 +03:00
25 changed files with 771 additions and 3692 deletions

No files matched your search

+34
View File
@@ -19,6 +19,40 @@ Fixing other platforms In Progress.
[Upgrade WeKan](https://wekan.fi/upgrade/)
# v8.04 2025-10-16 WeKan ® release
This release fixes the following bugs:
- [Make sure that all cards are visible](https://github.com/wekan/wekan/commit/6b848b318d62afe9772218febdb09c7426774f60).
Thanks to xet7.
- [Fix wide screen](https://github.com/wekan/wekan/commit/f08c7702eecf23588f7bc023beefb453edd704c6).
Thanks to xet7.
- Fix popups positioning.
[Part 1](https://github.com/wekan/wekan/commit/77eea4d494e5db8e2c0e59732bcea73aa163bc13),
[Part 1](https://github.com/wekan/wekan/commit/00ddec75754bbbccc6fb9b3096495b9609246480).
Thanks to xet7.
- [Remove using fork with MongoDB at Snap](https://github.com/wekan/wekan/commit/690481c138f9629054180310dd172295c7f6d34e).
Thanks to xet7.
- [Use only MongoDB 7 at Snap](https://github.com/wekan/wekan/commit/79e83e33ec1dcec4eea81d5fb4a9f7381c176a12).
Thanks to xet7.
- [Removed extra npm packages](https://github.com/wekan/wekan/commit/dd88483ec7526eee4a97bac5f09e03985be5d923).
Thanks to xet7.
- [Try to fix Broken Hyperlinks in Markdown to HTML conversion](https://github.com/wekan/wekan/commit/bbbd3abf06e45a3fa57c4aa987d87f1873eb11d6).
Thanks to xet7.
- [Disable not working minio and s3 support temporarily](https://github.com/wekan/wekan/commit/4283b5b0e330930fff1fa2bb73c355a4ffb4cda0).
Thanks to xet7.
Thanks to above GitHub users for their contributions and translators for their translations.
# v8.03 2025-10-14 WeKan ® release
This release fixes the following bugs:
- [Fix Snap MongoDB to not fork at systemd, so it stays running](https://github.com/wekan/wekan/commit/5792a869594b4c79a93db414b95a13d60013193b).
Thanks to xet7.
Thanks to above GitHub users for their contributions and translators for their translations.
# v8.02 2025-10-14 WeKan ® release
This release adds the following new features:
+3 -3
View File
@@ -249,9 +249,9 @@ cd /home/wekan/app
# Remove legacy webbroser bundle, so that Wekan works also at Android Firefox, iOS Safari, etc.
#rm -rf /home/wekan/app_build/bundle/programs/web.browser.legacy
#mv /home/wekan/app_build/bundle /build
wget "https://github.com/wekan/wekan/releases/download/v8.02/wekan-8.02-amd64.zip"
unzip wekan-8.02-amd64.zip
rm wekan-8.02-amd64.zip
wget "https://github.com/wekan/wekan/releases/download/v8.04/wekan-8.04-amd64.zip"
unzip wekan-8.04-amd64.zip
rm wekan-8.04-amd64.zip
mv /home/wekan/app/bundle /build
# Put back the original tar
+1 -1
View File
@@ -1,5 +1,5 @@
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
appVersion: "v8.02.0"
appVersion: "v8.04.0"
files:
userUploads:
- README.md
+7 -9
View File
@@ -719,20 +719,20 @@ a:not(.disabled).is-active i.fa {
}
.list {
margin: 0 20px;
margin: 0 8px;
min-width: 360px;
}
.board-canvas {
padding: 20px;
max-width: 2400px;
margin: 0 auto;
padding: 0;
}
#header {
padding: 20px 32px;
max-width: 2400px;
margin: 0 auto;
padding: 0 8px;
}
#content > .wrapper {
padding: 0;
}
#modal .modal-content {
@@ -745,8 +745,6 @@ a:not(.disabled).is-active i.fa {
.setting-content .content-body {
gap: 32px;
max-width: 2400px;
margin: 0 auto;
}
.setting-content .content-body .side-menu {
+64 -17
View File
@@ -76,30 +76,77 @@
overflow: hidden;
}
.pop-over .content-container {
width: 5000px;
width: 100%;
max-height: 70vh;
transition: transform 0.2s;
}
.pop-over .content-container .content {
/* Match wider popover, leave padding */
width: min(360px, 52vw);
width: 100%;
padding: 0 1.3vw 1.3vh;
float: left;
box-sizing: border-box;
/* Ensure content is not shifted left */
margin-left: 0 !important;
transform: none !important;
}
/* Utility: remove left gutter inside specific popups */
.pop-over .content .flush-left {
margin-left: -1.3vw;
margin-left: 0;
padding-left: 0;
width: calc(100% + 1.3vw);
width: 100%;
}
/* Swimlane popups: remove left gutter, align content fully left */
.pop-over .content form.swimlane-color-popup,
.pop-over .content .swimlane-height-popup {
margin-left: -1.3vw;
margin-left: 0;
padding-left: 0;
width: calc(100% + 1.3vw);
width: 100%;
}
/* Color selection popups: ensure proper alignment */
.pop-over .content form.swimlane-color-popup .palette-colors,
.pop-over .content form.edit-label .palette-colors,
.pop-over .content form.create-label .palette-colors {
margin-left: 0;
padding-left: 0;
width: 100%;
}
/* Color palette items: ensure proper positioning */
.pop-over .content .palette-colors .palette-color {
margin-left: 0;
margin-right: 2px;
margin-bottom: 2px;
}
/* Global fix for all popup content to prevent left shifting */
.pop-over .content * {
margin-left: 0 !important;
transform: none !important;
}
/* Override any potential left shifting for specific elements */
.pop-over .content form,
.pop-over .content .palette-colors,
.pop-over .content .pop-over-list,
.pop-over .content .flush-left {
margin-left: 0 !important;
padding-left: 0 !important;
transform: none !important;
}
/* Fix popup depth containers that cause left shifting */
.pop-over .popup-container-depth-1,
.pop-over .popup-container-depth-2,
.pop-over .popup-container-depth-3,
.pop-over .popup-container-depth-4,
.pop-over .popup-container-depth-5,
.pop-over .popup-container-depth-6 {
transform: none !important;
margin-left: 0 !important;
padding-left: 0 !important;
}
/* Ensure buttons don’t reserve left space; align to flow */
@@ -130,7 +177,7 @@
.pop-over .at-form .at-error,
.pop-over .at-form .at-result {
padding: 8px 12px;
margin: -8px -10px 10px;
margin: 0 0 10px 0;
}
.pop-over .at-form .at-error {
background: #ef9a9a;
@@ -174,7 +221,7 @@
font-weight: 700;
padding: 1.5px 10px;
position: relative;
margin: 0 -10px;
margin: 0;
text-decoration: none;
overflow: hidden;
line-height: 33px;
@@ -333,12 +380,12 @@
margin: 48px 0px 0px 0px;
}
.pop-over .content-container {
width: 1000%;
width: 100%;
height: 100%;
max-height: 100%;
}
.pop-over .content-container .content {
width: calc(10% - 20px);
width: calc(100% - 20px);
height: calc(100% - 20px);
padding: 10px;
}
@@ -360,21 +407,21 @@
margin: 0px 0px;
}
.pop-over .popup-container-depth-1 {
transform: translateX(-10%);
transform: none !important;
}
.pop-over .popup-container-depth-2 {
transform: translateX(-20%);
transform: none !important;
}
.pop-over .popup-container-depth-3 {
transform: translateX(-30%);
transform: none !important;
}
.pop-over .popup-container-depth-4 {
transform: translateX(-40%);
transform: none !important;
}
.pop-over .popup-container-depth-5 {
transform: translateX(-50%);
transform: none !important;
}
.pop-over .popup-container-depth-6 {
transform: translateX(-60%);
transform: none !important;
}
}
+6 -8
View File
@@ -223,10 +223,9 @@ BlazeComponent.extendComponent({
}
}
if (Filter.hideEmpty.isSelected()) {
const swimlaneId = this.parentComponent()
.parentComponent()
.data()._id;
const cards = list.cards(swimlaneId);
// Check for cards in all swimlanes, not just the current one
// This ensures lists with cards in other swimlanes are still visible
const cards = list.cards();
if (cards.length === 0) {
return false;
}
@@ -375,10 +374,9 @@ BlazeComponent.extendComponent({
}
}
if (Filter.hideEmpty.isSelected()) {
const swimlaneId = this.parentComponent()
.parentComponent()
.data()._id;
const cards = list.cards(swimlaneId);
// Check for cards in all swimlanes, not just the current one
// This ensures lists with cards in other swimlanes are still visible
const cards = list.cards();
if (cards.length === 0) {
return false;
}
+2 -2
View File
@@ -10,7 +10,7 @@ This is without container (without Docker or Snap).
Right click and download files 1-4:
1. [wekan-8.02-amd64-windows.zip](https://github.com/wekan/wekan/releases/download/v8.02/wekan-8.02-amd64-windows.zip)
1. [wekan-8.04-amd64-windows.zip](https://github.com/wekan/wekan/releases/download/v8.04/wekan-8.04-amd64-windows.zip)
2. [node.exe](https://nodejs.org/dist/latest-v14.x/win-x64/node.exe)
@@ -22,7 +22,7 @@ Right click and download files 1-4:
6. Double click `mongodb-windows-x86_64-7.0.25-signed.msi` . In installer, uncheck downloading MongoDB compass.
7. Unzip `wekan-8.02-amd64-windows.zip` , inside it is directory `bundle`, to it copy other files:
7. Unzip `wekan-8.04-amd64-windows.zip` , inside it is directory `bundle`, to it copy other files:
```
bundle (directory)
+6 -6
View File
@@ -631,9 +631,9 @@
"upload": "Upload",
"upload-avatar": "Profilbild hochladen",
"uploaded-avatar": "Profilbild hochgeladen",
"uploading-files": "Uploading files",
"upload-failed": "Upload failed",
"upload-completed": "Upload completed",
"uploading-files": "Dateien hochladen",
"upload-failed": "Hochladen fehlgeschlagen",
"upload-completed": "Hochladen ist abgeschlossen",
"custom-top-left-corner-logo-image-url": "Benutzerdefiniertes Logo oben links Bild URL",
"custom-top-left-corner-logo-link-url": "Benutzerdefiniertes Logo oben links Link URL",
"custom-top-left-corner-logo-height": "Benutzerdefiniertes Logo oben links Höhe. Voreinstellung: 27",
@@ -1314,9 +1314,9 @@
"admin-people-user-inactive": "Benutzer ist Inaktiv - zum Aktivieren klicken",
"accounts-lockout-all-users-unlocked": "Alle gesperrten Benutzer wurden entsperrt",
"accounts-lockout-unlock-all": "Alle entsperren",
"active-cron-jobs": "Active Scheduled Jobs",
"add-cron-job": "Add Scheduled Job",
"add-cron-job-placeholder": "Add Scheduled Job functionality coming soon",
"active-cron-jobs": "Aktive geplante Aufgaben",
"add-cron-job": "Geplante Aufgabe hinzufügen",
"add-cron-job-placeholder": "Funktion „Geplante Aufgaben hinzufügen” in Kürze verfügbar",
"attachment-storage-configuration": "Attachment Storage Configuration",
"attachments-path": "Attachments Path",
"attachments-path-description": "Path where attachment files are stored",
+9 -9
View File
@@ -631,9 +631,9 @@
"upload": "Upload",
"upload-avatar": "Profilbild hochladen",
"uploaded-avatar": "Profilbild hochgeladen",
"uploading-files": "Uploading files",
"upload-failed": "Upload failed",
"upload-completed": "Upload completed",
"uploading-files": "Dateien hochladen",
"upload-failed": "Hochladen fehlgeschlagen",
"upload-completed": "Hochladen ist abgeschlossen",
"custom-top-left-corner-logo-image-url": "Benutzerdefiniertes Logo oben links Bild URL",
"custom-top-left-corner-logo-link-url": "Benutzerdefiniertes Logo oben links Link URL",
"custom-top-left-corner-logo-height": "Benutzerdefiniertes Logo oben links Höhe. Voreinstellung: 27",
@@ -1300,20 +1300,20 @@
"accounts-lockout-user-unlocked": "Benutzer wurde erfolgreich entsperrt",
"accounts-lockout-confirm-unlock": "Wollen Sie den Benutzer wirklich entsperren?",
"accounts-lockout-confirm-unlock-all": "Are you sure you want to unlock all locked users?",
"accounts-lockout-show-locked-users": "Show locked users only",
"accounts-lockout-show-locked-users": "Zeige nur gesperrte Benutzer",
"accounts-lockout-user-locked": "Benutzer ist gesperrt",
"accounts-lockout-click-to-unlock": "Klicken Sie, um den Benutzer zu entsperren",
"accounts-lockout-status": "Status",
"admin-people-filter-show": "Show:",
"admin-people-filter-show": "Zeige:",
"admin-people-filter-all": "alle Benutzer",
"admin-people-filter-locked": "Locked Users Only",
"admin-people-filter-locked": "Nur gesperrte Benutzer",
"admin-people-filter-active": "Aktiv",
"admin-people-filter-inactive": "Not Active",
"admin-people-filter-inactive": "Nicht aktiv",
"admin-people-active-status": "Aktiv Status",
"admin-people-user-active": "User is active - click to deactivate",
"admin-people-user-inactive": "User is inactive - click to activate",
"accounts-lockout-all-users-unlocked": "All locked users have been unlocked",
"accounts-lockout-unlock-all": "Unlock All",
"accounts-lockout-unlock-all": "Alle entsperren",
"active-cron-jobs": "Active Scheduled Jobs",
"add-cron-job": "Add Scheduled Job",
"add-cron-job-placeholder": "Add Scheduled Job functionality coming soon",
@@ -1330,7 +1330,7 @@
"board-cleanup-scheduled": "Board cleanup scheduled successfully",
"board-operations": "Board Operations",
"cron-jobs": "Scheduled Jobs",
"cron-migrations": "Scheduled Migrations",
"cron-migrations": "Geplante Migrationen",
"cron-job-delete-confirm": "Are you sure you want to delete this scheduled job?",
"cron-job-delete-failed": "Failed to delete scheduled job",
"cron-job-deleted": "Scheduled job deleted successfully",
+19 -19
View File
@@ -1323,20 +1323,20 @@
"avatars-path": "נתיב תמונות ייצוגיות",
"avatars-path-description": "הנתיב בו יישמרו קובצי התמונות הייצוגיות",
"board-archive-failed": "תזמון העברה לארכיון של הלוח נכשל",
"board-archive-scheduled": "Board archive scheduled successfully",
"board-backup-failed": "Failed to schedule board backup",
"board-backup-scheduled": "Board backup scheduled successfully",
"board-cleanup-failed": "Failed to schedule board cleanup",
"board-cleanup-scheduled": "Board cleanup scheduled successfully",
"board-operations": "Board Operations",
"cron-jobs": "Scheduled Jobs",
"cron-migrations": "Scheduled Migrations",
"cron-job-delete-confirm": "Are you sure you want to delete this scheduled job?",
"cron-job-delete-failed": "Failed to delete scheduled job",
"cron-job-deleted": "Scheduled job deleted successfully",
"cron-job-pause-failed": "Failed to pause scheduled job",
"cron-job-paused": "Scheduled job paused successfully",
"filesystem-path-description": "Base path for file storage",
"board-archive-scheduled": "העברת לוח לארכיון תוזמנה בהצלחה",
"board-backup-failed": "תזמון גיבוי לוח נכשל",
"board-backup-scheduled": "גיבוי הלוח תוזמן בהצלחה",
"board-cleanup-failed": "תזמון ניקוי לוח נכשל",
"board-cleanup-scheduled": "ניקוי לוח תוזמן בהצלחה",
"board-operations": "פעולות לוח",
"cron-jobs": "משימות מתוזמנות",
"cron-migrations": "הסבות מתוזמנות",
"cron-job-delete-confirm": "למחוק את המשימה המתוזמנת?",
"cron-job-delete-failed": "מחיקת המשימה המתוזמנת נכשלה",
"cron-job-deleted": "המשימה המתוזמנת נמחקה בהצלחה",
"cron-job-pause-failed": "השהיית משימה מתוזמנת נכשלה",
"cron-job-paused": "המשימה המתוזמנת הושהתה בהצלחה",
"filesystem-path-description": "נתיב בסיס לאחסון קבצים",
"gridfs-enabled": "GridFS הופעל",
"gridfs-enabled-description": "להשתמש ב־GridFS מבית MongoDB לאחסון קבצים",
"migration-pause-failed": "השהיית ההסבות נכשלה",
@@ -1358,14 +1358,14 @@
"s3-connection-failed": "החיבור ל־S3 נכשל",
"s3-connection-success": "החיבור ל־S3 הצליח",
"s3-enabled": "S3 הופעל",
"s3-enabled-description": "Use AWS S3 or MinIO for file storage",
"s3-enabled-description": "להשתמש ב־S3 של AWS או ב־MinIO לאחסון קבצים",
"s3-endpoint": "נקודת קצה ל־S3",
"s3-endpoint-description": "S3 endpoint URL (e.g., s3.amazonaws.com or minio.example.com)",
"s3-endpoint-description": "כתובת נקודת גישה של S3 (למשל: s3.amazonaws.com או minio.example.com)",
"s3-minio-storage": "אחסון S3/MinIO",
"s3-port": "פתחת S3",
"s3-port-description": "מספר פתחה בנקודת הגישה ל־S3",
"s3-region": "איזור (Region) S3",
"s3-region-description": "AWS S3 region (e.g., us-east-1)",
"s3-region-description": "אזור (Region) ב־S3 של AWS (למשל: us-east-1)",
"s3-secret-key": "מפתח סודי (Secret Key) ל־S3",
"s3-secret-key-description": "מפתח סודי (Secret Key) ל־S3 של AWS לאימות",
"s3-secret-key-placeholder": "נא למלא מפתח סודי (Secret Key) ל־S3",
@@ -1399,7 +1399,7 @@
"completed": "הושלמה",
"conversion-info-text": "ההמרה הזאת מתבצעת פעם אחת בכל לוח והיא משפרת את הביצועים. אפשר להמשיך להשתמש בלוח כרגיל.",
"converting-board": "הלוח עובר המרה",
"converting-board-description": "Converting board structure for improved functionality. This may take a few moments.",
"converting-board-description": "מבנה הלוח מומר לשיפור היכולות. הפעולה הזאת עלולה לארוך מספר דקות.",
"cpu-cores": "ליבות מעבד",
"cpu-usage": "שימוש במעבד",
"current-action": "פעולה נוכחית",
@@ -1488,5 +1488,5 @@
"weight": "משקל",
"idle": "בהמתנה",
"complete": "הושלם",
"cron": "Cron"
"cron": "מתזמן"
}
+56 -56
View File
@@ -1314,67 +1314,67 @@
"admin-people-user-inactive": "Gebruiker is inactief - klik om te activeren",
"accounts-lockout-all-users-unlocked": "Alle geblokkeerde gebruikers zijn ge-deblokkeerd",
"accounts-lockout-unlock-all": "Deblokkeer Alles",
"active-cron-jobs": "Active Scheduled Jobs",
"add-cron-job": "Add Scheduled Job",
"add-cron-job-placeholder": "Add Scheduled Job functionality coming soon",
"attachment-storage-configuration": "Attachment Storage Configuration",
"attachments-path": "Attachments Path",
"attachments-path-description": "Path where attachment files are stored",
"active-cron-jobs": "Actieve Geplande Taken",
"add-cron-job": "Voeg Geplande Taak Toe",
"add-cron-job-placeholder": "Geplande Taak toevoeg functionaliteit komt snel",
"attachment-storage-configuration": "Bijlage Opslag Configuratie",
"attachments-path": "Bijlagen Map",
"attachments-path-description": "Map waar bijlagen worden opgeslagen",
"avatars-path": "Avatars Path",
"avatars-path-description": "Path where avatar files are stored",
"board-archive-failed": "Failed to schedule board archive",
"board-archive-scheduled": "Board archive scheduled successfully",
"board-backup-failed": "Failed to schedule board backup",
"board-backup-scheduled": "Board backup scheduled successfully",
"board-cleanup-failed": "Failed to schedule board cleanup",
"board-cleanup-scheduled": "Board cleanup scheduled successfully",
"board-operations": "Board Operations",
"cron-jobs": "Scheduled Jobs",
"cron-migrations": "Scheduled Migrations",
"cron-job-delete-confirm": "Are you sure you want to delete this scheduled job?",
"cron-job-delete-failed": "Failed to delete scheduled job",
"cron-job-deleted": "Scheduled job deleted successfully",
"cron-job-pause-failed": "Failed to pause scheduled job",
"cron-job-paused": "Scheduled job paused successfully",
"filesystem-path-description": "Base path for file storage",
"gridfs-enabled": "GridFS Enabled",
"gridfs-enabled-description": "Use MongoDB GridFS for file storage",
"migration-pause-failed": "Failed to pause migrations",
"migration-paused": "Migrations paused successfully",
"migration-progress": "Migration Progress",
"migration-start-failed": "Failed to start migrations",
"migration-started": "Migrations started successfully",
"migration-status": "Migration Status",
"migration-stop-confirm": "Are you sure you want to stop all migrations?",
"migration-stop-failed": "Failed to stop migrations",
"migration-stopped": "Migrations stopped successfully",
"mongodb-gridfs-storage": "MongoDB GridFS Storage",
"pause-all-migrations": "Pause All Migrations",
"avatars-path-description": "Map waar avatar bestanden worden opgeslagen",
"board-archive-failed": "Bord archiveren plannen mislukt",
"board-archive-scheduled": "Bord archiveren plannen gelukt",
"board-backup-failed": "Bord backup plannen mislukt",
"board-backup-scheduled": "Bord backup plannen gelukt",
"board-cleanup-failed": "Bord opschonen plannen mislukt",
"board-cleanup-scheduled": "Bord opschonen plannen gelukt",
"board-operations": "Bord Acties",
"cron-jobs": "Geplande Taken",
"cron-migrations": "Geplande Migraties",
"cron-job-delete-confirm": "Weet je zeker dat je deze geplande taak wilt verwijderen?",
"cron-job-delete-failed": "Geplande taak verwijderen mislukt",
"cron-job-deleted": "Geplande taak verwijderen gelukt",
"cron-job-pause-failed": "Geplande taak pauzeren mislukt",
"cron-job-paused": "Geplande taak pauzeren gelukt",
"filesystem-path-description": "Hoofdmap voor bestandsopslag",
"gridfs-enabled": "GridFS Ingeschakeld",
"gridfs-enabled-description": "Gebruik MongoDB GridFS voor bestandsopslag",
"migration-pause-failed": "Migraties pauzeren mislukt",
"migration-paused": "Migraties pauzeren gelukt",
"migration-progress": "Migratie Voortgang",
"migration-start-failed": "Migraties starten mislukt",
"migration-started": "Migraties starten gelukt",
"migration-status": "Migratie Status",
"migration-stop-confirm": "Weet je zeker dat je alle migraties wilt stoppen?",
"migration-stop-failed": "Migraties stoppen mislukt",
"migration-stopped": "Migraties stoppen gelukt",
"mongodb-gridfs-storage": "MongoDB GridFS Opslag",
"pause-all-migrations": "Alle Migraties Pauzeren",
"s3-access-key": "S3 Access Key",
"s3-access-key-description": "AWS S3 access key for authentication",
"s3-access-key-placeholder": "Enter S3 access key",
"s3-access-key-description": "AWS S3 access key voor authenticatie",
"s3-access-key-placeholder": "Voer S3 access key in",
"s3-bucket": "S3 Bucket",
"s3-bucket-description": "S3 bucket name for storing files",
"s3-connection-failed": "S3 connection failed",
"s3-connection-success": "S3 connection successful",
"s3-enabled": "S3 Enabled",
"s3-enabled-description": "Use AWS S3 or MinIO for file storage",
"s3-bucket-description": "S3 bucket naam voor bestandsopslag",
"s3-connection-failed": "S3 verbinding mislukt",
"s3-connection-success": "S3 verbinding gelukt",
"s3-enabled": "S3 Ingeschakeld",
"s3-enabled-description": "Gebruik AWS S3 of MinIO voor bestandsopslag",
"s3-endpoint": "S3 Endpoint",
"s3-endpoint-description": "S3 endpoint URL (e.g., s3.amazonaws.com or minio.example.com)",
"s3-minio-storage": "S3/MinIO Storage",
"s3-port": "S3 Port",
"s3-port-description": "S3 endpoint port number",
"s3-region": "S3 Region",
"s3-region-description": "AWS S3 region (e.g., us-east-1)",
"s3-endpoint-description": "S3 endpoint URL (bv., s3.amazonaws.com of minio.example.com)",
"s3-minio-storage": "S3/MinIO Opslag",
"s3-port": "S3 Poort",
"s3-port-description": "S3 endpoint poort nummer",
"s3-region": "S3 Regio",
"s3-region-description": "AWS S3 regio (bv., us-east-1)",
"s3-secret-key": "S3 Secret Key",
"s3-secret-key-description": "AWS S3 secret key for authentication",
"s3-secret-key-placeholder": "Enter S3 secret key",
"s3-secret-key-required": "S3 secret key is required",
"s3-settings-save-failed": "Failed to save S3 settings",
"s3-settings-saved": "S3 settings saved successfully",
"s3-ssl-enabled": "S3 SSL Enabled",
"s3-ssl-enabled-description": "Use SSL/TLS for S3 connections",
"save-s3-settings": "Save S3 Settings",
"s3-secret-key-description": "AWS S3 secret key voor authenticatie",
"s3-secret-key-placeholder": "Voer S3 secret key in",
"s3-secret-key-required": "S3 secret key is vereist",
"s3-settings-save-failed": "S3 instellingen opslaan mislukt",
"s3-settings-saved": "S3 instellingen opslaan gelukt",
"s3-ssl-enabled": "S3 SSL Ingeschakeld",
"s3-ssl-enabled-description": "Gebruik SSL/TLS voor S3 verbindingen",
"save-s3-settings": "S3 Instellingen Opslaan",
"schedule-board-archive": "Schedule Board Archive",
"schedule-board-backup": "Schedule Board Backup",
"schedule-board-cleanup": "Schedule Board Cleanup",
+172 -172
View File
@@ -393,7 +393,7 @@
"email-verifyEmail-subject": "Verifique seu endereço de e-mail em __siteName__",
"email-verifyEmail-text": "Olá __user__\nPara verificar sua conta de e-mail, clique no link abaixo.\n__url__\nObrigado.",
"enable-vertical-scrollbars": "Habilitar rolagem de tela vertical",
"enable-wip-limit": "Ativar Limite WIP",
"enable-wip-limit": "Habilitar Limite WIP",
"error-board-doesNotExist": "Este quadro não existe",
"error-board-notAdmin": "Você precisa ser administrador desse quadro para fazer isto",
"error-board-notAMember": "Você precisa ser um membro desse quadro para fazer isto",
@@ -1019,7 +1019,7 @@
"comment-not-found": "Cartões com comentários contendo o texto '%s' não encontrado.",
"org-name-not-found": "Organização '%s' não encontrada.",
"team-name-not-found": "Time '%s' não encontrado.",
"globalSearch-title": "Pesquisar em todos os quadros",
"globalSearch-title": "Buscar em todos os quadros",
"no-cards-found": "Nenhum cartão encontrado",
"one-card-found": "Um cartão encontrado",
"n-cards-found": "%s cartões encontrados",
@@ -1116,7 +1116,7 @@
"globalSearch-instructions-notes-3": "Operadores de diferenciação são *AND*, ou seja, to tipo \"E. Apenas cartões que correspondam a todos os operadores de diferenciação são retornados. `__operator_list__:Available __operator_label__:red` retorna apenas os cartões na lista *Available* com uma etiqueta *red*.",
"globalSearch-instructions-notes-3-2": "Dias podem ser especificados como um inteiro positivo ou negativo ou usando `__predicate_week__`, `__predicate_month__`, `__predicate_quarter__` ou `__predicate_year__` para o período atual.",
"globalSearch-instructions-notes-4": "Textos de busca não distinguem maiúsculas e minúsculas",
"globalSearch-instructions-notes-5": "Por padrão, cartões arquivados não são pesquisados.",
"globalSearch-instructions-notes-5": "Por padrão, cartões arquivados não são buscados.",
"link-to-search": "Link para esta busca",
"excel-font": "Arial",
"number": "Número",
@@ -1314,179 +1314,179 @@
"admin-people-user-inactive": "Usuário está inativo - clique para ativá-lo",
"accounts-lockout-all-users-unlocked": "Todos os usuários bloqueados foram desbloqueados",
"accounts-lockout-unlock-all": "Desbloquear Todos",
"active-cron-jobs": "Active Scheduled Jobs",
"add-cron-job": "Add Scheduled Job",
"add-cron-job-placeholder": "Add Scheduled Job functionality coming soon",
"attachment-storage-configuration": "Attachment Storage Configuration",
"attachments-path": "Attachments Path",
"attachments-path-description": "Path where attachment files are stored",
"avatars-path": "Avatars Path",
"avatars-path-description": "Path where avatar files are stored",
"board-archive-failed": "Failed to schedule board archive",
"board-archive-scheduled": "Board archive scheduled successfully",
"board-backup-failed": "Failed to schedule board backup",
"board-backup-scheduled": "Board backup scheduled successfully",
"board-cleanup-failed": "Failed to schedule board cleanup",
"board-cleanup-scheduled": "Board cleanup scheduled successfully",
"board-operations": "Board Operations",
"cron-jobs": "Scheduled Jobs",
"cron-migrations": "Scheduled Migrations",
"cron-job-delete-confirm": "Are you sure you want to delete this scheduled job?",
"cron-job-delete-failed": "Failed to delete scheduled job",
"cron-job-deleted": "Scheduled job deleted successfully",
"cron-job-pause-failed": "Failed to pause scheduled job",
"cron-job-paused": "Scheduled job paused successfully",
"filesystem-path-description": "Base path for file storage",
"gridfs-enabled": "GridFS Enabled",
"gridfs-enabled-description": "Use MongoDB GridFS for file storage",
"migration-pause-failed": "Failed to pause migrations",
"migration-paused": "Migrations paused successfully",
"migration-progress": "Migration Progress",
"migration-start-failed": "Failed to start migrations",
"migration-started": "Migrations started successfully",
"migration-status": "Migration Status",
"migration-stop-confirm": "Are you sure you want to stop all migrations?",
"migration-stop-failed": "Failed to stop migrations",
"migration-stopped": "Migrations stopped successfully",
"mongodb-gridfs-storage": "MongoDB GridFS Storage",
"pause-all-migrations": "Pause All Migrations",
"s3-access-key": "S3 Access Key",
"s3-access-key-description": "AWS S3 access key for authentication",
"s3-access-key-placeholder": "Enter S3 access key",
"active-cron-jobs": "Trabalhos agendados ativos",
"add-cron-job": "Adicionar trabalhos agendados",
"add-cron-job-placeholder": "Funcionalidade para Adicionar Trabalhos Agendados virá em breve",
"attachment-storage-configuration": "Configuração de armazenamento de anexos",
"attachments-path": "Caminho dos Anexos",
"attachments-path-description": "Caminho onde os arquivos de anexos estão armazenados",
"avatars-path": "Caminho dos Avatares",
"avatars-path-description": "Caminho onde arquivos de avatar estão armazenados",
"board-archive-failed": "Falha ao agendar arquivamento de quadro",
"board-archive-scheduled": "Arquivamento de quadro agendado com sucesso",
"board-backup-failed": "Falha ao agendar backup de quadro",
"board-backup-scheduled": "Backup de quadro agendado com sucesso",
"board-cleanup-failed": "Falha ao agendar limpeza de quadro",
"board-cleanup-scheduled": "Limpeza de quadro agendada com sucesso",
"board-operations": "Operações de Quadro",
"cron-jobs": "Trabalhos Agendados",
"cron-migrations": "Migrações Agendadas",
"cron-job-delete-confirm": "Você tem certeza que deseja excluir este trabalho agendado?",
"cron-job-delete-failed": "Falha ao excluir trabalho agendado",
"cron-job-deleted": "Trabalho agendado excluído com sucesso",
"cron-job-pause-failed": "Falha ao parar trabalho agendado",
"cron-job-paused": "Agendamento de trabalho parado com sucesso",
"filesystem-path-description": "Caminho base para o armazenamento de arquivos",
"gridfs-enabled": "GridFS Habilitado",
"gridfs-enabled-description": "Use MongoDB GridFS para armazenamento de arquivos",
"migration-pause-failed": "Falha ao parar migrações",
"migration-paused": "Migrações paradas com sucesso",
"migration-progress": "Progresso das Migrações",
"migration-start-failed": "Falha ao iniciar migrações",
"migration-started": "Migrações iniciadas com sucesso",
"migration-status": "Status das Migrações",
"migration-stop-confirm": "Você tem certeza que deseja parar todas as migrações?",
"migration-stop-failed": "Falha ao parar migrações",
"migration-stopped": "Migrações paradas com sucesso",
"mongodb-gridfs-storage": "Armazenamento MongoDB GridFS",
"pause-all-migrations": "Parar Todas Migrações",
"s3-access-key": "Chave de Acesso S3",
"s3-access-key-description": "Chaves de acesso do AWS S3 para autenticação",
"s3-access-key-placeholder": "Insira as chaves de acesso do S3",
"s3-bucket": "S3 Bucket",
"s3-bucket-description": "S3 bucket name for storing files",
"s3-connection-failed": "S3 connection failed",
"s3-connection-success": "S3 connection successful",
"s3-enabled": "S3 Enabled",
"s3-enabled-description": "Use AWS S3 or MinIO for file storage",
"s3-endpoint": "S3 Endpoint",
"s3-endpoint-description": "S3 endpoint URL (e.g., s3.amazonaws.com or minio.example.com)",
"s3-minio-storage": "S3/MinIO Storage",
"s3-port": "S3 Port",
"s3-port-description": "S3 endpoint port number",
"s3-region": "S3 Region",
"s3-region-description": "AWS S3 region (e.g., us-east-1)",
"s3-secret-key": "S3 Secret Key",
"s3-secret-key-description": "AWS S3 secret key for authentication",
"s3-secret-key-placeholder": "Enter S3 secret key",
"s3-secret-key-required": "S3 secret key is required",
"s3-settings-save-failed": "Failed to save S3 settings",
"s3-settings-saved": "S3 settings saved successfully",
"s3-ssl-enabled": "S3 SSL Enabled",
"s3-ssl-enabled-description": "Use SSL/TLS for S3 connections",
"save-s3-settings": "Save S3 Settings",
"schedule-board-archive": "Schedule Board Archive",
"schedule-board-backup": "Schedule Board Backup",
"schedule-board-cleanup": "Schedule Board Cleanup",
"scheduled-board-operations": "Scheduled Board Operations",
"start-all-migrations": "Start All Migrations",
"stop-all-migrations": "Stop All Migrations",
"test-s3-connection": "Test S3 Connection",
"writable-path": "Writable Path",
"writable-path-description": "Base directory path for file storage",
"add-job": "Add Job",
"attachment-migration": "Attachment Migration",
"attachment-monitoring": "Attachment Monitoring",
"attachment-settings": "Attachment Settings",
"attachment-storage-settings": "Storage Settings",
"automatic-migration": "Automatic Migration",
"back-to-settings": "Back to Settings",
"board-id": "Board ID",
"board-migration": "Board Migration",
"card-show-lists-on-minicard": "Show Lists on Minicard",
"cleanup": "Cleanup",
"cleanup-old-jobs": "Cleanup Old Jobs",
"s3-bucket-description": "Nome do S3 Bucket para armazenar arquivos",
"s3-connection-failed": "Falha ao conectar ao S3",
"s3-connection-success": "S3 conectado com sucesso",
"s3-enabled": "S3 Habilitado",
"s3-enabled-description": "Use AWS S3 ou MinIO para armazenamento de arquivos",
"s3-endpoint": "Dispositivo S3",
"s3-endpoint-description": "URL do dispositivo S3 (por exemplo: s3.amazonaws.com ou minio.example.com)",
"s3-minio-storage": "Armazenamento S3/MinIO",
"s3-port": "Porta do S3",
"s3-port-description": "Número da Porta do dispositivo S3",
"s3-region": "Região do S3",
"s3-region-description": "Região do AWS S3 (por exemplo: us-east-1)",
"s3-secret-key": "Chave secreta do S3",
"s3-secret-key-description": "Chave secreta do AWS S3 para autenticação",
"s3-secret-key-placeholder": "Insira a chave secreta do S3",
"s3-secret-key-required": "Chave secreta do S3 é requerida",
"s3-settings-save-failed": "Falha ao salvar configurações do S3",
"s3-settings-saved": "Configurações do S3 salvas com sucesso",
"s3-ssl-enabled": "S3 SSL Habilitado",
"s3-ssl-enabled-description": "Usar SSL/TLS para conexões do S3",
"save-s3-settings": "Salvar Configurações do S3",
"schedule-board-archive": "Agendar Arquivamento de Quadro",
"schedule-board-backup": "Agendar Backup de Quadro",
"schedule-board-cleanup": "Agendar Limpeza de Quadro",
"scheduled-board-operations": "Agendar Operações de Quadro",
"start-all-migrations": "Iniciar Todas as Migrações",
"stop-all-migrations": "Parar Todas as Migrações",
"test-s3-connection": "Testar Conexão com S3",
"writable-path": "Caminho gravável",
"writable-path-description": "Caminho do diretório base para armazenamento de arquivos",
"add-job": "Adicionar Trabalho",
"attachment-migration": "Migração de Anexo",
"attachment-monitoring": "Monitoramento de Anexo",
"attachment-settings": "Configurações de Anexo",
"attachment-storage-settings": "Configurações de Armazenamento",
"automatic-migration": "Migração Automática",
"back-to-settings": "Voltar às Configurações",
"board-id": "ID do Quadro",
"board-migration": "Migração de Quadro",
"card-show-lists-on-minicard": "Mostrar Listas no Mini cartão",
"cleanup": "Limpeza",
"cleanup-old-jobs": "Limpar Trabalhos Antigos",
"completed": "Completado",
"conversion-info-text": "This conversion is performed once per board and improves performance. You can continue using the board normally.",
"converting-board": "Converting Board",
"converting-board-description": "Converting board structure for improved functionality. This may take a few moments.",
"cpu-cores": "CPU Cores",
"cpu-usage": "CPU Usage",
"current-action": "Current Action",
"database-migration": "Database Migration",
"database-migration-description": "Updating database structure for improved functionality and performance. This process may take several minutes.",
"database-migrations": "Database Migrations",
"days-old": "Days Old",
"duration": "Duration",
"errors": "Errors",
"estimated-time-remaining": "Estimated time remaining",
"every-1-day": "Every 1 day",
"every-1-hour": "Every 1 hour",
"every-1-minute": "Every 1 minute",
"every-10-minutes": "Every 10 minutes",
"every-30-minutes": "Every 30 minutes",
"every-5-minutes": "Every 5 minutes",
"every-6-hours": "Every 6 hours",
"export-monitoring": "Export Monitoring",
"filesystem-attachments": "Filesystem Attachments",
"filesystem-size": "Filesystem Size",
"filesystem-storage": "Filesystem Storage",
"force-board-scan": "Force Board Scan",
"gridfs-attachments": "GridFS Attachments",
"gridfs-size": "GridFS Size",
"conversion-info-text": "Esta conversão é realizada uma vez por quadro e melhora o desempenho. Você pode continuar usando o quadro normalmente.",
"converting-board": "Convertendo Quadro",
"converting-board-description": "Convertendo estrutura do quadro para melhorar a funcionalidade. Isto pode levar alguns instantes.",
"cpu-cores": "Núcleos de CPU",
"cpu-usage": "Uso de CPU",
"current-action": "Ação Atual",
"database-migration": "Migração de Banco de Dados",
"database-migration-description": "Atualizando estrutura de banco de dados para melhorar a funcionalidade e o desempenho. Este processo pode levar vários minutos.",
"database-migrations": "Migrações de Banco de Dados",
"days-old": "Dias de Vida",
"duration": "Duração",
"errors": "Erros",
"estimated-time-remaining": "Tempo restante estimado",
"every-1-day": "A cada 1 dia",
"every-1-hour": "A cada 1 hora",
"every-1-minute": "A cada 1 minuto",
"every-10-minutes": "A cada 10 minutos",
"every-30-minutes": "A cada 30 minutos",
"every-5-minutes": "A cada 5 minutos",
"every-6-hours": "A cada 6 horas",
"export-monitoring": "Exportar Monitoramento",
"filesystem-attachments": "Anexos do Sistema de Arquivos",
"filesystem-size": "Tamanho do Sistema de Arquivos",
"filesystem-storage": "Armazenamento do Sistema de Arquivos",
"force-board-scan": "Forçar Escaneamento do Quadro",
"gridfs-attachments": "Anexos do GridFS",
"gridfs-size": "Tamanho do GridFS",
"gridfs-storage": "GridFS",
"hide-list-on-minicard": "Hide List on Minicard",
"idle-migration": "Idle Migration",
"job-description": "Job Description",
"job-details": "Job Details",
"job-name": "Job Name",
"job-queue": "Job Queue",
"last-run": "Last Run",
"max-concurrent": "Max Concurrent",
"memory-usage": "Memory Usage",
"migrate-all-to-filesystem": "Migrate All to Filesystem",
"migrate-all-to-gridfs": "Migrate All to GridFS",
"migrate-all-to-s3": "Migrate All to S3",
"migrated-attachments": "Migrated Attachments",
"migration-batch-size": "Batch Size",
"migration-batch-size-description": "Number of attachments to process in each batch (1-100)",
"migration-cpu-threshold": "CPU Threshold (%)",
"migration-cpu-threshold-description": "Pause migration when CPU usage exceeds this percentage (10-90)",
"migration-delay-ms": "Delay (ms)",
"migration-delay-ms-description": "Delay between batches in milliseconds (100-10000)",
"migration-detector": "Migration Detector",
"migration-info-text": "Database migrations are performed once and improve system performance. The process continues in the background even if you close your browser.",
"migration-log": "Migration Log",
"migration-markers": "Migration Markers",
"migration-resume-failed": "Failed to resume migration",
"migration-resumed": "Migration resumed",
"migration-steps": "Migration Steps",
"migration-warning-text": "Please do not close your browser during migration. The process will continue in the background but may take longer to complete.",
"monitoring-export-failed": "Failed to export monitoring data",
"monitoring-refresh-failed": "Failed to refresh monitoring data",
"next": "Next",
"next-run": "Next Run",
"hide-list-on-minicard": "Esconder Lista no Mini cartão",
"idle-migration": "Migração Parada",
"job-description": "Descrição do Trabalho",
"job-details": "Detalhes do Trabalho",
"job-name": "Nome do Trabalho",
"job-queue": "Fila de Trabalhos",
"last-run": "Última Execução",
"max-concurrent": "Concorrência Máxima",
"memory-usage": "Uso de memória",
"migrate-all-to-filesystem": "Migrar Todo o Sistema de Arquivos",
"migrate-all-to-gridfs": "Migrar Todo o GridFS",
"migrate-all-to-s3": "Migrar Todo o S3",
"migrated-attachments": "Anexos Migrados",
"migration-batch-size": "Tamanho do Lote",
"migration-batch-size-description": "Número de anexos a processar em cada lote (1-100)",
"migration-cpu-threshold": "Limite de CPU (%)",
"migration-cpu-threshold-description": "Migração para quando uso de CPU ultrapassa esta porcentagem (10-90)",
"migration-delay-ms": "Atraso (ms)",
"migration-delay-ms-description": "Atraso entre lotes em milissegundos (100-10000)",
"migration-detector": "Detector de Migração",
"migration-info-text": "Migração de banco de dados é realizada uma vez e melhora o desempenho do sistema. O processo continua em segundo plano mesmo se você fechar o navegador.",
"migration-log": "Log da Migração",
"migration-markers": "Marcadores de Migração",
"migration-resume-failed": "Falha ao retomar migração",
"migration-resumed": "Migração retomada",
"migration-steps": "Etapas da Migração",
"migration-warning-text": "Não feche o navegador durante a migração. O processo continuará em segundo plano mas poderá levar mais tempo para concluir.",
"monitoring-export-failed": "Falha ao exportar dados de monitoramento",
"monitoring-refresh-failed": "Falha ao atualizar das de monitoramento",
"next": "Próximo",
"next-run": "Próxima Execução",
"of": "de",
"operation-type": "Operation Type",
"overall-progress": "Overall Progress",
"page": "Page",
"pause-migration": "Pause Migration",
"previous": "Previous",
"refresh": "Refresh",
"refresh-monitoring": "Refresh Monitoring",
"remaining-attachments": "Remaining Attachments",
"resume-migration": "Resume Migration",
"run-once": "Run once",
"s3-attachments": "S3 Attachments",
"s3-size": "S3 Size",
"operation-type": "Tipo de Operação",
"overall-progress": "Progresso Geral",
"page": "Página",
"pause-migration": "Parar Migração",
"previous": "Anterior",
"refresh": "Atualizar",
"refresh-monitoring": "Atualizar Monitoramento",
"remaining-attachments": "Anexos Restantes",
"resume-migration": "Continuar Migração",
"run-once": "Executar uma vez",
"s3-attachments": "Anexos S3",
"s3-size": "Tamanho S3",
"s3-storage": "S3",
"scanning-status": "Scanning Status",
"schedule": "Schedule",
"search-boards-or-operations": "Search boards or operations...",
"show-list-on-minicard": "Show List on Minicard",
"showing": "Showing",
"start-test-operation": "Start Test Operation",
"start-time": "Start Time",
"step-progress": "Step Progress",
"stop-migration": "Stop Migration",
"storage-distribution": "Storage Distribution",
"system-resources": "System Resources",
"total-attachments": "Total Attachments",
"total-operations": "Total Operations",
"total-size": "Total Size",
"unmigrated-boards": "Unmigrated Boards",
"weight": "Weight",
"idle": "Idle",
"complete": "Complete",
"scanning-status": "Status de Escaneamento",
"schedule": "Agendar",
"search-boards-or-operations": "Buscar quadros ou operações",
"show-list-on-minicard": "Mostrar Lista no Mini Cartão",
"showing": "Mostrando",
"start-test-operation": "Iniciar Teste de Operação",
"start-time": "Hora de início",
"step-progress": "Etapa em progresso",
"stop-migration": "Parar Migração",
"storage-distribution": "Distribuição de Armazenamento",
"system-resources": "Recursos do Sistema",
"total-attachments": "Total de Anexos",
"total-operations": "Total de Operações",
"total-size": "Tamanho Total",
"unmigrated-boards": "Quadros não migrados",
"weight": "Carga",
"idle": "Parado",
"complete": "Concluído",
"cron": "Cron"
}
+18 -10
View File
@@ -1,7 +1,9 @@
import { ReactiveCache } from '/imports/reactiveCache';
import { Meteor } from 'meteor/meteor';
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS, STORAGE_NAME_S3 } from '/models/lib/fileStoreStrategy';
import { STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS } from '/models/lib/fileStoreStrategy';
// DISABLED: S3 storage removed due to Node.js compatibility
// import { STORAGE_NAME_S3 } from '/models/lib/fileStoreStrategy';
// Attachment Storage Settings Collection
AttachmentStorageSettings = new Mongo.Collection('attachmentStorageSettings');
@@ -12,7 +14,7 @@ AttachmentStorageSettings.attachSchema(
// Default storage backend for new uploads
defaultStorage: {
type: String,
allowedValues: [STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS, STORAGE_NAME_S3],
allowedValues: [STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS],
defaultValue: STORAGE_NAME_FILESYSTEM,
label: 'Default Storage Backend'
},
@@ -54,6 +56,8 @@ AttachmentStorageSettings.attachSchema(
label: 'GridFS Storage Enabled'
},
// DISABLED: S3 storage configuration removed due to Node.js compatibility
/*
'storageConfig.s3': {
type: Object,
optional: true,
@@ -95,6 +99,7 @@ AttachmentStorageSettings.attachSchema(
defaultValue: 443,
label: 'S3 Port'
},
*/
// Upload settings
uploadSettings: {
@@ -212,8 +217,9 @@ AttachmentStorageSettings.helpers({
return this.storageConfig.filesystem?.enabled !== false;
case STORAGE_NAME_GRIDFS:
return this.storageConfig.gridfs?.enabled !== false;
case STORAGE_NAME_S3:
return this.storageConfig.s3?.enabled === true;
// DISABLED: S3 storage removed due to Node.js compatibility
// case STORAGE_NAME_S3:
// return this.storageConfig.s3?.enabled === true;
default:
return false;
}
@@ -228,8 +234,9 @@ AttachmentStorageSettings.helpers({
return this.storageConfig.filesystem;
case STORAGE_NAME_GRIDFS:
return this.storageConfig.gridfs;
case STORAGE_NAME_S3:
return this.storageConfig.s3;
// DISABLED: S3 storage removed due to Node.js compatibility
// case STORAGE_NAME_S3:
// return this.storageConfig.s3;
default:
return null;
}
@@ -274,9 +281,10 @@ if (Meteor.isServer) {
gridfs: {
enabled: true
},
s3: {
enabled: false
}
// DISABLED: S3 storage removed due to Node.js compatibility
// s3: {
// enabled: false
// }
},
uploadSettings: {
maxFileSize: process.env.ATTACHMENTS_UPLOAD_MAX_SIZE ? parseInt(process.env.ATTACHMENTS_UPLOAD_MAX_SIZE) : 0,
@@ -347,7 +355,7 @@ if (Meteor.isServer) {
throw new Meteor.Error('not-authorized', 'Admin access required');
}
if (![STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS, STORAGE_NAME_S3].includes(storageName)) {
if (![STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS].includes(storageName)) {
throw new Meteor.Error('invalid-storage', 'Invalid storage backend');
}
+6 -2
View File
@@ -5,8 +5,12 @@ import { isFileValid } from './fileValidation';
import { createBucket } from './lib/grid/createBucket';
import fs from 'fs';
import path from 'path';
import { AttachmentStoreStrategyFilesystem, AttachmentStoreStrategyGridFs, AttachmentStoreStrategyS3 } from '/models/lib/attachmentStoreStrategy';
import FileStoreStrategyFactory, {moveToStorage, rename, STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS, STORAGE_NAME_S3} from '/models/lib/fileStoreStrategy';
import { AttachmentStoreStrategyFilesystem, AttachmentStoreStrategyGridFs } from '/models/lib/attachmentStoreStrategy';
// DISABLED: S3 storage strategy removed due to Node.js compatibility
// import { AttachmentStoreStrategyS3 } from '/models/lib/attachmentStoreStrategy';
import FileStoreStrategyFactory, {moveToStorage, rename, STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS} from '/models/lib/fileStoreStrategy';
// DISABLED: S3 storage removed due to Node.js compatibility
// import { STORAGE_NAME_S3 } from '/models/lib/fileStoreStrategy';
import { getAttachmentWithBackwardCompatibility, getAttachmentsWithBackwardCompatibility } from './lib/attachmentBackwardCompatibility';
import AttachmentStorageSettings from './attachmentStorageSettings';
+31 -304
View File
@@ -4,7 +4,8 @@ import { createObjectId } from './grid/createObjectId';
import { httpStreamOutput } from './httpStream.js';
//import {} from './s3/Server-side-file-store.js';
import { ObjectID } from 'bson';
var Minio = require('minio');
// DISABLED: Minio support removed due to Node.js compatibility issues
// var Minio = require('minio');
export const STORAGE_NAME_FILESYSTEM = "fs";
export const STORAGE_NAME_GRIDFS = "gridfs";
@@ -18,16 +19,17 @@ export default class FileStoreStrategyFactory {
* @param storagePath file storage path
* @param classFileStoreStrategyGridFs use this strategy for GridFS storage
* @param gridFsBucket use this GridFS Bucket as GridFS Storage
* @param classFileStoreStrategyS3 use this strategy for S3 storage
* @param s3Bucket use this S3 Bucket as S3 Storage
* @param classFileStoreStrategyS3 DISABLED: S3 storage strategy removed due to Node.js compatibility
* @param s3Bucket DISABLED: S3 bucket removed due to Node.js compatibility
*/
constructor(classFileStoreStrategyFilesystem, storagePath, classFileStoreStrategyGridFs, gridFsBucket, classFileStoreStrategyS3, s3Bucket) {
this.classFileStoreStrategyFilesystem = classFileStoreStrategyFilesystem;
this.storagePath = storagePath;
this.classFileStoreStrategyGridFs = classFileStoreStrategyGridFs;
this.gridFsBucket = gridFsBucket;
this.classFileStoreStrategyS3 = classFileStoreStrategyS3;
this.s3Bucket = s3Bucket;
// DISABLED: S3 storage strategy removed due to Node.js compatibility
// this.classFileStoreStrategyS3 = classFileStoreStrategyS3;
// this.s3Bucket = s3Bucket;
}
/** returns the right FileStoreStrategy
@@ -43,7 +45,8 @@ export default class FileStoreStrategyFactory {
// uploaded by import, so it's in GridFS (MongoDB)
storage = STORAGE_NAME_GRIDFS;
} else if (fileObj && fileObj.versions && fileObj.versions[version] && fileObj.versions[version].meta && fileObj.versions[version].meta.pipePath) {
storage = STORAGE_NAME_S3;
// DISABLED: S3 storage removed due to Node.js compatibility - fallback to filesystem
storage = STORAGE_NAME_FILESYSTEM;
} else {
// newly uploaded, so it's at the filesystem
storage = STORAGE_NAME_FILESYSTEM;
@@ -51,14 +54,16 @@ export default class FileStoreStrategyFactory {
}
}
let ret;
if ([STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS, STORAGE_NAME_S3].includes(storage)) {
if ([STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS].includes(storage)) {
if (storage == STORAGE_NAME_FILESYSTEM) {
ret = new this.classFileStoreStrategyFilesystem(fileObj, versionName);
} else if (storage == STORAGE_NAME_S3) {
ret = new this.classFileStoreStrategyS3(this.s3Bucket, fileObj, versionName);
} else if (storage == STORAGE_NAME_GRIDFS) {
ret = new this.classFileStoreStrategyGridFs(this.gridFsBucket, fileObj, versionName);
}
} else if (storage == STORAGE_NAME_S3) {
// DISABLED: S3 storage removed due to Node.js compatibility - fallback to filesystem
console.warn('S3 storage is disabled due to Node.js compatibility issues, falling back to filesystem storage');
ret = new this.classFileStoreStrategyFilesystem(fileObj, versionName);
}
return ret;
}
@@ -323,334 +328,56 @@ export class FileStoreStrategyFilesystem extends FileStoreStrategy {
}
/** Strategy to store attachments at S3 */
/** DISABLED: Strategy to store attachments at S3 - Minio support removed due to Node.js compatibility */
export class FileStoreStrategyS3 extends FileStoreStrategy {
/** constructor
* @param s3Bucket use this S3 Bucket
* @param fileObj the current file object
* @param versionName the current version
*/
constructor(s3Bucket, fileObj, versionName) {
super(fileObj, versionName);
this.s3Bucket = s3Bucket;
}
/** after successfull upload */
onAfterUpload() {
if (process.env.S3) {
Meteor.settings.s3 = JSON.parse(process.env.S3).s3;
}
const s3Conf = Meteor.settings.s3 || {};
const bound = Meteor.bindEnvironment((callback) => {
return callback();
});
/* https://github.com/veliovgroup/Meteor-Files/blob/master/docs/aws-s3-integration.md */
/* Check settings existence in `Meteor.settings` */
/* This is the best practice for app security */
/*
if (s3Conf && s3Conf.key && s3Conf.secret && s3Conf.bucket && s3Conf.region && s3Conf.sslEnabled) {
// Create a new S3 object
const s3 = new S3({
secretAccessKey: s3Conf.secret,
accessKeyId: s3Conf.key,
region: s3Conf.region,
sslEnabled: s3Conf.sslEnabled, // optional
httpOptions: {
timeout: 6000,
agent: false
}
});
}
*/
if (s3Conf && s3Conf.key && s3Conf.secret && s3Conf.bucket && s3Conf.endPoint && s3Conf.port && s3Conf.sslEnabled) {
// Create a new S3 object
var s3Client = new Minio.Client({
endPoint: s3Conf.endPoint,
port: s3Conf.port,
useSSL: s3Conf.sslEnabled,
accessKey: s3Conf.key,
secretKey: s3Conf.secret
//region: s3Conf.region,
// sslEnabled: true, // optional
//httpOptions: {
// timeout: 6000,
// agent: false
//
});
// Declare the Meteor file collection on the Server
const UserFiles = new FilesCollection({
debug: false, // Change to `true` for debugging
storagePath: storagePath,
collectionName: 'userFiles',
// Disallow Client to execute remove, use the Meteor.method
allowClientCode: false,
// Start moving files to AWS:S3
// after fully received by the Meteor server
onAfterUpload(fileRef) {
// Run through each of the uploaded file
_.each(fileRef.versions, (vRef, version) => {
// We use Random.id() instead of real file's _id
// to secure files from reverse engineering on the AWS client
const filePath = 'files/' + (Random.id()) + '-' + version + '.' + fileRef.extension;
// Create the AWS:S3 object.
// Feel free to change the storage class from, see the documentation,
// `STANDARD_IA` is the best deal for low access files.
// Key is the file name we are creating on AWS:S3, so it will be like files/XXXXXXXXXXXXXXXXX-original.XXXX
// Body is the file stream we are sending to AWS
const fileObj = this.fileObj;
const versionName = this.versionName;
const metadata = { ...fileObj.meta, versionName, fileId: fileObj._id };
s3Client.putObject({
// ServerSideEncryption: 'AES256', // Optional
//StorageClass: 'STANDARD',
Bucket: s3Conf.bucket,
Key: filePath,
Body: fs.createReadStream(vRef.path),
metadata,
ContentType: vRef.type,
}, (error) => {
bound(() => {
if (error) {
console.error(error);
} else {
// Update FilesCollection with link to the file at AWS
const upd = { $set: {} };
upd['$set']['versions.' + version + '.meta.pipePath'] = filePath;
this.collection.update({
_id: fileRef._id
}, upd, (updError) => {
if (updError) {
console.error(updError);
} else {
// Unlink original files from FS after successful upload to AWS:S3
this.unlink(this.collection.findOne(fileRef._id), version);
}
});
}
});
});
});
},
});
}
console.warn('S3 storage is disabled due to Node.js compatibility issues');
}
// Intercept access to the file
// And redirect request to AWS:S3
interceptDownload(http, fileRef, version) {
let path;
if (fileRef && fileRef.versions && fileRef.versions[version] && fileRef.versions[version].meta && fileRef.versions[version].meta.pipePath) {
path = fileRef.versions[version].meta.pipePath;
}
if (path) {
// If file is successfully moved to AWS:S3
// We will pipe request to AWS:S3
// So, original link will stay always secure
// To force ?play and ?download parameters
// and to keep original file name, content-type,
// content-disposition, chunked "streaming" and cache-control
// we're using low-level .serve() method
const opts = {
Bucket: s3Conf.bucket,
Key: path
};
if (http.request.headers.range) {
const vRef = fileRef.versions[version];
let range = _.clone(http.request.headers.range);
const array = range.split(/bytes=([0-9]*)-([0-9]*)/);
const start = parseInt(array[1]);
let end = parseInt(array[2]);
if (isNaN(end)) {
// Request data from AWS:S3 by small chunks
end = (start + this.chunkSize) - 1;
if (end >= vRef.size) {
end = vRef.size - 1;
}
}
opts.Range = `bytes=${start}-${end}`;
http.request.headers.range = `bytes=${start}-${end}`;
}
const fileColl = this;
s3Client.getObject(opts, function (error) {
if (error) {
console.error(error);
if (!http.response.finished) {
http.response.end();
}
} else {
if (http.request.headers.range && this.httpResponse.headers['content-range']) {
// Set proper range header in according to what is returned from AWS:S3
http.request.headers.range = this.httpResponse.headers['content-range'].split('/')[0].replace('bytes ', 'bytes=');
}
const dataStream = new stream.PassThrough();
fileColl.serve(http, fileRef, fileRef.versions[version], version, dataStream);
dataStream.end(this.data.Body);
}
});
return true;
}
// While file is not yet uploaded to AWS:S3
// It will be served file from FS
return false;
console.warn('S3 storage is disabled due to Node.js compatibility issues');
http.response.writeHead(503, { 'Content-Type': 'text/plain' });
http.response.end('S3 storage is disabled');
}
/** after file remove */
onAfterRemove() {
if (process.env.S3) {
Meteor.settings.s3 = JSON.parse(process.env.S3).s3;
}
const s3Conf = Meteor.settings.s3 || {};
const bound = Meteor.bindEnvironment((callback) => {
return callback();
});
if (s3Conf && s3Conf.key && s3Conf.secret && s3Conf.bucket && s3Conf.endPoint && s3Conf.port && s3Conf.sslEnabled) {
// Create a new S3 object
var s3Client = new Minio.Client({
endPoint: s3Conf.endPoint,
port: s3Conf.port,
useSSL: s3Conf.sslEnabled,
accessKey: s3Conf.key,
secretKey: s3Conf.secret
});
}
this.unlink();
super.onAfterRemove();
// Intercept FilesCollection's remove method to remove file from AWS:S3
const _origRemove = UserFiles.remove;
UserFiles.remove = function (selector, callback) {
const cursor = this.collection.find(selector);
cursor.forEach((fileRef) => {
_.each(fileRef.versions, (vRef) => {
if (vRef && vRef.meta && vRef.meta.pipePath) {
// Remove the object from AWS:S3 first, then we will call the original FilesCollection remove
s3Client.deleteObject({
Bucket: s3Conf.bucket,
Key: vRef.meta.pipePath,
}, (error) => {
bound(() => {
if (error) {
console.error(error);
}
});
});
}
});
});
// Remove original file from database
_origRemove.call(this, selector, callback);
};
}
/** returns a read stream
* @return the read stream
*/
getReadStream() {
const s3Id = this.getS3ObjectId();
let ret;
if (s3Id) {
ret = this.s3Bucket.openDownloadStream(s3Id);
}
return ret;
throw new Error('S3 storage is disabled due to Node.js compatibility issues');
}
/** returns a write stream
* @param filePath if set, use this path
* @return the write stream
*/
getWriteStream(filePath) {
const fileObj = this.fileObj;
const versionName = this.versionName;
const metadata = { ...fileObj.meta, versionName, fileId: fileObj._id };
const ret = this.s3Bucket.openUploadStream(this.fileObj.name, {
contentType: fileObj.type || 'binary/octet-stream',
metadata,
});
return ret;
throw new Error('S3 storage is disabled due to Node.js compatibility issues');
}
/** writing finished
* @param finishedData the data of the write stream finish event
*/
writeStreamFinished(finishedData) {
const s3FileIdName = this.getS3FileIdName();
Attachments.update({ _id: this.fileObj._id }, { $set: { [s3FileIdName]: finishedData._id.toHexString(), } });
getPath() {
throw new Error('S3 storage is disabled due to Node.js compatibility issues');
}
/** remove the file */
unlink() {
const s3Id = this.gets3ObjectId();
if (s3Id) {
this.s3Bucket.delete(s3Id, err => {
if (err) {
console.error("error on S3 bucket.delete: ", err);
}
});
}
const s3FileIdName = this.getS3FileIdName();
Attachments.update({ _id: this.fileObj._id }, { $unset: { [s3FileIdName]: 1 } });
getNewPath(storagePath) {
throw new Error('S3 storage is disabled due to Node.js compatibility issues');
}
/** return the storage name
* @return the storage name
*/
getStorageName() {
return STORAGE_NAME_S3;
}
/** returns the GridFS Object-Id
* @return the GridFS Object-Id
*/
getS3ObjectId() {
let ret;
const s3FileId = this.s3FileId();
if (s3FileId) {
ret = createObjectId({ s3FileId });
}
return ret;
writeStreamFinished(finishedData) {
console.warn('S3 storage is disabled due to Node.js compatibility issues');
}
/** returns the S3 Object-Id
* @return the S3 Object-Id
*/
getS3FileId() {
const ret = (this.fileObj.versions[this.versionName].meta || {})
.s3FileId;
return ret;
unlink() {
console.warn('S3 storage is disabled due to Node.js compatibility issues');
}
/** returns the property name of s3FileId
* @return the property name of s3FileId
*/
getS3FileIdName() {
const ret = `versions.${this.versionName}.meta.s3FileId`;
return ret;
}
};
}
/** move the fileObj to another storage
@@ -761,4 +488,4 @@ export const rename = function(fileObj, newName, fileStoreStrategyFactory) {
[`versions.${versionName}.path`]: newFilePath,
} });
});
};
};
+239 -2025
View File
File diff suppressed because it is too large. Load diff
+1 -8
View File
@@ -1,6 +1,6 @@
{
"name": "wekan",
"version": "v8.02.0",
"version": "v8.04.0",
"description": "Open-Source kanban",
"private": true,
"repository": {
@@ -47,14 +47,7 @@
"markdown-it-mathjax3": "^4.3.2",
"meteor-accounts-t9n": "^2.6.0",
"meteor-node-stubs": "^1.2.24",
"minio": "^7.1.3",
"moment": "^2.30.1",
"mongodb3legacy": "npm:mongodb@3.7.4",
"mongodb4legacy": "npm:mongodb@4.17.2",
"mongodb5legacy": "npm:mongodb@5.9.2",
"mongodb6legacy": "npm:mongodb@6.3.0",
"mongodb7legacy": "npm:mongodb@6.20.0",
"mongodb8legacy": "npm:mongodb@6.20.0",
"os": "^0.1.2",
"papaparse": "^5.5.3",
"pretty-ms": "^7.0.1",
+1 -1
View File
@@ -14,7 +14,7 @@ export function getSecureDOMPurifyConfig() {
],
// Block dangerous attributes that can cause XSS and CSS injection
FORBID_ATTR: [
'xlink:href', 'href', 'onload', 'onerror', 'onclick', 'onmouseover',
'xlink:href', 'onload', 'onerror', 'onclick', 'onmouseover',
'onfocus', 'onblur', 'onchange', 'onsubmit', 'onreset', 'onselect',
'onunload', 'onresize', 'onscroll', 'onkeydown', 'onkeyup', 'onkeypress',
'onmousedown', 'onmouseup', 'onmouseover', 'onmouseout', 'onmousemove',
+2 -2
View File
@@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
appTitle = (defaultText = "Wekan"),
# The name of the app as it is displayed to the user.
appVersion = 802,
appVersion = 804,
# Increment this for every release.
appMarketingVersion = (defaultText = "8.02.0~2025-10-14"),
appMarketingVersion = (defaultText = "8.04.0~2025-10-16"),
# Human-readable presentation of the app version.
minUpgradableAppVersion = 0,
+90 -252
View File
@@ -1,201 +1,37 @@
#!/bin/bash
# MongoDB Control Script
# Handles MongoDB server startup with automatic version detection and switching
# Supports MongoDB versions 3-8 with automatic binary selection
# Starts MongoDB 7.x server only
# get wekan/mongo settings
echo "Reading snap settings..."
source $SNAP/bin/wekan-read-settings
# Debug: Show what we got from snap settings
echo "Snap settings loaded:"
echo " MONGODB_BIND_IP: '${MONGODB_BIND_IP}'"
echo " MONGODB_PORT: '${MONGODB_PORT}'"
echo " MONGODB_BIND_UNIX_SOCKET: '${MONGODB_BIND_UNIX_SOCKET}'"
# Debug: Check snap settings directly
echo "Direct snap settings check:"
echo " mongodb-port: $(snapctl get mongodb-port 2>/dev/null || echo 'not set')"
echo " mongodb-bind-ip: $(snapctl get mongodb-bind-ip 2>/dev/null || echo 'not set')"
echo " mongodb-bind-unix-socket: $(snapctl get mongodb-bind-unix-socket 2>/dev/null || echo 'not set')"
if [ "true" == "${DISABLE_MONGODB}" ]; then
echo "mongodb is disabled. Stop service"
snapctl stop --disable ${SNAP_NAME}.mongodb
exit 0
fi
# MongoDB Version Detection and Auto-Switching System
# Detects MongoDB server version from connection attempts and switches to correct binary
# MongoDB binary paths for different versions
# Note: Currently only versions 3 and 7 are available in the snap package
# Versions 4, 5, 6, 8 would need to be added to the snap package
MONGO3_BIN="/snap/${SNAP_NAME}/current/migratemongo/bin"
MONGO7_BIN="/snap/${SNAP_NAME}/current/bin"
MONGO3_LIB="/snap/${SNAP_NAME}/current/migratemongo/lib"
MONGO7_LIB="/snap/${SNAP_NAME}/current/usr/lib"
# Future paths for additional versions (when added to snap package)
MONGO4_BIN="/snap/${SNAP_NAME}/current/mongodb4/bin"
MONGO5_BIN="/snap/${SNAP_NAME}/current/mongodb5/bin"
MONGO6_BIN="/snap/${SNAP_NAME}/current/mongodb6/bin"
MONGO8_BIN="/snap/${SNAP_NAME}/current/mongodb8/bin"
# Version detection log
VERSION_DETECTION_LOG="${SNAP_COMMON}/mongodb-version-detection.log"
# Log version detection events
log_version_detection() {
echo "$(date): $1" >> "$VERSION_DETECTION_LOG"
}
# Detect MongoDB server version by attempting connection
detect_mongodb_version() {
local mongo_url="${MONGO_URL:-mongodb://127.0.0.1:27017/wekan}"
local detected_version=""
log_version_detection "Starting MongoDB version detection for: $mongo_url"
# Try to connect with MongoDB 7 first (latest available)
log_version_detection "Attempting connection with MongoDB 7 binary"
if timeout 10s /snap/${SNAP_NAME}/current/bin/mongosh --quiet --eval "db.runCommand({buildInfo: 1}).version" "$mongo_url" 2>/dev/null | grep -q "7\."; then
detected_version="7"
log_version_detection "Detected MongoDB 7.x server"
elif timeout 10s /snap/${SNAP_NAME}/current/bin/mongosh --quiet --eval "db.runCommand({buildInfo: 1}).version" "$mongo_url" 2>&1 | grep -q "protocol version\|wire protocol"; then
# Check for wire protocol errors that indicate older version
local error_output=$(timeout 10s /snap/${SNAP_NAME}/current/bin/mongosh --quiet --eval "db.runCommand({buildInfo: 1}).version" "$mongo_url" 2>&1)
if echo "$error_output" | grep -q "protocol version 0\|wire protocol version 0"; then
detected_version="3"
log_version_detection "Detected MongoDB 3.x server (wire protocol 0)"
elif echo "$error_output" | grep -q "protocol version 1\|wire protocol version 1"; then
detected_version="3"
log_version_detection "Detected MongoDB 3.x server (wire protocol 1)"
elif echo "$error_output" | grep -q "protocol version 2\|wire protocol version 2"; then
detected_version="3"
log_version_detection "Detected MongoDB 3.x server (wire protocol 2)"
elif echo "$error_output" | grep -q "protocol version 3\|wire protocol version 3"; then
detected_version="3"
log_version_detection "Detected MongoDB 3.x server (wire protocol 3)"
elif echo "$error_output" | grep -q "protocol version 4\|wire protocol version 4"; then
detected_version="4"
log_version_detection "Detected MongoDB 4.x server (wire protocol 4)"
elif echo "$error_output" | grep -q "protocol version 5\|wire protocol version 5"; then
detected_version="5"
log_version_detection "Detected MongoDB 5.x server (wire protocol 5)"
elif echo "$error_output" | grep -q "protocol version 6\|wire protocol version 6"; then
detected_version="6"
log_version_detection "Detected MongoDB 6.x server (wire protocol 6)"
elif echo "$error_output" | grep -q "protocol version 7\|wire protocol version 7"; then
detected_version="7"
log_version_detection "Detected MongoDB 7.x server (wire protocol 7)"
elif echo "$error_output" | grep -q "protocol version 8\|wire protocol version 8"; then
detected_version="8"
log_version_detection "Detected MongoDB 8.x server (wire protocol 8)"
else
log_version_detection "Unknown wire protocol error: $error_output"
fi
else
log_version_detection "No MongoDB server running or connection failed"
fi
echo "$detected_version"
}
# Switch to appropriate MongoDB binary based on detected version
switch_mongodb_binary() {
local version="$1"
case "$version" in
"3")
if [ -f "/snap/${SNAP_NAME}/current/migratemongo/bin/mongod" ]; then
log_version_detection "Switching to MongoDB 3.x binary"
export PATH="${MONGO3_BIN}:${PATH}"
export LD_LIBRARY_PATH="${MONGO3_LIB}:${MONGO3_LIB}/x86_64-linux-gnu:${LD_LIBRARY_PATH}"
echo "3" > "${SNAP_COMMON}/mongodb-active-version"
else
log_version_detection "MongoDB 3.x binary not found, using default MongoDB 7.x"
switch_mongodb_binary "7"
fi
;;
"4")
if [ -f "/snap/${SNAP_NAME}/current/mongodb4/bin/mongod" ]; then
log_version_detection "Switching to MongoDB 4.x binary"
export PATH="${MONGO4_BIN}:${PATH}"
echo "4" > "${SNAP_COMMON}/mongodb-active-version"
else
log_version_detection "MongoDB 4.x binary not found, using default MongoDB 7.x"
switch_mongodb_binary "7"
fi
;;
"5")
if [ -f "/snap/${SNAP_NAME}/current/mongodb5/bin/mongod" ]; then
log_version_detection "Switching to MongoDB 5.x binary"
export PATH="${MONGO5_BIN}:${PATH}"
echo "5" > "${SNAP_COMMON}/mongodb-active-version"
else
log_version_detection "MongoDB 5.x binary not found, using default MongoDB 7.x"
switch_mongodb_binary "7"
fi
;;
"6")
if [ -f "/snap/${SNAP_NAME}/current/mongodb6/bin/mongod" ]; then
log_version_detection "Switching to MongoDB 6.x binary"
export PATH="${MONGO6_BIN}:${PATH}"
echo "6" > "${SNAP_COMMON}/mongodb-active-version"
else
log_version_detection "MongoDB 6.x binary not found, using default MongoDB 7.x"
switch_mongodb_binary "7"
fi
;;
"7"|"")
log_version_detection "Using MongoDB 7.x binary (default)"
export PATH="${MONGO7_BIN}:${PATH}"
export LD_LIBRARY_PATH="${MONGO7_LIB}:${LD_LIBRARY_PATH}"
echo "7" > "${SNAP_COMMON}/mongodb-active-version"
;;
"8")
if [ -f "/snap/${SNAP_NAME}/current/mongodb8/bin/mongod" ]; then
log_version_detection "Switching to MongoDB 8.x binary"
export PATH="${MONGO8_BIN}:${PATH}"
echo "8" > "${SNAP_COMMON}/mongodb-active-version"
else
log_version_detection "MongoDB 8.x binary not found, using default MongoDB 7.x"
switch_mongodb_binary "7"
fi
;;
*)
log_version_detection "Unknown version $version, using default MongoDB 7.x"
export PATH="${MONGO7_BIN}:${PATH}"
export LD_LIBRARY_PATH="${MONGO7_LIB}:${LD_LIBRARY_PATH}"
echo "7" > "${SNAP_COMMON}/mongodb-active-version"
;;
esac
}
# Main version detection and switching logic
setup_mongodb_version() {
# Check if we have a cached version
if [ -f "${SNAP_COMMON}/mongodb-active-version" ]; then
local cached_version=$(cat "${SNAP_COMMON}/mongodb-active-version")
log_version_detection "Using cached MongoDB version: $cached_version"
switch_mongodb_binary "$cached_version"
return
fi
# Detect version and switch
local detected_version=$(detect_mongodb_version)
if [ -n "$detected_version" ]; then
switch_mongodb_binary "$detected_version"
else
# Default to MongoDB 7 if detection fails
log_version_detection "Version detection failed, using default MongoDB 7.x"
switch_mongodb_binary "7"
fi
}
# Run version detection and setup
setup_mongodb_version
# make sure we have set minimum env variables for locale
if [ -z "${LANG}" ]; then
export LANG=en_US.UTF-8
fi
export LC_ALL=C
# If CPU does not support AVX, use Qemu that supports AVX.
# Migratemongo is at https://github.com/wekan/migratemongo
# and at directory /snap/${SNAP_NAME}/current/migratemongo/avx
# is bash scripts like mongod, mongosh check avx support and use Qemu if needed.
export PATH=/snap/${SNAP_NAME}/current/migratemongo/avx:/snap/${SNAP_NAME}/current/usr/bin:/snap/${SNAP_NAME}/current/bin:${PATH}
export PATH=/snap/${SNAP_NAME}/current/usr/bin:/snap/${SNAP_NAME}/current/bin:${PATH}
export LD_LIBRARY_PATH=/snap/${SNAP_NAME}/current/lib:/snap/${SNAP_NAME}/current/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}
# If temporary settings log exists, delete it
@@ -218,78 +54,80 @@ fi
# Set MongoDB log file path
export MONGO_LOG_FILE="${SNAP_COMMON}/mongodb.log"
# Start MongoDB with appropriate version
echo "Starting MongoDB with detected version..."
log_version_detection "Starting MongoDB server"
# Build bind options from snap settings
BIND_OPTIONS=""
if [ "nill" != "${MONGODB_BIND_UNIX_SOCKET}" ] && [ -n "${MONGODB_BIND_UNIX_SOCKET}" ]; then
BIND_OPTIONS+=" --unixSocketPrefix ${MONGODB_BIND_UNIX_SOCKET}"
fi
if [ -n "${MONGODB_BIND_IP}" ]; then
BIND_OPTIONS+=" --bind_ip ${MONGODB_BIND_IP}"
else
BIND_OPTIONS+=" --bind_ip 127.0.0.1"
fi
if [ -n "${MONGODB_PORT}" ]; then
BIND_OPTIONS+=" --port ${MONGODB_PORT}"
else
BIND_OPTIONS+=" --port 27019"
fi
# Get the active version
ACTIVE_VERSION=$(cat "${SNAP_COMMON}/mongodb-active-version" 2>/dev/null || echo "7")
# Debug: Show what settings we're using
echo "MongoDB settings:"
echo " MONGODB_BIND_IP: ${MONGODB_BIND_IP:-127.0.0.1}"
echo " MONGODB_PORT: ${MONGODB_PORT:-27017}"
echo " MONGODB_BIND_UNIX_SOCKET: ${MONGODB_BIND_UNIX_SOCKET:-not set}"
echo " BIND_OPTIONS: ${BIND_OPTIONS}"
case "$ACTIVE_VERSION" in
"3")
echo "Starting MongoDB 3.x server..."
log_version_detection "Starting MongoDB 3.x server"
exec /snap/${SNAP_NAME}/current/migratemongo/bin/mongod \
--dbpath="$MONGO_DATA_DIR" \
--logpath="$MONGO_LOG_FILE" \
--logappend \
--bind_ip=127.0.0.1 \
--port=27017 \
--fork
;;
"4")
echo "Starting MongoDB 4.x server..."
log_version_detection "Starting MongoDB 4.x server"
exec /snap/${SNAP_NAME}/current/mongodb4/bin/mongod \
--dbpath="$MONGO_DATA_DIR" \
--logpath="$MONGO_LOG_FILE" \
--logappend \
--bind_ip=127.0.0.1 \
--port=27017 \
--fork
;;
"5")
echo "Starting MongoDB 5.x server..."
log_version_detection "Starting MongoDB 5.x server"
exec /snap/${SNAP_NAME}/current/mongodb5/bin/mongod \
--dbpath="$MONGO_DATA_DIR" \
--logpath="$MONGO_LOG_FILE" \
--logappend \
--bind_ip=127.0.0.1 \
--port=27017 \
--fork
;;
"6")
echo "Starting MongoDB 6.x server..."
log_version_detection "Starting MongoDB 6.x server"
exec /snap/${SNAP_NAME}/current/mongodb6/bin/mongod \
--dbpath="$MONGO_DATA_DIR" \
--logpath="$MONGO_LOG_FILE" \
--logappend \
--bind_ip=127.0.0.1 \
--port=27017 \
--fork
;;
"7"|*)
echo "Starting MongoDB 7.x server..."
log_version_detection "Starting MongoDB 7.x server"
exec /snap/${SNAP_NAME}/current/bin/mongod \
--dbpath="$MONGO_DATA_DIR" \
--logpath="$MONGO_LOG_FILE" \
--logappend \
--bind_ip=127.0.0.1 \
--port=27017 \
--fork
;;
"8")
echo "Starting MongoDB 8.x server..."
log_version_detection "Starting MongoDB 8.x server"
exec /snap/${SNAP_NAME}/current/mongodb8/bin/mongod \
--dbpath="$MONGO_DATA_DIR" \
--logpath="$MONGO_LOG_FILE" \
--logappend \
--bind_ip=127.0.0.1 \
--port=27017 \
--fork
;;
esac
# Check if MongoDB is already running
check_mongodb_running() {
local port="${MONGODB_PORT:-27017}"
local bind_ip="${MONGODB_BIND_IP:-127.0.0.1}"
# Check if MongoDB is already running on the configured port
if netstat -tuln 2>/dev/null | grep -q ":${port} "; then
echo "MongoDB is already running on port ${port}"
return 0
fi
# Alternative check using lsof if netstat is not available
if command -v lsof >/dev/null 2>&1; then
if lsof -i ":${port}" >/dev/null 2>&1; then
echo "MongoDB is already running on port ${port} (detected via lsof)"
return 0
fi
fi
# Check if there's a PID file and the process is still running
if [ -f "${SNAP_COMMON}/mongodb.pid" ]; then
local pid=$(cat "${SNAP_COMMON}/mongodb.pid" 2>/dev/null)
if [ -n "$pid" ] && kill -0 "$pid" 2>/dev/null; then
echo "MongoDB is already running (PID: $pid)"
return 0
else
# Remove stale PID file
rm -f "${SNAP_COMMON}/mongodb.pid"
fi
fi
return 1
}
# Cleanup function to remove PID file on exit
cleanup() {
rm -f "${SNAP_COMMON}/mongodb.pid"
}
trap cleanup EXIT
# Check if MongoDB is already running
if check_mongodb_running; then
echo "MongoDB is already running. Exiting to prevent multiple instances."
exit 0
fi
# Start MongoDB 7.x server
echo "Starting MongoDB 7.x server..."
# Create PID file
echo $$ > "${SNAP_COMMON}/mongodb.pid"
exec /snap/${SNAP_NAME}/current/bin/mongod \
--dbpath="$MONGO_DATA_DIR" \
--logpath="$MONGO_LOG_FILE" \
--logappend $BIND_OPTIONS
-179
View File
@@ -1,179 +0,0 @@
#!/bin/bash
# MongoDB Control Script
# Handles MongoDB server startup with automatic version detection and switching
# get wekan/mongo settings
source $SNAP/bin/wekan-read-settings
if [ "true" == "${DISABLE_MONGODB}" ]; then
echo "mongodb is disabled. Stop service"
snapctl stop --disable ${SNAP_NAME}.mongodb
exit 0
fi
# MongoDB Version Detection and Auto-Switching System
# Detects MongoDB server version from connection attempts and switches to correct binary
# MongoDB binary paths for different versions
MONGO3_BIN="/snap/${SNAP_NAME}/current/migratemongo/bin"
MONGO7_BIN="/snap/${SNAP_NAME}/current/bin"
MONGO3_LIB="/snap/${SNAP_NAME}/current/migratemongo/lib"
MONGO7_LIB="/snap/${SNAP_NAME}/current/usr/lib"
# Version detection log
VERSION_DETECTION_LOG="${SNAP_COMMON}/mongodb-version-detection.log"
# Log version detection events
log_version_detection() {
echo "$(date): $1" >> "$VERSION_DETECTION_LOG"
}
# Detect MongoDB server version by attempting connection
detect_mongodb_version() {
local mongo_url="${MONGO_URL:-mongodb://127.0.0.1:27017/wekan}"
local detected_version=""
log_version_detection "Starting MongoDB version detection for: $mongo_url"
# Try to connect with MongoDB 7 first (latest)
log_version_detection "Attempting connection with MongoDB 7 binary"
if timeout 10s /snap/${SNAP_NAME}/current/bin/mongosh --quiet --eval "db.runCommand({buildInfo: 1}).version" "$mongo_url" 2>/dev/null | grep -q "7\."; then
detected_version="7"
log_version_detection "Detected MongoDB 7.x server"
elif timeout 10s /snap/${SNAP_NAME}/current/bin/mongosh --quiet --eval "db.runCommand({buildInfo: 1}).version" "$mongo_url" 2>&1 | grep -q "protocol version\|wire protocol"; then
# Check for wire protocol errors that indicate older version
local error_output=$(timeout 10s /snap/${SNAP_NAME}/current/bin/mongosh --quiet --eval "db.runCommand({buildInfo: 1}).version" "$mongo_url" 2>&1)
if echo "$error_output" | grep -q "protocol version 0\|wire protocol version 0"; then
detected_version="3"
log_version_detection "Detected MongoDB 3.x server (wire protocol 0)"
elif echo "$error_output" | grep -q "protocol version 1\|wire protocol version 1"; then
detected_version="3"
log_version_detection "Detected MongoDB 3.x server (wire protocol 1)"
elif echo "$error_output" | grep -q "protocol version 2\|wire protocol version 2"; then
detected_version="3"
log_version_detection "Detected MongoDB 3.x server (wire protocol 2)"
elif echo "$error_output" | grep -q "protocol version 3\|wire protocol version 3"; then
detected_version="3"
log_version_detection "Detected MongoDB 3.x server (wire protocol 3)"
else
log_version_detection "Unknown wire protocol error: $error_output"
fi
else
log_version_detection "No MongoDB server running or connection failed"
fi
echo "$detected_version"
}
# Switch to appropriate MongoDB binary based on detected version
switch_mongodb_binary() {
local version="$1"
case "$version" in
"3")
log_version_detection "Switching to MongoDB 3.x binary"
export PATH="${MONGO3_BIN}:${PATH}"
export LD_LIBRARY_PATH="${MONGO3_LIB}:${MONGO3_LIB}/x86_64-linux-gnu:${LD_LIBRARY_PATH}"
echo "3" > "${SNAP_COMMON}/mongodb-active-version"
;;
"7"|"")
log_version_detection "Using MongoDB 7.x binary (default)"
export PATH="${MONGO7_BIN}:${PATH}"
export LD_LIBRARY_PATH="${MONGO7_LIB}:${LD_LIBRARY_PATH}"
echo "7" > "${SNAP_COMMON}/mongodb-active-version"
;;
*)
log_version_detection "Unknown version $version, using default MongoDB 7.x"
export PATH="${MONGO7_BIN}:${PATH}"
export LD_LIBRARY_PATH="${MONGO7_LIB}:${LD_LIBRARY_PATH}"
echo "7" > "${SNAP_COMMON}/mongodb-active-version"
;;
esac
}
# Main version detection and switching logic
setup_mongodb_version() {
# Check if we have a cached version
if [ -f "${SNAP_COMMON}/mongodb-active-version" ]; then
local cached_version=$(cat "${SNAP_COMMON}/mongodb-active-version")
log_version_detection "Using cached MongoDB version: $cached_version"
switch_mongodb_binary "$cached_version"
return
fi
# Detect version and switch
local detected_version=$(detect_mongodb_version)
if [ -n "$detected_version" ]; then
switch_mongodb_binary "$detected_version"
else
# Default to MongoDB 7 if detection fails
log_version_detection "Version detection failed, using default MongoDB 7.x"
switch_mongodb_binary "7"
fi
}
# Run version detection and setup
setup_mongodb_version
# make sure we have set minimum env variables for locale
if [ -z "${LANG}" ]; then
export LANG=en_US.UTF-8
fi
export LC_ALL=C
# If CPU does not support AVX, use Qemu that supports AVX.
# Migratemongo is at https://github.com/wekan/migratemongo
# and at directory /snap/${SNAP_NAME}/current/migratemongo/avx
# is bash scripts like mongod, mongosh check avx support and use Qemu if needed.
export PATH=/snap/${SNAP_NAME}/current/migratemongo/avx:/snap/${SNAP_NAME}/current/usr/bin:/snap/${SNAP_NAME}/current/bin:${PATH}
export LD_LIBRARY_PATH=/snap/${SNAP_NAME}/current/lib:/snap/${SNAP_NAME}/current/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}
# If temporary settings log exists, delete it
if [ -f ${SNAP_COMMON}/settings.log ]; then
rm ${SNAP_COMMON}/settings.log
fi
# Set MongoDB log destination to snapcommon for log file detection
export MONGO_LOG_DESTINATION="snapcommon"
# Set MongoDB data directory
export MONGO_DATA_DIR="${SNAP_COMMON}/wekan"
# Create MongoDB data directory if it doesn't exist
if [ ! -d "$MONGO_DATA_DIR" ]; then
mkdir -p "$MONGO_DATA_DIR"
chmod 755 "$MONGO_DATA_DIR"
fi
# Set MongoDB log file path
export MONGO_LOG_FILE="${SNAP_COMMON}/mongodb.log"
# Start MongoDB with appropriate version
echo "Starting MongoDB with detected version..."
log_version_detection "Starting MongoDB server"
# Get the active version
ACTIVE_VERSION=$(cat "${SNAP_COMMON}/mongodb-active-version" 2>/dev/null || echo "7")
if [ "$ACTIVE_VERSION" = "3" ]; then
echo "Starting MongoDB 3.x server..."
log_version_detection "Starting MongoDB 3.x server"
exec /snap/${SNAP_NAME}/current/migratemongo/bin/mongod \
--dbpath="$MONGO_DATA_DIR" \
--logpath="$MONGO_LOG_FILE" \
--logappend \
--bind_ip=127.0.0.1 \
--port=27017 \
--fork
else
echo "Starting MongoDB 7.x server..."
log_version_detection "Starting MongoDB 7.x server"
exec /snap/${SNAP_NAME}/current/bin/mongod \
--dbpath="$MONGO_DATA_DIR" \
--logpath="$MONGO_LOG_FILE" \
--logappend \
--bind_ip=127.0.0.1 \
--port=27017 \
--fork
fi
-281
View File
@@ -1,281 +0,0 @@
#!/bin/bash
# MongoDB Control Script
# Handles MongoDB server startup with automatic version detection and switching
# get wekan/mongo settings
source $SNAP/bin/wekan-read-settings
if [ "true" == "${DISABLE_MONGODB}" ]; then
echo "mongodb is disabled. Stop service"
snapctl stop --disable ${SNAP_NAME}.mongodb
exit 0
fi
# Check if migration is needed
check_migration_needed() {
if [ -f "$MIGRATION_STATUS" ]; then
local status=$(jq -r '.status' "$MIGRATION_STATUS" 2>/dev/null || echo "unknown")
if [ "$status" = "completed" ]; then
return 1
elif [ "$status" = "running" ]; then
return 0
fi
fi
# Check if we have MongoDB 3 data
if [ -d "${SNAP_COMMON}/wekan" ] && [ ! -f "${SNAP_COMMON}/mongodb-version-7" ]; then
return 0
fi
return 1
}
# Handle migration - only if MIGRATE_MONGODB=true
handle_migration() {
echo "MongoDB migration needed, starting migration process..."
# Stop Wekan (meteor) process before migration
echo "Stopping Wekan (meteor) process for migration..."
snapctl stop --disable ${SNAP_NAME}.wekan || true
snapctl stop --disable ${SNAP_NAME} || true
# Wait a moment for processes to stop
sleep 2
# Kill any remaining meteor/node processes
pkill -f "node.*main.js" || true
pkill -f "meteor" || true
sleep 1
# Start migration web interface in background
$SNAP/bin/mongodb-migration-web &
local web_pid=$!
echo "$web_pid" > "${SNAP_COMMON}/migration-web.pid"
# Run migration
if $SNAP/bin/mongodb-migrate; then
echo "MongoDB migration completed successfully"
# Kill migration web interface
if [ -f "${SNAP_COMMON}/migration-web.pid" ]; then
local web_pid=$(cat "${SNAP_COMMON}/migration-web.pid")
kill "$web_pid" 2>/dev/null || true
rm -f "${SNAP_COMMON}/migration-web.pid"
fi
# Clean up temporary Node.js server file
rm -f "${SNAP_COMMON}/migration-web-server.js"
echo "Migration completed. Wekan will be restarted automatically."
else
echo "MongoDB migration failed"
# Kill migration web interface
if [ -f "${SNAP_COMMON}/migration-web.pid" ]; then
local web_pid=$(cat "${SNAP_COMMON}/migration-web.pid")
kill "$web_pid" 2>/dev/null || true
rm -f "${SNAP_COMMON}/migration-web.pid"
fi
# Clean up temporary Node.js server file
rm -f "${SNAP_COMMON}/migration-web-server.js"
exit 1
fi
}
# Check if revert is requested
if [ -f "$REVERT_FILE" ]; then
echo "Revert requested, stopping Wekan and MongoDB, then reverting migration..."
# Stop Wekan (meteor) process before revert
echo "Stopping Wekan (meteor) process for revert..."
snapctl stop --disable ${SNAP_NAME}.wekan || true
snapctl stop --disable ${SNAP_NAME} || true
# Wait a moment for processes to stop
sleep 2
# Kill any remaining meteor/node processes
pkill -f "node.*main.js" || true
pkill -f "meteor" || true
sleep 1
# Stop MongoDB
snapctl stop --disable ${SNAP_NAME}.mongodb
# Run migration (which will handle revert)
$SNAP/bin/mongodb-migrate
exit $?
fi
# Check if migration is needed - only if MIGRATE_MONGODB=true
if [ "$MIGRATE_MONGODB" = "true" ]; then
if check_migration_needed; then
handle_migration
else
echo "MIGRATE_MONGODB=true but no migration needed"
fi
else
echo "MIGRATE_MONGODB not set to 'true' - skipping migration check"
fi
# make sure we have set minimum env variables for locale
if [ -z "${LANG}" ]; then
export LANG=en_US.UTF-8
fi
export LC_ALL=C
# If CPU does not support AVX, use Qemu that supports AVX.
# Migratemongo is at https://github.com/wekan/migratemongo
# and at directory /snap/${SNAP_NAME}/current/migratemongo/avx
# is bash scripts like mongod, mongosh check avx support and use Qemu if needed.
export PATH=/snap/${SNAP_NAME}/current/migratemongo/avx:/snap/${SNAP_NAME}/current/usr/bin:/snap/${SNAP_NAME}/current/bin:${PATH}
export LD_LIBRARY_PATH=/snap/${SNAP_NAME}/current/lib:/snap/${SNAP_NAME}/current/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}
# If temporary settings log exists, delete it
if [ -f ${SNAP_COMMON}/settings.log ]; then
rm ${SNAP_COMMON}/settings.log
fi
#if test -f "$SNAP_COMMON/01-migrate-mongo3-to-mongo5.txt"; then
# touch "$SNAP_COMMON/01-migrate-mongo3-to-mongo5.txt"
# # Stop MongoDB
# touch "$SNAP_COMMON/02-disable-mongo.txt"
# snapctl stop --disable ${SNAP_NAME}.mongodb
# touch "$SNAP_COMMON/03-eval-stop-mongo.txt"
# mongo wekan --eval "db.getSiblingDB('admin').shutdownServer()" $BIND_OPTIONS
# # Start MongoDB 4.4
# touch "$SNAP_COMMON/04-start-mongo44.txt"
# $SNAP/mongo44bin/mongod --dbpath $SNAP_COMMON --logpath $SNAP_COMMON/02_mongodb_log_while_migrate.txt --logappend --journal $MONGO_URL --quiet
# # Wait MongoDB 4.4 to start
# touch "$SNAP_COMMON/05-wait-2s-mongo44-start.txt"
# sleep 2s
# # Dump Old MongoDB 3.x database
# touch "$SNAP_COMMON/06-dump-database.txt"
# (cd $SNAP_COMMON && mongodump --port ${MONGODB_PORT})
# # Stop MongoDB 4.4
# touch "$SNAP_COMMON/07-stop-mongo44.txt"
# $SNAP/mongo44bin/mongo wekan --eval "db.getSiblingDB('admin').shutdownServer()" $BIND_OPTIONS
# # Wait MongoDB 4.4 to stop
# touch "$SNAP_COMMON/08-wait-2s-mongo44-stop.txt"
# sleep 2s
# # Start MongoDB 5
# touch "$SNAP_COMMON/09-start-mongo5.txt"
# mongod --dbpath $SNAP_COMMON --logpath $SNAP_COMMON/10_mongodb_log_while_migrate.txt --logappend --journal $MONGO_URL --quiet
# # Restore database
# touch "$SNAP_COMMON/11-mongorestore-to-mongo5.txt"
# (cd $SNAP_COMMON && mongorestore --port ${MONGODB_PORT})
# # Wait 5s
# touch "$SNAP_COMMON/12-wait-5s-after-restore.txt"
# sleep 5s
# # Shutdown mongodb
# touch "$SNAP_COMMON/13-shutdown-mongodb.txt"
# mongo wekan --eval "db.getSiblingDB('admin').shutdownServer()" $BIND_OPTIONS
# touch "$SNAP_COMMON/14-wait-5s-after-mongo5-shutdown.txt"
# sleep 5s
# # Enable MongoDB 5
# touch "$SNAP_COMMON/15-enable-mongo-5.txt"
# snapctl start --enable ${SNAP_NAME}.mongodb
#fi
# When starting MongoDB, if logfile exist, delete it, because now uses syslog instead of logfile,
# because syslog usually already has log rotation.
# https://github.com/wekan/wekan-snap/issues/92
#if test -f "$SNAP_COMMON/mongodb.log"; then
# rm -f "$SNAP_COMMON/mongodb.log"
#fi
# Alternative: When starting MongoDB, and using logfile, truncate log to last 1000 lines of text.
# 1) If file exists:
#if test -f "$SNAP_COMMON/mongodb.log"; then
# # 2) Copy last 1000 lines to variable loglast1000lines.
# loglast1000lines=$(tail -1000 "$SNAP_COMMON/mongodb.log")
# # 3) Copy variable to replace original MongoDB log.
# echo "$loglast1000lines" > "$SNAP_COMMON/mongodb.log"
# # 4) Set variable to be empty.
# loglast1000lines=""
#fi
if [ -z "${MONGO_URL}" ]; then
# start mongo deamon
BIND_OPTIONS=""
if [ "nill" != "${MONGODB_BIND_UNIX_SOCKET}" ] && [ "x" != "x${MONGODB_BIND_UNIX_SOCKET}" ]; then
BIND_OPTIONS+=" --unixSocketPrefix ${MONGODB_BIND_UNIX_SOCKET}"
fi
# Newest MongoDB uses --host or --bind_ip
if [ "x" != "x${MONGODB_BIND_IP}" ]; then
BIND_OPTIONS+=" --bind_ip $MONGODB_BIND_IP"
fi
if [ "x" != "x${MONGODB_PORT}" ]; then
BIND_OPTIONS+=" --port ${MONGODB_PORT}"
fi
if [ "syslog" == "${MONGO_LOG_DESTINATION}" ]; then
echo "Sending mongodb logs to syslog"
mongod --dbpath ${SNAP_COMMON} --syslog ${BIND_OPTIONS} --quiet
exit 0
fi
if [ "snapcommon" == "${MONGO_LOG_DESTINATION}" ]; then
echo "Sending mongodb logs to $SNAP_COMMON"
mongod --dbpath ${SNAP_COMMON} --logpath ${SNAP_COMMON}/mongodb.log --logappend ${BIND_OPTIONS} --quiet
fi
if [ "devnull" == "${MONGO_LOG_DESTINATION}" ]; then
echo "Sending mongodb logs to /dev/null"
mongod --dbpath ${SNAP_COMMON} --logpath /dev/null ${BIND_OPTIONS} --quiet
fi
#echo "mongodb log destination: ${MONGO_LOG_DESTINATION}" >> "${SNAP_COMMON}/settings.log"
# Disable MongoDB telemetry and free monitoring
/snap/${SNAP_NAME}/current/bin/mongosh wekan --eval 'disableTelemetry();' --port ${MONGODB_PORT}
/snap/${SNAP_NAME}/current/bin/mongosh wekan --eval 'db.disableFreeMonitoring();' --port ${MONGODB_PORT}
# Snap: Disable apparmor="DENIED" at syslog
# https://github.com/wekan/wekan/issues/4855
/snap/${SNAP_NAME}/current/bin/mongosh wekan --eval 'db.adminCommand({ setParameter: 1, diagnosticDataCollectionEnabled: false});' --port ${MONGODB_PORT}
# Drop indexes on database upgrade, when starting MongoDB
#mongosh wekan --eval "db.getCollectionNames().forEach(function(col_name) { var coll = db.getCollection(col_name); coll.dropIndexes(); });" $BIND_OPTIONS
# Set MongoDB feature compatibility version
#mongosh wekan --eval 'db.adminCommand({ setFeatureCompatibilityVersion: "4.4" });' ${BIND_OPTIONS}
# Delete incomplete uploads so that they would not prevent starting WeKan
/snap/${SNAP_NAME}/current/bin/mongosh wekan --eval 'db.getCollection("cfs.attachments.filerecord").find( { "uploadedAt": { "$exists": true }, "copies.attachments" : null,"failures.copies.attachments.doneTrying" : {"$ne" : true}});' --port ${MONGODB_PORT}
else
if [ "syslog" == "${MONGO_LOG_DESTINATION}" ]; then
echo "Sending mongodb logs to syslog"
mongod --dbpath ${SNAP_COMMON} --syslog ${MONGO_URL} --quiet
fi
if [ "snapcommon" == "${MONGO_LOG_DESTINATION}" ]; then
echo "Sending mongodb logs to ${SNAP_COMMON}"
mongod --dbpath ${SNAP_COMMON} --logpath ${SNAP_COMMON}/mongodb.log --logappend ${MONGO_URL} --quiet
fi
if [ "devnull" == "${MONGO_LOG_DESTINATION}" ]; then
echo "Sending mongodb logs to /dev/null"
mongod --dbpath ${SNAP_COMMON} --logpath /dev/null ${MONGO_URL} --quiet
fi
# Disable MongoDB telemetry and free monitoring
/snap/${SNAP_NAME}/current/bin/mongosh ${MONGO_URL} --eval 'disableTelemetry();'
/snap/${SNAP_NAME}/current/bin/mongosh ${MONGO_URL} --eval 'db.disableFreeMonitoring();'
# Snap: Disable apparmor="DENIED" at syslog
# https://github.com/wekan/wekan/issues/4855
/snap/${SNAP_NAME}/current/bin/mongosh ${MONGO_URL} --eval 'db.adminCommand({ setParameter: 1, diagnosticDataCollectionEnabled: false});'
# Drop indexes on database upgrade, when starting MongoDB
#mongosh wekan --eval "db.getCollectionNames().forEach(function(col_name) { var coll = db.getCollection(col_name); coll.dropIndexes(); });" $BIND_OPTIONS
# Set MongoDB feature compatibility version
#/snap/${SNAP_NAME}/current/bin/mongosh ${MONGO_URL} --eval 'db.adminCommand({ setFeatureCompatibilityVersion: "4.4" });'
# Delete incomplete uploads so that they would not prevent starting WeKan
/snap/${SNAP_NAME}/current/bin/mongosh ${MONGO_URL} --eval 'db.getCollection("cfs.attachments.filerecord").find( { "uploadedAt": { "$exists": true }, "copies.attachments" : null,"failures.copies.attachments.doneTrying" : {"$ne" : true}});'
fi
-138
View File
@@ -1,138 +0,0 @@
#!/bin/bash
# MongoDB Version Manager
# Helps manage MongoDB server binaries for different versions (3-8)
# This script provides utilities for adding and managing MongoDB server versions
# Source settings
source $SNAP/bin/wekan-read-settings
# MongoDB version information
declare -A MONGO_VERSIONS=(
["3"]="3.2.22"
["4"]="4.4.28"
["5"]="5.0.28"
["6"]="6.0.15"
["7"]="7.0.25"
["8"]="8.0.4"
)
# MongoDB binary paths
declare -A MONGO_PATHS=(
["3"]="/snap/${SNAP_NAME}/current/migratemongo/bin"
["4"]="/snap/${SNAP_NAME}/current/mongodb4/bin"
["5"]="/snap/${SNAP_NAME}/current/mongodb5/bin"
["6"]="/snap/${SNAP_NAME}/current/mongodb6/bin"
["7"]="/snap/${SNAP_NAME}/current/bin"
["8"]="/snap/${SNAP_NAME}/current/mongodb8/bin"
)
# Check which MongoDB versions are available
check_available_versions() {
echo "=== Available MongoDB Server Versions ==="
for version in "${!MONGO_VERSIONS[@]}"; do
local path="${MONGO_PATHS[$version]}"
if [ -f "$path/mongod" ]; then
echo "✓ MongoDB $version.x (${MONGO_VERSIONS[$version]}) - Available at $path"
else
echo "✗ MongoDB $version.x (${MONGO_VERSIONS[$version]}) - Not available at $path"
fi
done
echo ""
}
# Check which MongoDB Node.js drivers are available
check_available_drivers() {
echo "=== Available MongoDB Node.js Drivers ==="
if [ -f "/home/wekan/repos/wekan/package.json" ]; then
for version in "${!MONGO_VERSIONS[@]}"; do
if grep -q "mongodb${version}legacy" "/home/wekan/repos/wekan/package.json"; then
echo "✓ MongoDB $version.x Node.js driver - Available (mongodb${version}legacy)"
else
echo "✗ MongoDB $version.x Node.js driver - Not available"
fi
done
else
echo "package.json not found"
fi
echo ""
}
# Show current active MongoDB version
show_active_version() {
if [ -f "${SNAP_COMMON}/mongodb-active-version" ]; then
local active_version=$(cat "${SNAP_COMMON}/mongodb-active-version")
echo "=== Current Active MongoDB Version ==="
echo "Active Version: MongoDB $active_version.x"
echo "Version File: ${SNAP_COMMON}/mongodb-active-version"
echo ""
else
echo "=== Current Active MongoDB Version ==="
echo "No active version file found (will use default MongoDB 7.x)"
echo ""
fi
}
# Show version detection log
show_detection_log() {
if [ -f "${SNAP_COMMON}/mongodb-version-detection.log" ]; then
echo "=== MongoDB Version Detection Log ==="
tail -20 "${SNAP_COMMON}/mongodb-version-detection.log"
echo ""
else
echo "=== MongoDB Version Detection Log ==="
echo "No detection log found"
echo ""
fi
}
# Force version detection
force_detection() {
echo "=== Forcing MongoDB Version Detection ==="
rm -f "${SNAP_COMMON}/mongodb-active-version"
echo "Cleared cached version. Next MongoDB restart will detect version automatically."
echo ""
}
# Show help
show_help() {
echo "MongoDB Version Manager"
echo ""
echo "Usage: $0 [command]"
echo ""
echo "Commands:"
echo " versions - Show available MongoDB server versions"
echo " drivers - Show available MongoDB Node.js drivers"
echo " active - Show current active MongoDB version"
echo " log - Show version detection log"
echo " detect - Force version detection on next restart"
echo " help - Show this help message"
echo ""
echo "Examples:"
echo " $0 versions # Check which MongoDB versions are available"
echo " $0 active # Show which version is currently active"
echo " $0 detect # Force re-detection on next restart"
echo ""
}
# Main command handling
case "${1:-help}" in
"versions")
check_available_versions
;;
"drivers")
check_available_drivers
;;
"active")
show_active_version
;;
"log")
show_detection_log
;;
"detect")
force_detection
;;
"help"|*)
show_help
;;
esac
-141
View File
@@ -1,141 +0,0 @@
#!/bin/bash
# Snap Channel Manager for Wekan
# Manages snap channels for Wekan-related packages
# Source settings
source $SNAP/bin/wekan-read-settings
# Wekan-related snap packages
WEKAN_SNAPS=("wekan" "wekan-gantt-gpl" "wekan-ondra")
# Get current channel for a snap
get_current_channel() {
local snap_name="$1"
snap list "$snap_name" 2>/dev/null | awk 'NR==2 {print $4}' || echo "not-installed"
}
# Check if snap is on stable channel
is_stable_channel() {
local snap_name="$1"
local channel=$(get_current_channel "$snap_name")
[ "$channel" = "stable" ]
}
# Switch snap to stable channel
switch_to_stable() {
local snap_name="$1"
local current_channel=$(get_current_channel "$snap_name")
if [ "$current_channel" = "not-installed" ]; then
echo "Snap $snap_name is not installed"
return 1
fi
if [ "$current_channel" = "stable" ]; then
echo "Snap $snap_name is already on stable channel"
return 0
fi
echo "Switching $snap_name from $current_channel to stable channel..."
if snap refresh "$snap_name" --channel=stable; then
echo "Successfully switched $snap_name to stable channel"
return 0
else
echo "Failed to switch $snap_name to stable channel"
return 1
fi
}
# Show status of all Wekan snaps
show_status() {
echo "=== Wekan Snap Channel Status ==="
echo ""
local all_stable=true
for snap_name in "${WEKAN_SNAPS[@]}"; do
local channel=$(get_current_channel "$snap_name")
local status=""
if [ "$channel" = "not-installed" ]; then
status="[NOT INSTALLED]"
elif [ "$channel" = "stable" ]; then
status="[STABLE]"
else
status="[NON-STABLE: $channel]"
all_stable=false
fi
printf "%-20s %s\n" "$snap_name:" "$status"
done
echo ""
if [ "$all_stable" = true ]; then
echo "All Wekan snaps are on stable channel ✓"
else
echo "Some Wekan snaps are not on stable channel ⚠"
fi
}
# Switch all Wekan snaps to stable
switch_all_to_stable() {
echo "=== Switching All Wekan Snaps to Stable Channel ==="
echo ""
local success_count=0
local total_count=0
for snap_name in "${WEKAN_SNAPS[@]}"; do
if [ "$(get_current_channel "$snap_name")" != "not-installed" ]; then
total_count=$((total_count + 1))
if switch_to_stable "$snap_name"; then
success_count=$((success_count + 1))
fi
echo ""
fi
done
echo "=== Summary ==="
echo "Successfully switched: $success_count/$total_count snaps"
if [ "$success_count" -eq "$total_count" ]; then
echo "All Wekan snaps are now on stable channel ✓"
return 0
else
echo "Some snaps failed to switch to stable channel ⚠"
return 1
fi
}
# Show help
show_help() {
echo "Wekan Snap Channel Manager"
echo ""
echo "Usage: $0 [command]"
echo ""
echo "Commands:"
echo " status - Show current channel status for all Wekan snaps"
echo " switch - Switch all Wekan snaps to stable channel"
echo " help - Show this help"
echo ""
echo "Wekan-related snaps: ${WEKAN_SNAPS[*]}"
}
# Main execution
case "${1:-status}" in
"status")
show_status
;;
"switch")
switch_all_to_stable
;;
"help"|"-h"|"--help")
show_help
;;
*)
echo "Unknown command: $1"
show_help
exit 1
;;
esac
+4 -47
View File
@@ -1,5 +1,5 @@
name: wekan
version: '8.02'
version: '8.04'
base: core24
summary: Open Source kanban
description: |
@@ -75,19 +75,6 @@ apps:
command: ./bin/mongodb-restore
plugs: [network, network-bind]
mongodb-migration:
command: ./bin/mongodb-migrate
plugs: [network, network-bind]
mongodb-migration-web:
command: ./bin/mongodb-migration-web
plugs: [network, network-bind]
mongodb-migration-status:
command: ./bin/mongodb-migration-status
snap-channel-manager:
command: ./bin/snap-channel-manager
parts:
mongodb:
@@ -122,29 +109,6 @@ parts:
source: https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2404-x86_64-100.12.2.tgz
plugin: dump
#mongodb3:
# source: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-3.6.23.tgz
# plugin: dump
# stage-packages:
# - libssl1.1
# - libcurl3
# - libstemmer0d
# - zlib1g
# - libsnappy1v5
# - libyaml-cpp0.5v5
# - libpcre3
# - libpcrecpp0v5
# - libboost-system1.65.1
# - libboost-iostreams1.65.1
# - libboost-filesystem1.65.1
# - libboost-program-options1.65.1
# - libgoogle-perftools4
# stage:
# - bin
# - usr
# prime:
# - bin
# - usr
wekan:
source: .
@@ -164,7 +128,6 @@ parts:
- execstack
- nodejs
- npm
- git # Add git for cloning migratemongo
stage-packages:
- libfontconfig1
override-build: |
@@ -203,9 +166,9 @@ parts:
# Cleanup
mkdir .build
cd .build
wget https://github.com/wekan/wekan/releases/download/v8.02/wekan-8.02-amd64.zip
unzip wekan-8.02-amd64.zip
rm wekan-8.02-amd64.zip
wget https://github.com/wekan/wekan/releases/download/v8.04/wekan-8.04-amd64.zip
unzip wekan-8.04-amd64.zip
rm wekan-8.04-amd64.zip
cd ..
##cd .build/bundle
##find . -type d -name '*-garbage*' | xargs rm -rf
@@ -230,12 +193,6 @@ parts:
cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
# Migrate MongoDB 3 to 6 - clone directly from git instead of downloading zip
echo "Cloning migratemongo repository..."
git clone https://github.com/wekan/migratemongo.git
echo "Copy migratemongo files to install directory..."
cp -pR migratemongo $SNAPCRAFT_PART_INSTALL/
rm -rf migratemongo
# Delete phantomjs that is in accounts-lockout
#rm -rf $SNAPCRAFT_PART_INSTALL/programs/server/npm/node_modules/meteor/lucasantoniassi_accounts-lockout/node_modules/phantomjs-prebuilt