Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when running "process orphaned items" on Joplin server #10118

Closed
rainforest1155 opened this issue Mar 14, 2024 · 3 comments · Fixed by #10471
Closed

TypeError when running "process orphaned items" on Joplin server #10118

rainforest1155 opened this issue Mar 14, 2024 · 3 comments · Fixed by #10471
Assignees
Labels
bug It's a bug high High priority issues server Issues related to Joplin Server

Comments

@rainforest1155
Copy link

rainforest1155 commented Mar 14, 2024

Operating system

Linux

Joplin version

Joplin server 2.14.2 via Docker on Pine64 with Debian Bullseye

Desktop version info

No response

Current behaviour

running "process orphaned items" via the Web UI, the server log shows a TypeError:
Cannot use 'in' operator to search for 'name' in undefined

Expected behaviour

there should be no error

Logs

app-1        | 07:50:18 0|app  | 2024-03-14 07:50:17: [error] TaskService: On #10 (Process orphaned items) TypeError: Cannot use 'in' operator to search for 'name' in undefined
app-1        | 07:50:18 0|app  |     at UserItemModel.<anonymous> (/home/joplin/packages/server/src/models/UserItemModel.ts:126:17)
app-1        | 07:50:18 0|app  |     at Generator.next (<anonymous>)
app-1        | 07:50:18 0|app  |     at /home/joplin/packages/server/dist/models/UserItemModel.js:8:71
app-1        | 07:50:18 0|app  |     at new Promise (<anonymous>)
app-1        | 07:50:18 0|app  |     at __awaiter (/home/joplin/packages/server/dist/models/UserItemModel.js:4:12)
app-1        | 07:50:18 0|app  |     at /home/joplin/packages/server/src/models/UserItemModel.ts:124:41
app-1        | 07:50:18 0|app  |     at UserItemModel.<anonymous> (/home/joplin/packages/server/src/models/BaseModel.ts:221:19)
app-1        | 07:50:18 0|app  |     at Generator.next (<anonymous>)
app-1        | 07:50:18 0|app  |     at fulfilled (/home/joplin/packages/server/dist/models/BaseModel.js:5:58)
app-1        | 07:50:18 0|app  |     at processTicksAndRejections (node:internal/process/task_queues:95:5)
@rainforest1155 rainforest1155 added the bug It's a bug label Mar 14, 2024
@laurent22 laurent22 added high High priority issues server Issues related to Joplin Server labels Mar 14, 2024
@khuongduy354
Copy link
Contributor

Sorry, where is the "process orphaned items"? I cant find it on Web UI, i want to reproduce this bug.

@roman-r-m
Copy link
Collaborator

Sorry, where is the "process orphaned items"? I cant find it on Web UI, i want to reproduce this bug.

Try searching for this string in the repo

Akash12233 added a commit to Akash12233/joplin that referenced this issue Mar 16, 2024
Server: Fixes laurent22#10118 - TypeError when running "process orphaned items" on Joplin server
@rainforest1155
Copy link
Author

@khuongduy354 Sorry for the late reply, especially since there already seems to be a potential fix. For reference, here's how to manually run that task from the server web UI:
image

Thanks @Akash12233 for working on a fix! I'll check it out as soon as it is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug high High priority issues server Issues related to Joplin Server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants