nextcloud / nextcloud/fulltextsearch
Fulltextsearch hangs with complex PDF due to Ghostscript bug in version 10.0.0
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 234
- Forks
- 64
- Avg merge
- 6h 18m
- Merged PRs (30d)
- 10
Description
I know this is not related to Fulltextsearch but I thought to put the information in here to let people find a simple solution a little quicker:
Ubuntu 23.04 serves with Ghostscript version 10.0.0. Also the Nextcloud docker image serves with GS 10.0.0.
During an indexing process, I noticed that it got stuck on a particular PDF file, and I found out that a simple text extraction via Ghostscript was hanging.
I went to the official GS site and downloaded Ghostscript 10.02.0 Source:
https://ghostscript.com/releases/gsdnld.html
- uncompress it: (f.e. tar -xvf ghostscript-10.02.0.tar.gz)
- go into this folder
- sudo ./configure
- sudo make install
- restart Terminal
- Test with gs -v
If you get "cannot find -lXext" during the linker stage simply install
Under Ubuntu:
sudo apt-get install libxext-dev
Under Fedora
sudo dnf install libXext-devel
Arch Linux
sudo pacman -S libxext
And do the build again.
Find out where your gs is located with which gs and replace the binary.
I have built it on an Ubuntu 23.04 and copied the binary into the official Nextcloud docker image.
gs -version
GPL Ghostscript 10.02.0 (2023-09-13)
Copyright (C) 2023 Artifex Software, Inc. All rights reserved.
That solved my issue with a hanging index run.
May it help!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report concerns indexing a complex PDF with Ghostscript 10.0.0 in Ubuntu 23.04 and the Nextcloud Docker image; no project files or tests are named. Start by checking the full-text indexing path and reproducing the hang with the affected PDF and Ghostscript versions. Done would require a confirmed project-level fix or documented handling of the dependency issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, linux, ubuntu
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100