Infinite loop in backend?
See original GitHub issue🐛 Bug Report
- I am including my log files in zip format.
- I have looked for similar issues among all the former issues including closed ones.
What Operating system and version is LibrePhotos running on:
Debian, last Docker release.
What architecture is LibrePhotos running on:
x64
How is LibrePhotos installed:
Docker
If running via Docker or Kubernets please list version including docker-compose:
Click to expand!
# DO NOT EDIT
# The .env file has everything you need to edit.
# Run options:
# 1. Use prebuilt images (preferred method):
# run cmd: docker-compose up -d
# 2. Build images on your own machine:
# build cmd: COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose build
# run cmd: docker-compose up -d
version: '3.3'
services:
proxy:
image: reallibrephotos/librephotos-proxy:${tag}
restart: unless-stopped
volumes:
- ${myPhotos}:/data
- ${proMedia}:/protected_media
ports:
- ${httpPort}:80
depends_on:
- backend
- frontend
db:
image: postgres:13
restart: unless-stopped
environment:
- POSTGRES_USER=${dbUser}
- POSTGRES_PASSWORD=${dbPass}
- POSTGRES_DB=${dbName}
volumes:
- ${dbLocation}:/var/lib/postgresql/data
command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0
frontend:
image: reallibrephotos/librephotos-frontend:${tag}
restart: always
depends_on:
- backend
backend:
image: reallibrephotos/librephotos:${tag}
restart: unless-stopped
volumes:
- ${myPhotos}:/data:ro
- ${proMedia}:/protected_media
- ${logLocation}:/logs
- ${cachedir}:/root/.cache
environment:
- SECRET_KEY=${shhhhKey}
- BACKEND_HOST=backend
- ADMIN_EMAIL=${adminEmail}
- ADMIN_USERNAME=${userName}
- ADMIN_PASSWORD=${userPass}
- DB_BACKEND=postgresql
- DB_NAME=${dbName}
- DB_USER=${dbUser}
- DB_PASS=${dbPass}
- DB_HOST=db
- DB_PORT=5432
- REDIS_HOST=redis
- REDIS_PORT=6379
- MAPBOX_API_KEY=${mapApiKey}
- TIME_ZONE=${timeZone}
- WEB_CONCURRENCY=${gunniWorkers}
- SKIP_PATTERNS=${skipPatterns}
- DEBUG=0
# Wait for Postgres
depends_on:
- db
redis:
image: redis:6
restart: unless-stopped
The difference with default conf is - ${myPhotos}:/data:ro, my filed are mounted on a read-only mount point.
Are you running LibrePhotos on a virtual machine if so please list:
How is you picture library mounted on the host (or in the virtual machine):
Local file system (ext4)
Description of issue:
cd /var/librephotos/ ; docker-compose logs --tail 20 backend
Attaching to librephotos_backend_1
backend_1 | [2021-03-31 19:26:58 +0000] [313] [INFO] Booting worker with pid: 313
backend_1 | [2021-03-31 19:27:03 +0000] [320] [INFO] Booting worker with pid: 320
backend_1 | [2021-03-31 19:27:06 +0000] [323] [INFO] Booting worker with pid: 323
backend_1 | [2021-03-31 19:27:11 +0000] [328] [INFO] Booting worker with pid: 328
backend_1 | [2021-03-31 19:27:15 +0000] [333] [INFO] Booting worker with pid: 333
backend_1 | [2021-03-31 19:27:19 +0000] [338] [INFO] Booting worker with pid: 338
backend_1 | [2021-03-31 19:27:23 +0000] [343] [INFO] Booting worker with pid: 343
backend_1 | [2021-03-31 19:27:27 +0000] [348] [INFO] Booting worker with pid: 348
backend_1 | [2021-03-31 19:27:30 +0000] [353] [INFO] Booting worker with pid: 353
backend_1 | [2021-03-31 19:27:35 +0000] [358] [INFO] Booting worker with pid: 358
backend_1 | [2021-03-31 19:27:39 +0000] [363] [INFO] Booting worker with pid: 363
backend_1 | [2021-03-31 19:27:43 +0000] [368] [INFO] Booting worker with pid: 368
backend_1 | [2021-03-31 19:27:46 +0000] [373] [INFO] Booting worker with pid: 373
backend_1 | [2021-03-31 19:27:51 +0000] [378] [INFO] Booting worker with pid: 378
backend_1 | [2021-03-31 19:27:55 +0000] [383] [INFO] Booting worker with pid: 383
backend_1 | [2021-03-31 19:27:59 +0000] [388] [INFO] Booting worker with pid: 388
backend_1 | [2021-03-31 19:28:02 +0000] [393] [INFO] Booting worker with pid: 393
backend_1 | [2021-03-31 19:28:06 +0000] [398] [INFO] Booting worker with pid: 398
backend_1 | [2021-03-31 19:28:11 +0000] [403] [INFO] Booting worker with pid: 403
backend_1 | [2021-03-31 19:28:14 +0000] [408] [INFO] Booting worker with pid: 408
cat …/librephotos_logs/gunicorn_django.log
[2021-03-31 19:27:19 +0000] [338] [INFO] Booting worker with pid: 338
[2021-03-31 19:27:23 +0000] [343] [INFO] Booting worker with pid: 343
[2021-03-31 19:27:27 +0000] [348] [INFO] Booting worker with pid: 348
[2021-03-31 19:27:30 +0000] [353] [INFO] Booting worker with pid: 353
[2021-03-31 19:27:35 +0000] [358] [INFO] Booting worker with pid: 358
[2021-03-31 19:27:39 +0000] [363] [INFO] Booting worker with pid: 363
[2021-03-31 19:27:43 +0000] [368] [INFO] Booting worker with pid: 368
[2021-03-31 19:27:46 +0000] [373] [INFO] Booting worker with pid: 373
[2021-03-31 19:27:51 +0000] [378] [INFO] Booting worker with pid: 378
[2021-03-31 19:27:55 +0000] [383] [INFO] Booting worker with pid: 383
[2021-03-31 19:27:59 +0000] [388] [INFO] Booting worker with pid: 388
[2021-03-31 19:28:02 +0000] [393] [INFO] Booting worker with pid: 393
[2021-03-31 19:28:06 +0000] [398] [INFO] Booting worker with pid: 398
[2021-03-31 19:28:11 +0000] [403] [INFO] Booting worker with pid: 403
[2021-03-31 19:28:14 +0000] [408] [INFO] Booting worker with pid: 408
[2021-03-31 19:28:18 +0000] [413] [INFO] Booting worker with pid: 413
[2021-03-31 19:28:22 +0000] [418] [INFO] Booting worker with pid: 418
[2021-03-31 19:28:26 +0000] [423] [INFO] Booting worker with pid: 423
[2021-03-31 19:28:30 +0000] [428] [INFO] Booting worker with pid: 428
[2021-03-31 19:28:34 +0000] [433] [INFO] Booting worker with pid: 433
[2021-03-31 19:28:38 +0000] [438] [INFO] Booting worker with pid: 438
[2021-03-31 19:28:42 +0000] [443] [INFO] Booting worker with pid: 443
[2021-03-31 19:28:45 +0000] [448] [INFO] Booting worker with pid: 448
[2021-03-31 19:28:49 +0000] [453] [INFO] Booting worker with pid: 453
[2021-03-31 19:28:54 +0000] [458] [INFO] Booting worker with pid: 458
[2021-03-31 19:28:58 +0000] [463] [INFO] Booting worker with pid: 463
[2021-03-31 19:29:02 +0000] [468] [INFO] Booting worker with pid: 468
[2021-03-31 19:29:05 +0000] [473] [INFO] Booting worker with pid: 473
[2021-03-31 19:29:10 +0000] [480] [INFO] Booting worker with pid: 480
[2021-03-31 19:29:13 +0000] [483] [INFO] Booting worker with pid: 483
[2021-03-31 19:29:17 +0000] [488] [INFO] Booting worker with pid: 488
[2021-03-31 19:29:21 +0000] [493] [INFO] Booting worker with pid: 493
[2021-03-31 19:29:25 +0000] [498] [INFO] Booting worker with pid: 498
[2021-03-31 19:29:29 +0000] [503] [INFO] Booting worker with pid: 503
[2021-03-31 19:29:33 +0000] [508] [INFO] Booting worker with pid: 508
[2021-03-31 19:29:37 +0000] [513] [INFO] Booting worker with pid: 513
[2021-03-31 19:29:41 +0000] [518] [INFO] Booting worker with pid: 518
[2021-03-31 19:29:45 +0000] [523] [INFO] Booting worker with pid: 523
[2021-03-31 19:29:49 +0000] [528] [INFO] Booting worker with pid: 528
[2021-03-31 19:29:52 +0000] [533] [INFO] Booting worker with pid: 533
[2021-03-31 19:29:56 +0000] [538] [INFO] Booting worker with pid: 538
[2021-03-31 19:30:00 +0000] [543] [INFO] Booting worker with pid: 543
[2021-03-31 19:30:04 +0000] [548] [INFO] Booting worker with pid: 548
[2021-03-31 19:30:09 +0000] [553] [INFO] Booting worker with pid: 553
[2021-03-31 19:30:13 +0000] [558] [INFO] Booting worker with pid: 558
[2021-03-31 19:30:17 +0000] [563] [INFO] Booting worker with pid: 563
[2021-03-31 19:30:22 +0000] [568] [INFO] Booting worker with pid: 568
[2021-03-31 19:30:27 +0000] [573] [INFO] Booting worker with pid: 573
[2021-03-31 19:30:33 +0000] [580] [INFO] Booting worker with pid: 580
[2021-03-31 19:30:35 +0000] [583] [INFO] Booting worker with pid: 583
My CPU has too much usage, I have to stop LibrePhotos.
How can we reproduce it:
I don’t know.
Additional Information:
Issue Analytics
- State:
- Created 2 years ago
- Comments:20 (12 by maintainers)
Top Results From Across the Web
Fetching data from backend causes infinite loop and never ...
Fetching data from backend causes infinite loop and never successfully loads ; import React ; from 'react' ; function createMarkup ; markup) { ......
Read more >Infinite Loops in Javascript - Flexiple
An infinite loop is a piece of code that keeps running forever as the terminating condition is never reached. An infinite loop can...
Read more >What happens if I run an infinite loop on a server? - Quora
If your program contains an infinite loop, and that loop is entered, then whatever is in the loop will execute repeatedly until you...
Read more >Backend login in an infinite loop after changing Authentication ...
After changing the Authentication cookie security field, the backend login is stuck in an infinite loop.
Read more >Infinite loop backend gets stuck - Google Groups
Hi, I have a backend that is started once on /_ah/start request and just goes to infinite loop for data processing. From time...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks a lot @deliantwo, it works! 🎉
All right, I will write a tutorial on how to build the backend image yourself for users who use CPUs without AVX support.