Search entity slow #3495

Closed
opened 2026-02-05 06:53:40 +03:00 by OVERLORD · 12 comments
Owner

Originally created by @RossiNIT on GitHub (Feb 7, 2023).

Describe the Bug

The entity search is slow or blocked.
When I move, copy a page or link an entity to another, the window where I select the destination entity is stucked on the three dots and no entity is showed.
image

Steps to Reproduce

Go to a page
Click on move or copy

Expected Behaviour

On the window to select the destination entity, I should see a list of avayable entity.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

BookStack v23.01.1

PHP Version

No response

Hosting Environment

Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 5.10.0-19-amd64

Originally created by @RossiNIT on GitHub (Feb 7, 2023). ### Describe the Bug The entity search is slow or blocked. When I move, copy a page or link an entity to another, the window where I select the destination entity is stucked on the three dots and no entity is showed. ![image](https://user-images.githubusercontent.com/118269033/217199780-177ca531-c8cb-44ca-98f4-9bb4de9a7b1a.png) ### Steps to Reproduce Go to a page Click on move or copy ### Expected Behaviour On the window to select the destination entity, I should see a list of avayable entity. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version BookStack v23.01.1 ### PHP Version _No response_ ### Hosting Environment Operating System: Debian GNU/Linux 11 (bullseye) Kernel: Linux 5.10.0-19-amd64
OVERLORD added the 🐛 Bug label 2026-02-05 06:53:40 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 7, 2023):

Hi @RossiNIT,

  • Does the main header search bar work okay?
    • Does the results change as you search different queries?
  • Did you follow a particular guide to install BookStack?
  • What webserver are you using?
@ssddanbrown commented on GitHub (Feb 7, 2023): Hi @RossiNIT, - Does the main header search bar work okay? - Does the results change as you search different queries? - Did you follow a particular guide to install BookStack? - What webserver are you using?
Author
Owner

@RossiNIT commented on GitHub (Feb 8, 2023):

Hi @ssddanbrown,

Here I'll try to aswer to your question:

  • The search bar in the header work well
  • To install Bookstack I followed the guide on the website
  • Bookstack is hosted on a Debian GNU/Linux 11
@RossiNIT commented on GitHub (Feb 8, 2023): Hi @ssddanbrown, Here I'll try to aswer to your question: - The search bar in the header work well - To install Bookstack I followed the guide on the [website](https://www.bookstackapp.com/docs/admin/installation/#manual) - Bookstack is hosted on a Debian GNU/Linux 11
Author
Owner

@ssddanbrown commented on GitHub (Feb 8, 2023):

@RossiNIT Thanks for the information:

  • Are you using Nginx or Apache or something else?
  • When you view a book, there's a search-bar in the sidebar. Does this book-specific search-bar work without issue?
@ssddanbrown commented on GitHub (Feb 8, 2023): @RossiNIT Thanks for the information: - Are you using Nginx or Apache or something else? - When you view a book, there's a search-bar in the sidebar. Does this book-specific search-bar work without issue?
Author
Owner

@RossiNIT commented on GitHub (Feb 8, 2023):

  • I'm using Apache2
  • The serach bar on the side is perfectly working

It seem like the only serach that not work is the search entity when I need to link a page to another.

PS: Thanks for your attention

@RossiNIT commented on GitHub (Feb 8, 2023): - I'm using Apache2 - The serach bar on the side is perfectly working It seem like the only serach that not work is the search entity when I need to link a page to another. PS: Thanks for your attention
Author
Owner

@ssddanbrown commented on GitHub (Feb 8, 2023):

@RossiNIT Okay, thanks.

Are you familiar with browser development tools at all? It would help to see any if any errors show in the console when you run into the issue.
If not, please let me know what browser and operating system you're using to browse BookStack and I'll try and provide some guidance when possible.

@ssddanbrown commented on GitHub (Feb 8, 2023): @RossiNIT Okay, thanks. Are you familiar with browser development tools at all? It would help to see any if any errors show in the console when you run into the issue. If not, please let me know what browser and operating system you're using to browse BookStack and I'll try and provide some guidance when possible.
Author
Owner

@RossiNIT commented on GitHub (Feb 9, 2023):

Yep, I'm working in IT sector.
Here is the screen of the errors in the console. These errors are generated on page load; when the window for choosing the entity is opened, however, no further messages are shown.
I'm working on chrome, but also in other browser the result is the same.

image

DevTools failed to load source map: Could not load content for http://intranit/dist/styles.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://intranit/dist/print-styles.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://intranit/dist/app.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
app.js?version=v23.01.1:25          GET http://intranit/search/entity-selector?types=book%2Cchapter%2Cpage&permission=view 404 (Not Found)
Gs @ app.js?version=v23.01.1:25
zd @ app.js?version=v23.01.1:25
initialLoad @ app.js?version=v23.01.1:26
setup @ app.js?version=v23.01.1:26
Wd @ app.js?version=v23.01.1:25
So @ app.js?version=v23.01.1:25
(anonymous) @ app.js?version=v23.01.1:50
app.js?version=v23.01.1:25 Uncaught (in promise) Error: Not Found
    at Gs (app.js?version=v23.01.1:25:1404)
