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

Error while importing my (large) bookmark collection from v1 to v2 #886

Closed
funktionierbar opened this issue Jan 30, 2025 · 3 comments
Closed
Labels
Bug Something isn't working

Comments

@funktionierbar
Copy link

funktionierbar commented Jan 30, 2025

LinkAce_export.zip

Bug Description

I have an v1.15 instance with about 4500 links. I exported my bookmarks in html format.
I set up a new docker instance with v2.0.0 beta4.
While importing the exported collection (~1.8MB) to the new instance , I first get the alert that
’4608 links are queued for import and will be processed consecutively. 0 links were skipped because they already exist in the database. All imported links will be assigned the tag import-20250130210031.’
But, the Import queue shows no links.
The laravel-2025-01-30.log has one corresponding entry:
'error production 2025-01-30 20:40:26 Allowed memory size of 268435456 bytes exhausted (tried to allocate 64862992 bytes) {"userId":2,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Allowed memory size of 268435456 bytes exhausted (tried to allocate 64862992 bytes) at /app/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:63)'

I dont know where to go from here, allowed memory size seems bigger than what its trying to allocate.

Also, when I try to access the import.log from the System Logs Menu, I get a empty Page with error 500, I guess because the file is empty, no links are imported.

How to reproduce

  1. Set up new instance with v2.0.0 beta4
  2. Import large bookmark file.

Expected behavior

Importing succesfully.

Logs

laravel-2025-01-30.log :

'error 	production 	2025-01-30 20:40:26 	Allowed memory size of 268435456 bytes exhausted (tried to allocate 64862992 bytes) {"userId":2,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 268435456 bytes exhausted (tried to allocate 64862992 bytes) at /app/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:63)'

Screenshots

No response

LinkAce version

v2.0.0 beta4

Setup Method

Docker

Operating System

Linux (Ubuntu, CentOS,...)

Client details

No response

@funktionierbar funktionierbar added the Bug Something isn't working label Jan 30, 2025
@Kovah
Copy link
Owner

Kovah commented Jan 30, 2025

Hi, i just noticed that the import queue pages was always empty and it's fixed already.
I guess the memory issues comes from either the import process itself, or maybe a process after that.

Two questions:

  • Is there a specific reason why you choose to move your links with the HTML export/import? Because this feature is not intended for this use case. You can directly upgrade to LinkAce 2.
  • Did the imported links were processed either partially or in total? For this to complete, the cron must be configured.

@funktionierbar
Copy link
Author

Thank you, the cron job did its job. All Bookmarks were imported correctly when the cronjob triggered. I was confused because I had no indication that the import was accepted or queued.

I set up a seperate instance of V2 because I need daily access to my bookmarks and didn't want to risk breaking anything in the process.

@Kovah
Copy link
Owner

Kovah commented Feb 4, 2025

If everything went well, I guess we can close this issue for now.

@Kovah Kovah closed this as completed Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants