question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on thumbnail generation after indexing files

See original GitHub issue

Describe the bug

It seems that there is an issue on the generation of the thumbnail after indexing files when we have a big amount of files. On the UI is showing this: #0 [24 feb. 2022 9:57:54] Loading files from db imagen

And on the docker logs we can see this:

2/24/2022, 8:57:54 AM[INFO_][JOB] Running job : Thumbnail Generation

2/24/2022, 9:00:27 AM[ERROR][JOB] RangeError: Maximum call stack size exceeded

    at ThumbnailGenerationJob.<anonymous> (/app/src/backend/model/jobs/jobs/FileJob.js:138:28)

    at Generator.next (<anonymous>)

I am using the latest version at the moment

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
AlvMGcommented, Mar 1, 2022

Hi, I tried to move to the nightly version, but is not starting. I have this logs constanly: 3/1/2022, 8:51:18 AM[INFO_][server] running diagnostics... And with the debug mode ther is no more logs only this:

[Typeconfig] Processing cli and ENV inputs: {

	"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",

	"HOSTNAME": "601e1d6d1171",

	"NODE_ENV": "debug",

	"NODE_VERSION": "14.19.0",

	"YARN_VERSION": "1.22.17",

	"PI_DOCKER": true,

	"HOME": "/root"

my docker compose is the following, just in case I am doing something wrong (is working fine with the latest version):

version: '3'
services:
  pigallery-db:
    container_name: pigallery-db
    image: mariadb
    volumes:
      - db-data:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=XXXXXX
      - MYSQL_USER=XX
      - MYSQL_PASSWORD=XXX
      - MYSQL_DATABASE=X

  pigallery2:
    image: bpatrik/pigallery2:latest-debian-buster
    command: sh -c 'bin/wait-for pigallery-db:3306 -- --Server-Database-mysql-host=pigallery-db --Server-Database-mysql-username=XX --Server-Database-mysql-password=XXX --Server-Database-mysql-database=X'
    container_name: pigallery2
    environment:
      - NODE_ENV=production
    volumes:
      - "/srv/8079f001-5556-4ae8-9e4a-0c2453d888bc/config/pigallery2/config:/app/data/config" # CHANGE ME
      - "db-data:/app/data/db"
      - "/srv/8079f001-5556-4ae8-9e4a-0c2453d888bc/movil:/app/data/images/movil:ro" # CHANGE ME, ':ro' mean read-only
      - "/srv/8079f001-5556-4ae8-9e4a-0c2453d888bc/fotos:/app/data/images/fotos:ro" # CHANGE ME, ':ro' mean read-only
      - "/srv/8079f001-5556-4ae8-9e4a-0c2453d888bc/config/pigallery2/tmp:/app/data/tmp" # CHANGE ME
    ports:
      - 85:80
    restart: always

volumes:
  db-data:

maybe there is another way to connect the db with the gallery. Thanks!

1reaction
AlvMGcommented, Feb 26, 2022

Cool thanks! I will update the version!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting media views and thumbnail generation
If you do not see thumbnails for image files, use the following SQL statement to see whether a thumbnail is available in the...
Read more >
CBR AND THUMBNAIL: SOME PDF DOCUMENTS HAVE ...
The underlying OIT Image Export and Search Export filters, used by CPE/CSS for thumbnail generation and indexing, contained a bug which caused ...
Read more >
Windows 10 thumbnails all messed up? Here's how to fix it!
When thumbnails for files and folders aren't showing correctly, here's how to clear and rebuild the thumbnail cache on Windows 10.
Read more >
Multimedia Console cannot generate thumbnails and ...
Hi, same here. The indexing of all photo files to be found anywhere on the NAS (maore than 45.000!!) was started immediately (generating...
Read more >
[Bug]: Logging IMagick thumbnail generation fail as ...
Sometimes IMagick fails generating a thumbnail. It's ok, for instance on password protected PDFs it must fail. It's not a problem, because the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found