An email report, on an instance being served the older of its two copies: "some users are unable to log in (error: 'user not found'), and boards created after mid-July appear to be missing." That is what serving a copy looks like from the outside - the accounts and boards made after the copy was taken simply are not there. Until now the snap handled that by telling the admin to sort it out. #6583 taught it not to switch on a guess, so when both MongoDB and the migrated FerretDB have been written to since the migration it printed the two `snap set wekan database=...` commands and stayed where it was. That message is in `snap logs`; most people never see it, and their site meanwhile shows the wrong copy. A file timestamp cannot answer "which copy holds the work" - an mtime says when a file was touched, and starting a database touches its files. But both copies can be READ, so ask them. bin/db-eval.mjs gains an `evidence` command (per-collection counts, plus the newest timestamp any document carries) and bin/database-choose.mjs decides from the two answers: one holds everything the other holds, and is not older -> serve it, nothing to merge; both hold work the other does not, and one is clearly newer -> serve the newer one and copy across what only exists in the other; too close to call, or nothing readable -> change NOTHING and keep the existing message, because that case is a decision about somebody's work. "Clearly newer" is a margin, not a tie-break: six hours by default, so the writes the migration itself makes on both sides cannot decide anything. WHY THE MERGE IS SAFE, and it is WeKan's own design that makes it safe: the history is APPEND-ONLY (docs/Features/Reports/History/History.md, which gains a section 9a on exactly this). Activities, comments and the coming changeHistory rows are never rewritten in place, so they can only be ADDED to. bin/database- merge-missing.mjs therefore inserts every document whose _id is ABSENT from the chosen database and does nothing else: * a document that IS there is never overwritten - a card edited on both sides keeps the version in the copy being served, which is the newer one; * nothing is deleted, on either side; * the copy that was not chosen stays on disk, so `snap set wekan database=<the other one>` is still the way back - now a choice rather than a repair; * the work done on the copy that is not being served becomes readable in the served copy's card History instead of sitting in a database nobody opens. For the reported symptoms that means the missing users and boards are inserted rather than left behind: a user who could not log in exists again, with their own _id, and their boards with them. A three-way merge - reconciling two edits of one field - is not attempted and will not be from a script. Where the evidence cannot separate the copies, the snap still says so and hands the decision to a person. WEKAN_AUTOPICK=false turns the whole thing off, `database-autopick --dry-run` shows what it would do, and AUTOPICK_MERGE_LIMIT bounds how much it copies. tests/snapDatabaseAutopick.test.cjs covers the decision (both superset directions, the both-diverged case, one side empty or unreadable, too-close, no timestamps, and a BIGGER but older copy that must not win on size) and runs the merge against an in-memory pair of databases: what is missing is inserted, what exists is not overwritten, nothing is deleted on either side, --dry-run writes nothing, a limit is not an error, and the merge script contains no update or delete operation at all. tests/ferretdbMigrationStale.test.cjs keeps its rule - no switch on a guess - with the assertion updated to match what changed: this branch may not choose from the timestamps it has, it delegates to the one thing that can choose, and when even that cannot tell the copies apart the admin still gets both commands. Verified by running both suites and the whole node suite (381 suites, 0 failed). The snap itself cannot be built or refreshed in this sandbox, so the orchestration that starts each database on a temporary port is verified from the code and from the shapes migration-control already uses, not from a running snap. Thanks to xet7 !
Wekan is an open-source kanban board which allows a card-based task and to-do management.
Wekan allows to create Boards, on which Cards can be moved around between a number of Columns. Boards can have many members, allowing for easy collaboration, just add everyone that should be able to work with you on the board to it, and you are good to go! You can assign colored Labels to cards to facilitate grouping and filtering, additionally you can add members to a card, for example to assign a task to someone.
What is special about Wekan?
Wekan is distributed under the MIT License, allowing anyone to easily work with it and modify it. It is perfect for anyone that needs a slick kanban board but doesn't want to use third party services, which are out of user control. Wekan can be hosted on your own server with very little effort, guaranteeing that you have all the time full control over your data and can make sure no one else has access to it and that it won't just vanish from one day to another, that is, if you do backups.
Install
SaaS
Support
- Free Public Open Source Support, bugs and feature requests: https://github.com/wekan/wekan/issues
- Paid Private Commercial Support, paid features/fixes/support/hosting: https://wekan.fi/commercial-support/
General
- WeKan Features: Deep Dive Into WeKan (WeKan now runs on Meteor 3.x and Node.js 24.x)
- WeKan Roadmap kanban board - board at Wekan demo
- Future WeKan prototypes: Multiverse WeKan Roadmap
- Change Language
- Forgot Password
- WeKan Design Principles
- FAQ
- IRC FAQ - answers to questions asked at IRC
- Team
- Press
- Blog
- Wekan vs Trello vs Restyaboard
- Results of Survey 2020-01
Fake: Not WeKan kanban
Security
- Allow private boards only: Disable Public Boards
- Security Disclosure and details of Security in Wekan
- Password Hashing
Scaling
- Cron: Hourly restart WeKan, because of memory leaks
- Maybe: Add more RAM to Node.js to prevent crash
- Clustering AWS etc
- Scaling
- Multitenancy: one server per tenant, and the alternatives
- Kubernetes
- Helm Chart https://artifacthub.io/packages/helm/wekan/wekan
- Issues https://github.com/wekan/charts/issues
- Pull Requests https://github.com/wekan/charts/pulls
- Redis Oplog
- Scaling at Meteor forums
Migrating
- From Previous Export, paste big WeKan JSON
- Progress: Import/Export/Sync
- From CSV/TSV
- From Excel (.xlsx)
- From Trello
- From Jira
- From / To Kanboard
- From / To NextCloud Deck, OpenProject, GitHub, GitLab, Gitea, Forgejo
- From Asana
- From Zenkit
- From old Wekan manually
Backup
Repair
- Repair MongoDB
- Using Meteor MongoDB to repair files
- If board does not open and keeps loading
- Repair Docker
Themes
Markdown Syntax
- Wekan Markdown
- Emoji
- Mermaid Diagram DOES NOT WORK ANYMORE
- Numbered text
Login Auth
- Automatic login
- Disable Password Login
- Forgot Password
- Admin: Impersonate user
- Adding Users
- Active users Presence
- Accounts Lockout: Brute force login protection
- LDAP
- LDAP AD Simple Auth
- Keycloak
- Google login
- Azure
- OAuth2, Auth0, GitLab, RocketChat
- Oracle OIM on premise using OAuth2
- ADFS 4.0 using OAuth2 and OpenID
- Azure AD B2C using OAuth2
- Nextcloud
- CAS Please test
- SAML Please test
- Zitadel
Metrics, Logs, Stats
Integrations
Time
Features
- All Features index
- Boards
- Lists
- Cards
- Members and Permissions
- WIP Limits
- Keyboard Shortcuts
- Accessibility
- Rules (Automation)
- Card Dependencies — "Red Strings" / PI Program Board
- IFTTT / Rules overview
- Admin Panel — every pane, one page per menu entry
- Multiline
- Linked Cards
- Drag Drop on Mobile and Desktop
- Python based features
- Burndown and Velocity Chart
- Wait Spinners
- Translations
- Customize Translations
- Default Language for All Users
- Planning Poker
- Scaling
- Custom Logo
- Subtasks
- Templates
- Shared Templates (Admin view)
- Card Cover Image
- Stickers
- Card Locations
- Board Background Images
- Attachments and File Storage
- Right-to-Left (RTL) UI
- Archive and Delete
- Custom Fields
- Fix Export board menu not visible on some boards
- RAM usage
- Swimlanes
Required Settings
Webservers
- Caddy
- Nginx
- Apache
- OpenLiteSpeed
- Local self signed TLS
- Let's Encrypt and Google Auth
- TLS with Node.js
- Traefik and self-signed SSL certs
REST API Docs
- API docs https://wekan.fi/docs/
- PHP Webhook receiver to WeKan API Python https://github.com/wekan/webhook/blob/main/public/index.php#L46
- API clients
- Python
- api.py
- https://github.com/wekan/wekan-python-api-client
- https://github.com/wekan/python-wekan
- Other Python features Python
- Go https://github.com/wekan/wego
- Python
- Other API
- REST API Code
- Login
- User
- Role
- Boards
- Lists
- Cards
- Checklists
- Swimlanes
- Custom Fields
- Integrations
REST API issue
REST API client code
- Example: New card with Python3 and REST API
- Python client to REST API
- Go client to REST API
- Wekan Sandstorm cards to CSV using Python
- Excel and VBA
Webhooks
- Per-board events sending at board right sidebar / Board Settings / Webhooks
- Check that webhook immediately responds with HTTP 200 OK, otherwise WeKan slows down
- Global Webhook
- PHP Webhook receiver to WeKan API Python https://github.com/wekan/webhook/blob/main/public/index.php#L46
- Limiting Webhook data
- Receiving Webhooks
- Java Webhooks
- Outgoing Webhook to Discord/Slack/RocketChat/Riot
- Outgoing Webhook to NodeRed
- Outgoing Webhook to PowerShell
- Outgoing Webhooks, CA and Let's Encrypt
- Outgoing Webhooks Data
- Outgoing Webhooks Original Pull Request, multiple Webhooks, more parameters and response order
Development
- Kadira integration
- Debugging
- Developer Docs for Standalone Wekan
- Developer Docs for Sandstorm Wekan
- Adding new Snap setting to code
- Directory Structure
- Beginner
- Maintainer FAQ