can't search and export images in old pages after restoring data #5513

Open
opened 2026-02-05 10:07:52 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @shmbatom on GitHub (Nov 20, 2025).

Describe the Bug

When I restore my data using old backuping file, I searched key word in order to find my old book or old page, but I saw 'No item found'.
and I export old pages to PDF file, all images in the page losted.
How can I do now?

Steps to Reproduce

  1. use search box
  2. use export to PD

Expected Behaviour

Is it a bug?

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v25.07.2

Originally created by @shmbatom on GitHub (Nov 20, 2025). ### Describe the Bug When I restore my data using old backuping file, I searched key word in order to find my old book or old page, but I saw 'No item found'. and I export old pages to PDF file, all images in the page losted. How can I do now? ### Steps to Reproduce 1. use search box 2. use export to PD ### Expected Behaviour Is it a bug? ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v25.07.2
OVERLORD added the 🐕 Support label 2026-02-05 10:07:52 +03:00
Author
Owner

@shmbatom commented on GitHub (Nov 20, 2025):

another trouble is :
the attachment file stay in directory 'storage/uploads/' even I delete the pages where those attachment files in
So my backup ZIP always keep large size

@shmbatom commented on GitHub (Nov 20, 2025): another trouble is : the attachment file stay in directory 'storage/uploads/' even I delete the pages where those attachment files in So my backup ZIP always keep large size
Author
Owner

@ssddanbrown commented on GitHub (Nov 21, 2025):

Hi @shmbatom,

When I restore my data using old backuping file

Can you explain exactly what process you followed for this?

I searched key word in order to find my old book or old page, but I saw 'No item found'.

Can you still find that old book/page if you navigate through the books manually?
Does search work for text in new pages?

@ssddanbrown commented on GitHub (Nov 21, 2025): Hi @shmbatom, > When I restore my data using old backuping file Can you explain exactly what process you followed for this? > I searched key word in order to find my old book or old page, but I saw 'No item found'. Can you still find that old book/page if you navigate through the books manually? Does search work for text in new pages?
Author
Owner

@shmbatom commented on GitHub (Nov 23, 2025):

Sorry for this, I found it is my fault, I changed permission of .env when I restored data.
Keep old permission of .env, All things will OK.
@ssddanbrown
But anothing trouble I met is :

  1. I uploaded attachments (mp4) or insert images in page, unlinked attachments、deleted them and cleared recycle box ;
  2. I backuped my data , those files still stay in directory 'data/storage/uploads/'.
@shmbatom commented on GitHub (Nov 23, 2025): Sorry for this, I found it is my fault, I changed permission of .env when I restored data. Keep old permission of .env, All things will OK. @ssddanbrown But anothing trouble I met is : 1. I uploaded attachments (mp4) or insert images in page, _unlinked attachments、deleted them and cleared_ recycle box ; 2. I backuped my data , those files **still stay** in directory 'data/storage/uploads/'.
Author
Owner

@ssddanbrown commented on GitHub (Nov 23, 2025):

Good to hear you found the cause of the original issue.

those files still stay in directory

Page content images will stay around since they could potentially be used in other content.
There's a cleanup maintenance action to help with this.

Attachments should be deleted when pages are deleted from the recycle bin.

  • What exactly do you mean by unlinked attachments?
  • Does this happen for new pages and attachments created since you fixed the original issue?
@ssddanbrown commented on GitHub (Nov 23, 2025): Good to hear you found the cause of the original issue. > those files still stay in directory Page content images will stay around since they could potentially be used in other content. There's a cleanup maintenance action to help with this. Attachments should be deleted when pages are deleted from the recycle bin. - What exactly do you mean by `unlinked attachments`? - Does this happen for new pages and attachments created since you fixed the original issue?
Author
Owner

@shmbatom commented on GitHub (Nov 23, 2025):

Q1: original issue--I can search what I expect in new page.
I can't seach correct result in restored pages although I restore permission of .env file.
It puzzled me.
Q2:I empty the recycle bin,those files still stay directory 'data/storage/uploads/'.
@ssddanbrown
I insert attachment file as below:

  1. select upload file such as xls by clicking 'upload file' button
  2. click link icon to put the selected file in page
    I delete attachment file as below:
  3. select the file name with link address
  4. click 'remove link' button of folat bar which appear above then file name (unlinked attachments)
  5. click 'X' button in right of the page to delete attachment file
@shmbatom commented on GitHub (Nov 23, 2025): Q1: original issue--I can search what I expect in new page. I can't seach correct result in restored pages although I restore permission of .env file. It puzzled me. Q2:I empty the recycle bin,those files still stay directory 'data/storage/uploads/'. @ssddanbrown I insert attachment file as below: 1. select upload file such as xls by clicking 'upload file' button 2. click link icon to put the selected file in page I delete attachment file as below: 1. select the file name with link address 2. click 'remove link' button of folat bar which appear above then file name (unlinked attachments) 3. click 'X' button in right of the page to delete attachment file
Author
Owner

@shmbatom commented on GitHub (Nov 23, 2025):

Q1: original issue--I can search what I expect in new page.
I can't seach correct result in restored pages although I restore permission of .env file.
It puzzled me.

PS:
After EDITing the old restored page, I can seach correct result in the edited page.
I have lots of restored page, So I can't edit each page again.

@shmbatom commented on GitHub (Nov 23, 2025): Q1: original issue--I can search what I expect in new page. I can't seach correct result in restored pages although I restore permission of .env file. It puzzled me. PS: After EDITing the old restored page, I can seach correct result in the edited page. I have lots of restored page, So I can't edit each page again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5513