Giter Site home page Giter Site logo

Bug when archiving card about wekan HOT 21 OPEN

xator91 avatar xator91 commented on June 5, 2024
Bug when archiving card

from wekan.

Comments (21)

xator91 avatar xator91 commented on June 5, 2024

After this error when I delete a lot of card, the system become slow and I have to restart it.

from wekan.

xator91 avatar xator91 commented on June 5, 2024

@xet7 any idea?

from wekan.

xator91 avatar xator91 commented on June 5, 2024

I will apply for update on api.py

from wekan.

xator91 avatar xator91 commented on June 5, 2024

Tried to fix, but come the error:

Exception in removedobserveChanges callback: Error: Removed nonexistent document addNXpeKsC2Qag6Cn
at SessionCollectionView.removed (packages/ddp-server/livedata_server.js:269:17)
at Session.removed (packages/ddp-server/livedata_server.js:468:12)
at Subscription.removed (packages/ddp-server/livedata_server.js:1430:19)
at removed (packages/cottz:publish-relations/lib/server/cursor/cursor.js:52:13)
at runWithEnvironment (packages/meteor.js:1486:24)
at packages/meteor.js:1499:14
at packages/mongo/observe_multiplex.js:178:30
at Array.forEach ()
at Function..each..forEach (packages/underscore.js:139:11)
at Object.task (packages/mongo/observe_multiplex.js:172:9)
at Meteor.SynchronousQueue.SQp.run (packages/meteor.js:1026:16)
at packages/meteor.js:1003:12
Exception in removedobserveChanges callback: Error: Removed nonexistent document addNXpeKsC2Qag6Cn
at SessionCollectionView.removed (packages/ddp-server/livedata_server.js:269:17)
at Session.removed (packages/ddp-server/livedata_server.js:468:12)
at Subscription.removed (packages/ddp-server/livedata_server.js:1430:19)
at removed (packages/cottz:publish-relations/lib/server/cursor/cursor.js:52:13)
at runWithEnvironment (packages/meteor.js:1486:24)
at packages/meteor.js:1499:14
at packages/mongo/observe_multiplex.js:178:30
at Array.forEach ()
at Function.
.each.
.forEach (packages/underscore.js:139:11)
at Object.task (packages/mongo/observe_multiplex.js:172:9)
at Meteor.SynchronousQueue.SQp.run (packages/meteor.js:1026:16)
at packages/meteor.js:1003:12
Exception in removedobserveChanges callback: Error: Removed nonexistent document addNXpeKsC2Qag6Cn
at SessionCollectionView.removed (packages/ddp-server/livedata_server.js:269:17)
at Session.removed (packages/ddp-server/livedata_server.js:468:12)
at Subscription.removed (packages/ddp-server/livedata_server.js:1430:19)
at removed (packages/cottz:publish-relations/lib/server/cursor/cursor.js:52:13)
at runWithEnvironment (packages/meteor.js:1486:24)
at packages/meteor.js:1499:14
at packages/mongo/observe_multiplex.js:178:30
at Array.forEach ()
at Function.
.each.
.forEach (packages/underscore.js:139:11)
at Object.task (packages/mongo/observe_multiplex.js:172:9)
at Meteor.SynchronousQueue.SQp.run (packages/meteor.js:1026:16)
at packages/meteor.js:1003:12
Exception in removedobserveChanges callback: Error: Removed nonexistent document addNXpeKsC2Qag6Cn
at SessionCollectionView.removed (packages/ddp-server/livedata_server.js:269:17)
at Session.removed (packages/ddp-server/livedata_server.js:468:12)
at Subscription.removed (packages/ddp-server/livedata_server.js:1430:19)
at removed (packages/cottz:publish-relations/lib/server/cursor/cursor.js:52:13)
at runWithEnvironment (packages/meteor.js:1486:24)
at packages/meteor.js:1499:14
at packages/mongo/observe_multiplex.js:178:30
at Array.forEach ()
at Function.
.each.
.forEach (packages/underscore.js:139:11)
at Object.task (packages/mongo/observe_multiplex.js:172:9)
at Meteor.SynchronousQueue.SQp.run (packages/meteor.js:1026:16)
at packages/meteor.js:1003:12
Exception in removedobserveChanges callback: Error: Removed nonexistent document addNXpeKsC2Qag6Cn
at SessionCollectionView.removed (packages/ddp-server/livedata_server.js:269:17)
at Session.removed (packages/ddp-server/livedata_server.js:468:12)
at Subscription.removed (packages/ddp-server/livedata_server.js:1430:19)
at removed (packages/cottz:publish-relations/lib/server/cursor/cursor.js:52:13)
at runWithEnvironment (packages/meteor.js:1486:24)
at packages/meteor.js:1499:14
at packages/mongo/observe_multiplex.js:178:30
at Array.forEach ()
at Function.
.each.
.forEach (packages/underscore.js:139:11)
at Object.task (packages/mongo/observe_multiplex.js:172:9)
at Meteor.SynchronousQueue.SQp.run (packages/meteor.js:1026:16)
at packages/meteor.js:1003:12
Exception in removedobserveChanges callback: Error: Removed nonexistent document addNXpeKsC2Qag6Cn
at SessionCollectionView.removed (packages/ddp-server/livedata_server.js:269:17)
at Session.removed (packages/ddp-server/livedata_server.js:468:12)
at Subscription.removed (packages/ddp-server/livedata_server.js:1430:19)
at removed (packages/cottz:publish-relations/lib/server/cursor/cursor.js:52:13)
at runWithEnvironment (packages/meteor.js:1486:24)
at packages/meteor.js:1499:14
at packages/mongo/observe_multiplex.js:178:30
at Array.forEach ()
at Function.
.each.
.forEach (packages/underscore.js:139:11)
at Object.task (packages/mongo/observe_multiplex.js:172:9)
at Meteor.SynchronousQueue.SQp.run (packages/meteor.js:1026:16)
at packages/meteor.js:1003:12
Exception in removedobserveChanges callback: Error: Removed nonexistent document addNXpeKsC2Qag6Cn
at SessionCollectionView.removed (packages/ddp-server/livedata_server.js:269:17)
at Session.removed (packages/ddp-server/livedata_server.js:468:12)
at Subscription.removed (packages/ddp-server/livedata_server.js:1430:19)
at removed (packages/cottz:publish-relations/lib/server/cursor/cursor.js:52:13)
at runWithEnvironment (packages/meteor.js:1486:24)
at packages/meteor.js:1499:14
at packages/mongo/observe_multiplex.js:178:30
at Array.forEach ()
at Function.
.each.
.forEach (packages/underscore.js:139:11)
at Object.task (packages/mongo/observe_multiplex.js:172:9)
at Meteor._SynchronousQueue.SQp._run (packages/meteor.js:1026:16)
at packages/meteor.js:1003:12

