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

E001: Folder to create in doesn't exist #1822

Open
1 task done
niels-k-86 opened this issue Jan 10, 2025 · 5 comments
Open
1 task done

E001: Folder to create in doesn't exist #1822

niels-k-86 opened this issue Jan 10, 2025 · 5 comments
Labels

Comments

@niels-k-86
Copy link

niels-k-86 commented Jan 10, 2025

Which version of floccus are you using?

5.4.2.1

How many bookmarks do you have, roughly?

15

Are you using other means to sync bookmarks in parallel to floccus?

No

Sync method

Git

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Chrome MacOS

Which version of Nextcloud Bookmarks are you using? (if relevant)

No response

Which version of Nextcloud? (if relevant)

No response

What kind of WebDAV server are you using? (if relevant)

No response

Describe the Bug

My sync fails because I created a new folder with new bookmarks in it, and the logs specify that the new bookmarks are created before the new folder:

E001: Folder to create in doesn't exist

Log:

2025-01-09T20:23:39.156Z Server: executing CREATEs
2025-01-09T20:23:39.156Z Executing action  { type: 'CREATE',
  payload: 
     + #undefined[FSSC] parentId: 3, hash: undefined
       - #25[Flexwhere (plek reserveren)](XXX) parentId: 26
       - #27[Support: MyDigital](XXX) parentId: 26,
  index: 0,
  oldItem: 
     + #26[FSSC] parentId: 7, hash: undefined
       - #25[Flexwhere (plek reserveren)](XXX) parentId: 26
       - #27[Support: MyDigital](XXX) parentId: 26 }
2025-01-09T20:23:39.156Z CREATEFOLDER { folder: 
     + #undefined[FSSC] parentId: 3, hash: undefined
       - #25[Flexwhere (plek reserveren)](XXX) parentId: 26
       - #27[Support: MyDigital](XXX) parentId: 26 }

Shouldn't this be the other way around?

Expected Behavior

That the folder is created and the bookmarks are in there.

To Reproduce

Create a new folder, create new bookmarks, run sync. Perhaps try to reorder what you already had.

Debug log provided

  • I have provided a debug log file
@niels-k-86 niels-k-86 added the bug label Jan 10, 2025
Copy link

Hello 👋

Thank you for taking the time to open this issue with floccus. I know it's frustrating when software
causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at
and if possible solved.
I'm Marcel and I created floccus a few years ago, maintaining it ever since. I currently work for Nextcloud
which leaves me with less time for side projects like this one than I used to have.
I still try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it.
Until then, please be patient.
Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation
to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can
collaborate to make this software better. For everyone.
Thus, if you can, you could also have a look at other issues to see whether you can help other people with your knowledge
and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and
try to fix the odd bug yourself. Everyone will be thankful for extra helping hands!
To continue the development and maintenance of this project in a sustainable way it is expected that you donate to the project when opening a ticket,
if you're not a donor already. You can find donation options at https://floccus.org/donate/. Thank you!

One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the Nextcloud forum,
to twitter or somewhere else. But this is a technical issue tracker, so please make sure to
focus on the tech and keep your opinions to yourself.

I look forward to working with you on this issue
Cheers 💙

@github-project-automation github-project-automation bot moved this to Backlog in Floccus Jan 12, 2025
@marcelklehr marcelklehr moved this from Backlog to Triaging in Floccus Jan 12, 2025
@marcelklehr
Copy link
Member

Hi @niels-k-86
I'm not sure if your interpretation of the log is correct.

2025-01-09T20:23:39.156Z Executing action { type: 'CREATE'

Is the general acton execution log statement. Note here that the payload for the CREATE action is already the full folder.

2025-01-09T20:23:39.156Z CREATEFOLDER { folder:

Then the execute function realizes it's a folder and calls the adapter with the createFolder method which logs this line.

Could you share the full log, possibly redacted if you want, so I get a better overview?

@niels-k-86
Copy link
Author

floccus-5.4.2-2025-01-12-full.log

@marcelklehr
Copy link
Member

It seems it's trying to create the new folder inside of a Folder with ID 3 but that ID belongs to a bookmark. It's not clear to me why that would happen at the moment. Can you try resetting the cache in the profile settings ("Trigger sync from scratch")?

@marcelklehr marcelklehr changed the title New folder + bookmarks creation fails E001: Folder to create in doesn't exist Jan 12, 2025
@niels-k-86
Copy link
Author

It seems it's trying to create the new folder inside of a Folder with ID 3 but that ID belongs to a bookmark. It's not clear to me why that would happen at the moment. Can you try resetting the cache in the profile settings ("Trigger sync from scratch")?

That fixed it :-). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Triaging
Development

No branches or pull requests

2 participants