Gs @ app.js?version=v23.01.1:25
Promise.then (async)
initialLoad @ app.js?version=v23.01.1:26
setup @ app.js?version=v23.01.1:26
Wd @ app.js?version=v23.01.1:25
So @ app.js?version=v23.01.1:25
(anonymous) @ app.js?version=v23.01.1:50
DevTools failed to load source map: Could not load content for http://intranit/dist/print-styles.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://intranit/dist/styles.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://intranit/dist/code.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
@RossiNIT commented on GitHub (Feb 9, 2023): Yep, I'm working in IT sector. Here is the screen of the errors in the console. These errors are generated on page load; when the window for choosing the entity is opened, however, no further messages are shown. I'm working on chrome, but also in other browser the result is the same. ![image](https://user-images.githubusercontent.com/118269033/217738007-b155ac2b-0d9e-4d35-b429-2bad6a72afe6.png) ``` DevTools failed to load source map: Could not load content for http://intranit/dist/styles.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://intranit/dist/print-styles.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://intranit/dist/app.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE app.js?version=v23.01.1:25 GET http://intranit/search/entity-selector?types=book%2Cchapter%2Cpage&permission=view 404 (Not Found) Gs @ app.js?version=v23.01.1:25 zd @ app.js?version=v23.01.1:25 initialLoad @ app.js?version=v23.01.1:26 setup @ app.js?version=v23.01.1:26 Wd @ app.js?version=v23.01.1:25 So @ app.js?version=v23.01.1:25 (anonymous) @ app.js?version=v23.01.1:50 app.js?version=v23.01.1:25 Uncaught (in promise) Error: Not Found at Gs (app.js?version=v23.01.1:25:1404) Gs @ app.js?version=v23.01.1:25 Promise.then (async) initialLoad @ app.js?version=v23.01.1:26 setup @ app.js?version=v23.01.1:26 Wd @ app.js?version=v23.01.1:25 So @ app.js?version=v23.01.1:25 (anonymous) @ app.js?version=v23.01.1:50 DevTools failed to load source map: Could not load content for http://intranit/dist/print-styles.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://intranit/dist/styles.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://intranit/dist/code.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE ```
Author
Owner

@ssddanbrown commented on GitHub (Feb 9, 2023):

That's very strange, I can't see anything within the route itself that would provide a 404 for that endpoint.

  • By any chance have you added additional apache config? Anything that could trigger on a keyword like permission or selector ?
  • Would you be able to screenshot the exact view you see when visiting http://intranit/search/entity-selector?types=book%2Cchapter%2Cpage&permission=view directly in the browser?
  • Same as above but for just http://intranit/search/entity-selector
@ssddanbrown commented on GitHub (Feb 9, 2023): That's very strange, I can't see anything within the route itself that would provide a 404 for that endpoint. - By any chance have you added additional apache config? Anything that could trigger on a keyword like `permission` or `selector` ? - Would you be able to screenshot the exact view you see when visiting `http://intranit/search/entity-selector?types=book%2Cchapter%2Cpage&permission=view` directly in the browser? - Same as above but for just `http://intranit/search/entity-selector`
Author
Owner

@RossiNIT commented on GitHub (Feb 10, 2023):

I not changed anything with apache. I have a clean VM on the server deticated only for bookstack, I installed bookstack via the instructions on your website and it work fine. After the last update the only things that doesn't work is the search entity when editing a page.
Here is the screen of the link http://intranit/search/entity-selector?types=book%2Cchapter%2Cpage&permission=view, the same is for http://intranit/search/entity-selector.

Immagine 2023-02-10 141343

@RossiNIT commented on GitHub (Feb 10, 2023): I not changed anything with apache. I have a clean VM on the server deticated only for bookstack, I installed bookstack via the instructions on your website and it work fine. After the last update the only things that doesn't work is the search entity when editing a page. Here is the screen of the link `http://intranit/search/entity-selector?types=book%2Cchapter%2Cpage&permission=view`, the same is for `http://intranit/search/entity-selector`. ![Immagine 2023-02-10 141343](https://user-images.githubusercontent.com/118269033/218105325-dd12499b-ebe0-4ed9-b218-37004d4090c1.png)
Author
Owner

@ssddanbrown commented on GitHub (Feb 10, 2023):

What's the output of running ls -alh bootstrap/cache from your BookStack install directory?

@ssddanbrown commented on GitHub (Feb 10, 2023): What's the output of running `ls -alh bootstrap/cache` from your BookStack install directory?
Author
Owner

@RossiNIT commented on GitHub (Feb 13, 2023):

Here the output:

Immagine 2023-02-13 151254

In addition, always on 23.01.1 version, there are other error: on the dark or white theme button, list view and other, when click, the program call an exception and print it.

Hoping you find a solution for theese error, many thanks!

@RossiNIT commented on GitHub (Feb 13, 2023): Here the output: ![Immagine 2023-02-13 151254](https://user-images.githubusercontent.com/118269033/218481659-67d72ccd-97ef-41a4-9cc4-1ef1f138a070.png) In addition, always on 23.01.1 version, there are other error: on the dark or white theme button, list view and other, when click, the program call an exception and print it. Hoping you find a solution for theese error, many thanks!
Author
Owner

@ssddanbrown commented on GitHub (Feb 13, 2023):

@RossiNIT Okay, looks like a route/optimization command was ran back in October which could lead to strange behaviour upon changes such as updates.
Please delete all .php files from the bootstrap/cache directory.

@ssddanbrown commented on GitHub (Feb 13, 2023): @RossiNIT Okay, looks like a route/optimization command was ran back in October which could lead to strange behaviour upon changes such as updates. Please delete all `.php` files from the `bootstrap/cache` directory.
Author
Owner

@RossiNIT commented on GitHub (Feb 13, 2023):

Just deleted and all work fine now!

Thank you!

@RossiNIT commented on GitHub (Feb 13, 2023): Just deleted and all work fine now! Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3495