from wekan.

xator91 avatar xator91 commented on June 5, 2024

It slow down the instance and i have to reboot. @xet7

from wekan.

xator91 avatar xator91 commented on June 5, 2024

It happens when deleting checklist @xet7

from wekan.

xator91 avatar xator91 commented on June 5, 2024

Also checklist items

from wekan.

xet7 avatar xet7 commented on June 5, 2024

@xator91

Ok, then look at checklists code:

https://github.com/wekan/wekan/blob/main/models/checklists.js

https://github.com/wekan/wekan/blob/main/models/checklistItems.js

https://github.com/wekan/wekan/blob/main/client/components/cards/checklists.js

https://github.com/wekan/wekan/blob/main/client/components/cards/checklists.jade

from wekan.

xator91 avatar xator91 commented on June 5, 2024

@xator91

Ok, then look at checklists code:

https://github.com/wekan/wekan/blob/main/models/checklists.js

https://github.com/wekan/wekan/blob/main/models/checklistItems.js

https://github.com/wekan/wekan/blob/main/client/components/cards/checklists.js

https://github.com/wekan/wekan/blob/main/client/components/cards/checklists.jade

Ok i´ll try it. But tried to make a new card, just with title and archived and got error also.

from wekan.

xator91 avatar xator91 commented on June 5, 2024

The problem happens when you try to delete or archive a card with a checklist inside.

from wekan.

xator91 avatar xator91 commented on June 5, 2024

@xet7 Maybe I found what´s the problem here.

Checklist created through rest-api on a card, throw the error, when you try to delete the checklist.

If you add checklist manually, then no error.

from wekan.

xator91 avatar xator91 commented on June 5, 2024

Maybe also card, not only checklist.

If I try to add cards with rest-api and then I reboot the server and try to delete the card no error.

But If I try to delete before a reboot, then I got error.

from wekan.

xator91 avatar xator91 commented on June 5, 2024

Exception in removedobserveChanges callback: Error: Removed nonexistent document JA2ERsCwrnHKoutxY
at SessionCollectionView.removed (packages/ddp-server/livedata_server.js:269:17)
at Session.removed (packages/ddp-server/livedata_server.js:468:12)
at Subscription.removed (packages/ddp-server/livedata_server.js:1430:19)
at removed (packages/cottz:publish-relations/lib/server/cursor/cursor.js:52:13)
at runWithEnvironment (packages/meteor.js:1486:24)
at packages/meteor.js:1499:14
at packages/mongo/observe_multiplex.js:178:30
at Array.forEach ()
at Function..each..forEach (packages/underscore.js:139:11)
at Object.task (packages/mongo/observe_multiplex.js:172:9)
at Meteor._SynchronousQueue.SQp._run (packages/meteor.js:1026:16)
at packages/meteor.js:1003:12

After adding card, tried to remove manually direct with MongoDB Compass a checklists and then I got error with checklistsID.

from wekan.

xator91 avatar xator91 commented on June 5, 2024

Also when adding card through rest-api I get error when I delete them.

Then error throw card id :

Exception in removedobserveChanges callback: Error: Removed nonexistent document GvmMs8QDWz4qpFqkR
at SessionCollectionView.removed (packages/ddp-server/livedata_server.js:269:17)
at Session.removed (packages/ddp-server/livedata_server.js:468:12)
at Subscription.removed (packages/ddp-server/livedata_server.js:1430:19)
at removed (packages/cottz:publish-relations/lib/server/cursor/cursor.js:52:13)
at runWithEnvironment (packages/meteor.js:1486:24)
at packages/meteor.js:1499:14
at packages/mongo/observe_multiplex.js:178:30
at Array.forEach ()
at Function..each..forEach (packages/underscore.js:139:11)
at Object.task (packages/mongo/observe_multiplex.js:172:9)
at Meteor._SynchronousQueue.SQp._run (packages/meteor.js:1026:16)
at packages/meteor.js:1003:12

from wekan.

xator91 avatar xator91 commented on June 5, 2024

If I add new card through MongoDB with a PHP script and then I try to delete them from MongoDB manually error come anyway. @xet7

from wekan.

xator91 avatar xator91 commented on June 5, 2024

Add cards and checklist through mongodb:

Delete checklisteitems no error.
Delete cards before deleting checklists error.
Delete checklists before deleting card error.

from wekan.

xator91 avatar xator91 commented on June 5, 2024

I want to try to fix the problem, but I don't know where I have to look. Do you have any idea about it? @xet7

from wekan.

xet7 avatar xet7 commented on June 5, 2024

@xator91

Compare code that works, and does not work. Is there differences? If some code works, copy that kind of code where it does not work.

For example, adding and removing lists, cards, checklists, etc.

At serverside code:

https://github.com/wekan/wekan/tree/main/models

At Publish/Subscribe, database fields that are updated realtime when something changes, publishing them to serverside minimongo (you can see minimongo content browserside with browser extension Meteor DevTools Evolved, similar additional menu like right click / Inspect / Console, there is Inspect/ Meteor).

https://github.com/wekan/wekan/tree/main/server/publications

At clientside code:

https://github.com/wekan/wekan/tree/main/client/components

from wekan.

xator91 avatar xator91 commented on June 5, 2024

@xator91

Compare code that works, and does not work. Is there differences? If some code works, copy that kind of code where it does not work.

For example, adding and removing lists, cards, checklists, etc.

At serverside code:

https://github.com/wekan/wekan/tree/main/models

At Publish/Subscribe, database fields that are updated realtime when something changes, publishing them to serverside minimongo (you can see minimongo content browserside with browser extension Meteor DevTools Evolved, similar additional menu like right click / Inspect / Console, there is Inspect/ Meteor).

https://github.com/wekan/wekan/tree/main/server/publications

At clientside code:

https://github.com/wekan/wekan/tree/main/client/components

As I said, the problem is maybe that card added through mongodb or rest-api will not be "find" from Wekan service while was not added through the client. If you do a restart, after adding from mongo-db or rest-api you will get no error.

from wekan.

xator91 avatar xator91 commented on June 5, 2024

meteor/meteor#944 @xet7

from wekan.

xator91 avatar xator91 commented on June 5, 2024

@xet7

Test 1:

Add card
add comment
Delete or archive card (from client or mongodb)
Throw error: YES

Test2:

Add Card
add checklists
delete card or archive card (from client or mongodb)
Throw error: YES

Test3:

Add Card
Add comment
Reboot wekan
Delete or archive card (from client or mongodb)
Throw Error: NO

Test4:

Add Card
add checklists
Reboot Wekan
delete card or archive card (from client or mongodb)
Throw error: NO

from wekan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.