Warracker icon indicating copy to clipboard operation
Warracker copied to clipboard

Latest Version: v0.10.1.0 unable to add any warranty

Open adyjob2012 opened this issue 1 year ago • 23 comments

I deploy in Portainer without any problem but unable to add any new warranty and pop up error. Found the logfile have some issue with column "product_photo_path"

INFO:app:Attempting to save invoice to: /data/uploads/20250615132554_invoice-1414606_2008033QRK2W6S_copy.pdf

INFO:app:Successfully saved invoice: uploads/20250615132554_invoice-1414606_2008033QRK2W6S_copy.pdf

INFO:app:Attempting to save product_photo to: /data/uploads/20250615132554_photo_GTabS7.png

INFO:app:Successfully saved product_photo: uploads/20250615132554_photo_GTabS7.png

ERROR:app:Error adding warranty: column "product_photo_path" of relation "warranties" does not exist

LINE 5: ...warranty_duration_months, warranty_duration_days, product_ph...

adyjob2012 avatar Jun 15 '25 13:06 adyjob2012

Hi @adyjob2012 , is this issue with just this warranty?

sassanix avatar Jun 15 '25 15:06 sassanix

I have try few others example of warranty with different kind of product and end up at the end of the "add warranty" error will pop up. I have filled up all the mandatory field and even try filled up all the field and yet the same problem. So far I have just try deploy on Portainer that install on Ubuntu server.

adyjob2012 avatar Jun 16 '25 01:06 adyjob2012

Are you importing the warranties? Or using the add warranty wizard?

sassanix avatar Jun 16 '25 01:06 sassanix

I using the add warranty wizard

adyjob2012 avatar Jun 16 '25 01:06 adyjob2012

When you're adding the warranty, can you provide me the console logs?

sassanix avatar Jun 16 '25 02:06 sassanix

Try to update to the latest version, and let me know if you're still having this issue. If you are please share your console logs with me.

sassanix avatar Jun 16 '25 02:06 sassanix

I deploy the latest version 0.10.1.1-beta with new flash install Portainer (under ubuntu) and now new problem is that I can't register any new account. Error show "Registration failed" and log file there is an error : ERROR:app:Registration error: name 'logger' is not defined

Below is the console logs:

INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 02:56:08 UTC)" executed successfully ERROR:app:Registration error: name 'logger' is not defined INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 02:58:08 UTC)" (scheduled at 2025-06-16 02:56:08.983352+00:00) INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 02:58:08 UTC)" (scheduled at 2025-06-16 02:56:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 02:58:08 UTC)" (scheduled at 2025-06-16 02:56:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 02:58:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 02:58:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 02:58:08 UTC)" executed successfully INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:00:08 UTC)" (scheduled at 2025-06-16 02:58:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:00:08 UTC)" (scheduled at 2025-06-16 02:58:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:00:08 UTC)" (scheduled at 2025-06-16 02:58:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:00:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:00:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:00:08 UTC)" executed successfully ERROR:app:Registration error: name 'logger' is not defined INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:02:08 UTC)" (scheduled at 2025-06-16 03:00:08.983352+00:00) INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:02:08 UTC)" (scheduled at 2025-06-16 03:00:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:02:08 UTC)" (scheduled at 2025-06-16 03:00:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:02:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:02:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:02:08 UTC)" executed successfully INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:04:08 UTC)" (scheduled at 2025-06-16 03:02:08.983352+00:00) INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:04:08 UTC)" (scheduled at 2025-06-16 03:02:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:04:08 UTC)" (scheduled at 2025-06-16 03:02:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:04:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:04:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:04:08 UTC)" executed successfully INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:06:08 UTC)" (scheduled at 2025-06-16 03:04:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:06:08 UTC)" (scheduled at 2025-06-16 03:04:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:06:08 UTC)" (scheduled at 2025-06-16 03:04:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:06:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:06:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:06:08 UTC)" executed successfully INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:08:08 UTC)" (scheduled at 2025-06-16 03:06:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:08:08 UTC)" (scheduled at 2025-06-16 03:06:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:08:08 UTC)" (scheduled at 2025-06-16 03:06:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:08:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:08:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:08:08 UTC)" executed successfully INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:10:08 UTC)" (scheduled at 2025-06-16 03:08:08.983352+00:00) INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:10:08 UTC)" (scheduled at 2025-06-16 03:08:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:10:08 UTC)" (scheduled at 2025-06-16 03:08:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:10:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:10:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:10:08 UTC)" executed successfully ERROR:app:Registration error: name 'logger' is not defined INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:12:08 UTC)" (scheduled at 2025-06-16 03:10:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:12:08 UTC)" (scheduled at 2025-06-16 03:10:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:12:08 UTC)" (scheduled at 2025-06-16 03:10:08.983352+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:12:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:12:08 UTC)" executed successfully INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 03:12:08 UTC)" executed successfully

adyjob2012 avatar Jun 16 '25 03:06 adyjob2012

Thanks for sharing, can you also share your docker compose file? You can remove all the personal information from it.

If you revert to an older version, such as 0.9.9.9 do you still get any errors?

sassanix avatar Jun 16 '25 03:06 sassanix

services: warracker: image: ghcr.io/sassanix/warracker/main:latest ports: - "8005:80" volumes: - warracker_uploads:/data/uploads environment: - DB_HOST=warrackerdb - DB_NAME=warranty_db - DB_USER=warranty_user - DB_PASSWORD=warranty_password - SMTP_HOST=smtp.gmail.com - SMTP_PORT=587 - [email protected] - SMTP_PASSWORD=gmail_password - SECRET_KEY=YUklw34567BpQXLfss9wbHfH98Vi4e7FUHLwJ5cpVueIlJCk3456yhnos - MAX_UPLOAD_MB=32 # Example: Set max upload size to 32MB - NGINX_MAX_BODY_SIZE_VALUE=32M # For Nginx, ensure this matches MAX_UPLOAD_MB in concept (e.g., 32M) # OIDC SSO Configuration (User needs to set these based on their OIDC provider) - OIDC_PROVIDER_NAME=${OIDC_PROVIDER_NAME:-oidc} - OIDC_CLIENT_ID=${OIDC_CLIENT_ID:-} # e.g., your_oidc_client_id_from_provider - OIDC_CLIENT_SECRET=${OIDC_CLIENT_SECRET:-} # e.g., your_oidc_client_secret_from_provider - OIDC_ISSUER_URL=${OIDC_ISSUER_URL:-} # e.g., https://your-oidc-provider.com/auth/realms/your-realm - OIDC_SCOPE=${OIDC_SCOPE:-openid email profile} # URL settings (Important for OIDC redirects and email links) # Ensure these point to the public-facing URL of your application - FRONTEND_URL=${FRONTEND_URL:-http://localhost:8005} - APP_BASE_URL=${APP_BASE_URL:-http://localhost:8005} # Memory optimization settings - WARRACKER_MEMORY_MODE=${WARRACKER_MEMORY_MODE:-optimized} # Options: optimized (default), ultra-light - PYTHONUNBUFFERED=1

- FLASK_DEBUG=0

depends_on: warrackerdb: condition: service_healthy restart: unless-stopped

warrackerdb: image: postgres:15-alpine volumes: - postgres_data:/var/lib/postgresql/data environment: - POSTGRES_DB=warranty_db - POSTGRES_USER=warranty_user - POSTGRES_PASSWORD=warranty_password restart: unless-stopped healthcheck: test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] interval: 5s timeout: 5s retries: 5 volumes: postgres_data: warracker_uploads:

adyjob2012 avatar Jun 16 '25 03:06 adyjob2012

I appreciate it, please be patient while I figure out what's causing your problem.

I've posted a minimal version of your docker compose that might work better for you.

Try to set your OIDC through the settings page. And change your secret key and other customization that you need.

Let me know if this works.

services:
  warracker:
    image: ghcr.io/sassanix/warracker/main:latest
    ports:
      - "8005:80"
    volumes:
      - warracker_uploads:/data/uploads
    environment:
      - DB_HOST=warrackerdb
      - DB_NAME=warranty_db
      - DB_USER=warranty_user
      - DB_PASSWORD=${DB_PASSWORD:-warranty_password}
      - SMTP_HOST=smtp.gmail.com
      - SMTP_PORT=587
      - [email protected]
      - SMTP_PASSWORD=xxxx
      - SECRET_KEY=your secret key
      - MAX_UPLOAD_MB=32 # Example: Set max upload size to 64MB 
      - NGINX_MAX_BODY_SIZE_VALUE=32M # For Nginx, ensure this matches MAX_UPLOAD_MB in concept (e.g., "64M")
      - FRONTEND_URL=https://warracker. domain.com
      - FLASK_DEBUG=0
      
    depends_on:
      warrackerdb:
        condition: service_healthy
    restart: unless-stopped
  
  warrackerdb:
    image: postgres:15-alpine
    volumes:
      - postgres_data:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=warranty_db
      - POSTGRES_USER=warranty_user
      - POSTGRES_PASSWORD=${DB_PASSWORD:-warranty_password}
    restart: unless-stopped

    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
      interval: 5s
      timeout: 5s
      retries: 5

volumes:
  postgres_data:
  warracker_uploads:

sassanix avatar Jun 16 '25 03:06 sassanix

I have try deploy version 0.9.9.9 and so far new account registration no problem and I can even add any new warranty.

adyjob2012 avatar Jun 16 '25 03:06 adyjob2012

Also seeing this issue, here's my docker-compose.yml:

services:
##################################################################
##################################################################
##################################################################
  warracker:
    depends_on:
      - warracker-postgres
    container_name: warracker
    image: ghcr.io/sassanix/warracker/main:latest
    environment:
      DB_HOST: warracker-postgres
      DB_NAME: warranty_db
      DB_USER: warranty_user
      DB_PASSWORD: ${DB_PASSWORD}
      SMTP_HOST: smtp.google.com
      SMTP_PORT: 587
      SMTP_USERNAME: ${SMTP_USERNAME}
      SMTP_PASSWORD: ${SMTP_PASSWORD}
      TZ: ${TZ}
      FRONTEND_URL: https://warranty.${domain}
      APP_BASE_URL: https://warranty.${domain}
      OIDC_ENABLED: true
      OIDC_PROVIDER_NAME: authentik
      OIDC_CLIENT_ID: ${OIDC_CLIENT_ID}
      OIDC_CLIENT_SECRET: ${OIDC_CLIENT_SECRET}
      OIDC_ISSUER_URL: https://auth.${domain}/application/o/warracker
      OIDC_SCOPE: "openid email profile"
      SECRET_KEY: ${SECRET_KEY_30_CHARS}
      FLASK_DEBUG: true
    volumes:
      - ${dcs}/warracker-related/warracker/data/uploads:/data/uploads
    hostname: warracker
    networks:
      - caddy_local
      - warracker
    ports:
      - 8539:80
    restart: unless-stopped
#################################
  warracker-postgres:
    container_name: warracker-postgres
    image: postgres:15-alpine
    environment:
      POSTGRES_DB: warranty_db
      POSTGRES_USER: warranty_user
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      TZ: ${TZ}
    volumes:
      - ${dcs}/warracker-related/postgres/var/lib/postgresql/data:/var/lib/postgresql/data
    hostname: warracker-postgres
    networks:
      - warracker
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
      interval: 5s
      timeout: 5s
      retries: 5
    labels:
      - diun.enable=false
    restart: unless-stopped
##################################################################
##################################################################
##################################################################
networks:
  caddy_local:
    external: true
  warracker:
    name: warracker

royaltongue avatar Jun 16 '25 03:06 royaltongue

@royaltongue

Can you share your docker logs as well?

sassanix avatar Jun 16 '25 03:06 sassanix

which docker logs? version 0.9.9.9 or the above latest docker compose?

adyjob2012 avatar Jun 16 '25 03:06 adyjob2012

which docker logs? version 0.9.9.9 or the above latest docker compose?

For the latest version, you can share your logs from Portainer by downloading it in text.

sassanix avatar Jun 16 '25 03:06 sassanix

I can't deploy the above latest docker compose file. It shows error deployment error:

Failed to deploy a stack: compose up operation failed: network caddy_local declared as external, but could not be found.

adyjob2012 avatar Jun 16 '25 03:06 adyjob2012

@sassanix

2025-06-16 00:06:58,971 - __main__ - INFO - Attempting to connect to database (attempt 1/5)
2025-06-16 00:06:59,011 - __main__ - INFO - Database connection successful
2025-06-16 00:06:59,024 - __main__ - INFO - Migration 000_create_warranties_table.sql already applied, skipping.
2025-06-16 00:06:59,024 - __main__ - INFO - Migration 001_add_serial_numbers.sql already applied, skipping.
2025-06-16 00:06:59,024 - __main__ - INFO - Migration 002_add_purchase_price.sql already applied, skipping.
2025-06-16 00:06:59,024 - __main__ - INFO - Migration 003_add_users_table.sql already applied, skipping.
2025-06-16 00:06:59,024 - __main__ - INFO - Migration 004_create_user_preferences_table.py already applied, skipping.
2025-06-16 00:06:59,024 - __main__ - INFO - Migration 005_add_expiring_soon_days_column.py already applied, skipping.
2025-06-16 00:06:59,024 - __main__ - INFO - Migration 006_add_currency_symbol_column.py already applied, skipping.
2025-06-16 00:06:59,024 - __main__ - INFO - Migration 007_add_notification_preferences.sql already applied, skipping.
2025-06-16 00:06:59,024 - __main__ - INFO - Migration 008_add_tags.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 009_add_admin_flag_to_tags.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 010_configure_admin_roles.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 011_ensure_admin_permissions.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 012_add_timezone_column.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 013_add_lifetime_warranty.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 014_add_updated_at_to_warranties.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 015_allow_fractional_warranty_years.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 016_add_updated_at_to_tags.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 017_add_notes_to_warranties.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 018_add_vendor_to_warranties.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 019_add_date_format_column.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 020_add_user_id_to_tags.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 021_change_warranty_duration_to_components.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 022_add_other_document_path.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 023_add_oidc_columns_to_users.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 024_fix_tags_constraint.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 025_add_warranty_type.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 025a_add_warranty_type.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 026_add_apprise_settings.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 027_add_notification_channel.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 028_fix_notification_columns.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 029_add_apprise_timezone.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 030_add_product_photo_path.sql already applied, skipping.
2025-06-16 00:06:59,025 - __main__ - INFO - Migration 031_add_owner_role.sql already applied, skipping.
2025-06-16 00:06:59,026 - __main__ - INFO - Migration 032_add_apprise_notification_mode.sql already applied, skipping.
2025-06-16 00:06:59,026 - __main__ - INFO - Migration 033_add_apprise_warranty_scope.sql already applied, skipping.
2025-06-16 00:06:59,026 - __main__ - INFO - Migration 034_add_currency_position_column.sql already applied, skipping.
2025-06-16 00:06:59,026 - __main__ - INFO - Migration 035_add_currency_to_warranties.sql already applied, skipping.
2025-06-16 00:06:59,027 - __main__ - INFO - Migrations completed successfully
INFO:__main__:Attempting to connect to database (attempt 1/5)
INFO:__main__:Database connection successful
INFO:__main__:Executing fix permissions SQL script...
INFO:__main__:Permissions fixed successfully
ERROR:backend.db_handler:[DB_HANDLER] Database connection pool is None. Attempting to re-initialize.
INFO:backend.db_handler:[DB_HANDLER] Attempting to initialize database pool (attempt 1/5)
INFO:backend.db_handler:[DB_HANDLER] Database connection pool initialized successfully.
INFO:backend.apprise_handler:Apprise configuration loaded: enabled=False, urls_count=0
INFO:backend.apprise_handler:Apprise notification handler initialized successfully
INFO:backend.apprise_handler:Apprise configuration loaded: enabled=False, urls_count=0
INFO:backend.apprise_handler:Apprise notification handler initialized successfully
INFO:app:Apprise notification handler imported successfully
INFO:backend.db_handler:[DB_HANDLER] Database connection pool already initialized.
INFO:app:Database connection pool initialized successfully.
INFO:app:Max upload file size set to: 32MB (33554432 bytes)
INFO:app:[APP.PY OIDC_INIT] Attempting to initialize OIDC client...
INFO:app:[APP.PY OIDC_INIT] Fetched OIDC settings from DB: {'oidc_enabled': 'false', 'oidc_only_mode': 'false', 'oidc_provider_name': 'oidc', 'oidc_client_id': '', 'oidc_issuer_url': '', 'oidc_scope': 'openid email profile'}
INFO:app:[APP.PY OIDC_INIT] OIDC enabled status: False
INFO:app:[APP.PY OIDC_INIT] OIDC is disabled.
INFO:backend.notifications:Scheduler will run in Gunicorn worker (ID: 0, Name: )
INFO:backend.notifications:Using BackgroundScheduler with  worker
INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts
INFO:apscheduler.scheduler:Added job "init_scheduler..notification_wrapper" to job store "default"
INFO:apscheduler.scheduler:Scheduler started
INFO:backend.notifications:✅ Email notification scheduler started - checking every 2 minutes
INFO:app:Ensuring application owner exists on startup...
INFO:app:No application owner found, attempting to promote first user...
WARNING:app:No users found in system. First registered user will become owner.
[2025-06-16 00:07:00 -0400] [9] [INFO] Starting gunicorn 23.0.0
[2025-06-16 00:07:00 -0400] [9] [INFO] Listening at: http://0.0.0.0:5000 (9)
[2025-06-16 00:07:00 -0400] [9] [INFO] Using worker: gevent
[2025-06-16 00:07:00 -0400] [24] [INFO] Booting worker with pid: 24
Traceback (most recent call last):
  File "src/gevent/_abstract_linkable.py", line 287, in gevent._gevent_c_abstract_linkable.AbstractLinkable._notify_links
  File "src/gevent/_abstract_linkable.py", line 333, in gevent._gevent_c_abstract_linkable.AbstractLinkable._notify_links
AssertionError: (None, )
2025-06-16T04:07:00Z  failed with AssertionError

[2025-06-16 00:07:00 -0400] [25] [INFO] Booting worker with pid: 25
ERROR:app:Registration error: name 'logger' is not defined

It looks like the environment variables aren't getting set either?

@adyjob2012 That's just my setup, it still doesn't work so you don't need to try it running it

royaltongue avatar Jun 16 '25 04:06 royaltongue

I manage to deploy by changing the external to false caddy_local: external: false

However, new registration was failed showing error : Network error. Please check your connection and try again.

below is the console logs file :

2025-06-16 04:03:37,675 - main - INFO - Migration 000_create_warranties_table.sql applied successfully 2025-06-16 04:03:37,675 - main - INFO - Applying migration: 001_add_serial_numbers.sql 2025-06-16 04:03:37,699 - main - INFO - Migration 001_add_serial_numbers.sql applied successfully 2025-06-16 04:03:37,699 - main - INFO - Applying migration: 002_add_purchase_price.sql 2025-06-16 04:03:37,714 - main - INFO - Migration 002_add_purchase_price.sql applied successfully 2025-06-16 04:03:37,714 - main - INFO - Applying migration: 003_add_users_table.sql 2025-06-16 04:03:37,782 - main - INFO - Migration 003_add_users_table.sql applied successfully 2025-06-16 04:03:37,782 - main - INFO - Applying migration: 004_create_user_preferences_table.py Created user_preferences table 2025-06-16 04:03:37,803 - main - INFO - Migration 004_create_user_preferences_table.py applied successfully 2025-06-16 04:03:37,803 - main - INFO - Applying migration: 005_add_expiring_soon_days_column.py Added expiring_soon_days column to existing user_preferences table 2025-06-16 04:03:37,808 - main - INFO - Migration 005_add_expiring_soon_days_column.py applied successfully 2025-06-16 04:03:37,808 - main - INFO - Applying migration: 006_add_currency_symbol_column.py Added currency_symbol column to user_preferences table 2025-06-16 04:03:37,815 - main - INFO - Migration 006_add_currency_symbol_column.py applied successfully 2025-06-16 04:03:37,815 - main - INFO - Applying migration: 007_add_notification_preferences.sql 2025-06-16 04:03:37,828 - main - INFO - Migration 007_add_notification_preferences.sql applied successfully 2025-06-16 04:03:37,828 - main - INFO - Applying migration: 008_add_tags.sql 2025-06-16 04:03:37,861 - main - INFO - Migration 008_add_tags.sql applied successfully 2025-06-16 04:03:37,861 - main - INFO - Applying migration: 009_add_admin_flag_to_tags.sql 2025-06-16 04:03:37,870 - main - INFO - Migration 009_add_admin_flag_to_tags.sql applied successfully 2025-06-16 04:03:37,870 - main - INFO - Applying migration: 010_configure_admin_roles.sql 2025-06-16 04:03:37,887 - main - INFO - Migration 010_configure_admin_roles.sql applied successfully 2025-06-16 04:03:37,887 - main - INFO - Applying migration: 011_ensure_admin_permissions.sql 2025-06-16 04:03:37,893 - main - INFO - Migration 011_ensure_admin_permissions.sql applied successfully 2025-06-16 04:03:37,893 - main - INFO - Applying migration: 012_add_timezone_column.sql 2025-06-16 04:03:37,901 - main - INFO - Migration 012_add_timezone_column.sql applied successfully 2025-06-16 04:03:37,901 - main - INFO - Applying migration: 013_add_lifetime_warranty.sql 2025-06-16 04:03:37,908 - main - INFO - Migration 013_add_lifetime_warranty.sql applied successfully 2025-06-16 04:03:37,908 - main - INFO - Applying migration: 014_add_updated_at_to_warranties.sql 2025-06-16 04:03:37,912 - main - INFO - Migration 014_add_updated_at_to_warranties.sql applied successfully 2025-06-16 04:03:37,912 - main - INFO - Applying migration: 015_allow_fractional_warranty_years.sql 2025-06-16 04:03:37,946 - main - INFO - Migration 015_allow_fractional_warranty_years.sql applied successfully 2025-06-16 04:03:37,946 - main - INFO - Applying migration: 016_add_updated_at_to_tags.sql 2025-06-16 04:03:37,949 - main - INFO - Migration 016_add_updated_at_to_tags.sql applied successfully 2025-06-16 04:03:37,949 - main - INFO - Applying migration: 017_add_notes_to_warranties.sql 2025-06-16 04:03:37,952 - main - INFO - Migration 017_add_notes_to_warranties.sql applied successfully 2025-06-16 04:03:37,952 - main - INFO - Applying migration: 018_add_vendor_to_warranties.sql 2025-06-16 04:03:37,954 - main - INFO - Migration 018_add_vendor_to_warranties.sql applied successfully 2025-06-16 04:03:37,954 - main - INFO - Applying migration: 019_add_date_format_column.sql 2025-06-16 04:03:37,962 - main - INFO - Migration 019_add_date_format_column.sql applied successfully 2025-06-16 04:03:37,962 - main - INFO - Applying migration: 020_add_user_id_to_tags.sql 2025-06-16 04:03:37,981 - main - INFO - Migration 020_add_user_id_to_tags.sql applied successfully 2025-06-16 04:03:37,981 - main - INFO - Applying migration: 021_change_warranty_duration_to_components.sql 2025-06-16 04:03:37,995 - main - INFO - Migration 021_change_warranty_duration_to_components.sql applied successfully 2025-06-16 04:03:37,995 - main - INFO - Applying migration: 022_add_other_document_path.sql 2025-06-16 04:03:37,999 - main - INFO - Migration 022_add_other_document_path.sql applied successfully 2025-06-16 04:03:37,999 - main - INFO - Applying migration: 023_add_oidc_columns_to_users.sql 2025-06-16 04:03:38,008 - main - INFO - Migration 023_add_oidc_columns_to_users.sql applied successfully 2025-06-16 04:03:38,008 - main - INFO - Applying migration: 024_fix_tags_constraint.sql 2025-06-16 04:03:38,025 - main - INFO - Migration 024_fix_tags_constraint.sql applied successfully 2025-06-16 04:03:38,025 - main - INFO - Applying migration: 025_add_warranty_type.sql 2025-06-16 04:03:38,036 - main - INFO - Migration 025_add_warranty_type.sql applied successfully 2025-06-16 04:03:38,037 - main - INFO - Applying migration: 025a_add_warranty_type.sql 2025-06-16 04:03:38,043 - main - INFO - Migration 025a_add_warranty_type.sql applied successfully 2025-06-16 04:03:38,043 - main - INFO - Applying migration: 026_add_apprise_settings.sql 2025-06-16 04:03:38,046 - main - INFO - Migration 026_add_apprise_settings.sql applied successfully 2025-06-16 04:03:38,046 - main - INFO - Applying migration: 027_add_notification_channel.sql 2025-06-16 04:03:38,051 - main - INFO - Migration 027_add_notification_channel.sql applied successfully 2025-06-16 04:03:38,051 - main - INFO - Applying migration: 028_fix_notification_columns.sql 2025-06-16 04:03:38,067 - main - INFO - Migration 028_fix_notification_columns.sql applied successfully 2025-06-16 04:03:38,067 - main - INFO - Applying migration: 029_add_apprise_timezone.sql 2025-06-16 04:03:38,070 - main - INFO - Migration 029_add_apprise_timezone.sql applied successfully 2025-06-16 04:03:38,071 - main - INFO - Applying migration: 030_add_product_photo_path.sql 2025-06-16 04:03:38,080 - main - INFO - Migration 030_add_product_photo_path.sql applied successfully 2025-06-16 04:03:38,080 - main - INFO - Applying migration: 031_add_owner_role.sql 2025-06-16 04:03:38,085 - main - INFO - Migration 031_add_owner_role.sql applied successfully 2025-06-16 04:03:38,085 - main - INFO - Applying migration: 032_add_apprise_notification_mode.sql 2025-06-16 04:03:38,087 - main - INFO - Migration 032_add_apprise_notification_mode.sql applied successfully 2025-06-16 04:03:38,088 - main - INFO - Applying migration: 033_add_apprise_warranty_scope.sql 2025-06-16 04:03:38,090 - main - INFO - Migration 033_add_apprise_warranty_scope.sql applied successfully 2025-06-16 04:03:38,090 - main - INFO - Applying migration: 034_add_currency_position_column.sql 2025-06-16 04:03:38,101 - main - INFO - Migration 034_add_currency_position_column.sql applied successfully 2025-06-16 04:03:38,101 - main - INFO - Applying migration: 035_add_currency_to_warranties.sql 2025-06-16 04:03:38,117 - main - INFO - Migration 035_add_currency_to_warranties.sql applied successfully 2025-06-16 04:03:38,117 - main - INFO - Migrations completed successfully Running fix permissions script... INFO:main:Attempting to connect to database (attempt 1/5) INFO:main:Database connection successful INFO:main:Executing fix permissions SQL script... INFO:main:Permissions fixed successfully Setup script finished successfully. 2025-06-16 04:03:38,234 INFO exited: setup (exit status 0; expected) 2025-06-16 04:03:38,234 INFO exited: setup (exit status 0; expected) INFO:backend.notifications:Retrying scheduler initialization on first request... INFO:backend.notifications:Scheduler will NOT run in this worker (ID: 1, Name: worker-1) INFO:backend.notifications:ℹ️ Scheduler not started in this worker INFO:backend.notifications:Retrying scheduler initialization on first request... INFO:backend.notifications:Scheduler will run in Gunicorn worker (ID: 0, Name: worker-0) WARNING:backend.notifications:Failed to initialize GeventScheduler: 'tzlocal() does not support non-zoneinfo timezones like Kuala_Lumpur. \nPlease use a timezone in the form of Continent/City' INFO:backend.notifications:Falling back to BackgroundScheduler ERROR:backend.notifications:❌ Failed to start scheduler: 'tzlocal() does not support non-zoneinfo timezones like Kuala_Lumpur. \nPlease use a timezone in the form of Continent/City' ERROR:app:Error checking registration status: error with status PGRES_TUPLES_OK and no message from the libpq ERROR:app:Error checking registration status: no results to fetch [2025-06-16 04:07:11 +0000] [9] [CRITICAL] WORKER TIMEOUT (pid:17) [2025-06-16 04:07:12 +0000] [9] [ERROR] Worker (pid:17) was sent SIGKILL! Perhaps out of memory? Forking worker #3 [2025-06-16 04:07:12 +0000] [76] [INFO] Booting worker with pid: 76 Worker 76 (ID: 2) forked with memory optimization

adyjob2012 avatar Jun 16 '25 04:06 adyjob2012

I appreciate it, please be patient while I figure out what's causing your problem.

I've posted a minimal version of your docker compose that might work better for you.

Try to set your OIDC through the settings page. And change your secret key and other customization that you need.

Let me know if this works.

services:
  warracker:
    image: ghcr.io/sassanix/warracker/main:latest
    ports:
      - "8005:80"
    volumes:
      - warracker_uploads:/data/uploads
    environment:
      - DB_HOST=warrackerdb
      - DB_NAME=warranty_db
      - DB_USER=warranty_user
      - DB_PASSWORD=${DB_PASSWORD:-warranty_password}
      - SMTP_HOST=smtp.gmail.com
      - SMTP_PORT=587
      - [email protected]
      - SMTP_PASSWORD=xxxx
      - SECRET_KEY=your secret key
      - MAX_UPLOAD_MB=32 # Example: Set max upload size to 64MB 
      - NGINX_MAX_BODY_SIZE_VALUE=32M # For Nginx, ensure this matches MAX_UPLOAD_MB in concept (e.g., "64M")
      - FRONTEND_URL=https://warracker. domain.com
      - FLASK_DEBUG=0
      
    depends_on:
      warrackerdb:
        condition: service_healthy
    restart: unless-stopped
  
  warrackerdb:
    image: postgres:15-alpine
    volumes:
      - postgres_data:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=warranty_db
      - POSTGRES_USER=warranty_user
      - POSTGRES_PASSWORD=${DB_PASSWORD:-warranty_password}
    restart: unless-stopped

    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
      interval: 5s
      timeout: 5s
      retries: 5

volumes:
  postgres_data:
  warracker_uploads:

I have try the above minimal version and yet unable to register new account.

below is the console logs:

2025-06-16 04:27:09,903 - main - INFO - Migration 025a_add_warranty_type.sql already applied, skipping. 2025-06-16 04:27:09,903 - main - INFO - Migration 026_add_apprise_settings.sql already applied, skipping. 2025-06-16 04:27:09,903 - main - INFO - Migration 027_add_notification_channel.sql already applied, skipping. 2025-06-16 04:27:09,904 - main - INFO - Migration 028_fix_notification_columns.sql already applied, skipping. 2025-06-16 04:27:09,904 - main - INFO - Migration 029_add_apprise_timezone.sql already applied, skipping. 2025-06-16 04:27:09,904 - main - INFO - Migration 030_add_product_photo_path.sql already applied, skipping. 2025-06-16 04:27:09,904 - main - INFO - Migration 031_add_owner_role.sql already applied, skipping. 2025-06-16 04:27:09,904 - main - INFO - Migration 032_add_apprise_notification_mode.sql already applied, skipping. 2025-06-16 04:27:09,904 - main - INFO - Migration 033_add_apprise_warranty_scope.sql already applied, skipping. 2025-06-16 04:27:09,904 - main - INFO - Migration 034_add_currency_position_column.sql already applied, skipping. 2025-06-16 04:27:09,904 - main - INFO - Migration 035_add_currency_to_warranties.sql already applied, skipping. 2025-06-16 04:27:09,904 - main - INFO - Migrations completed successfully Running fix permissions script... INFO:main:Attempting to connect to database (attempt 1/5) INFO:main:Database connection successful INFO:main:Executing fix permissions SQL script... INFO:main:Permissions fixed successfully Setup script finished successfully. 2025-06-16 04:27:10,051 INFO exited: setup (exit status 0; expected) 2025-06-16 04:27:10,051 INFO exited: setup (exit status 0; expected) ✅ Early gevent monkey patch applied for SSL compatibility. Using OPTIMIZED memory mode - balanced RAM usage and performance ℹ️ Using gevent workers with early monkey patching applied. Gunicorn configuration loaded: 2 gevent workers in OPTIMIZED mode Memory limit per worker: 128MB, Max connections: 100 ✅ Apprise successfully imported ✅ Database functions imported from backend.db_handler ERROR:backend.db_handler:[DB_HANDLER] Database connection pool is None. Attempting to re-initialize. INFO:backend.db_handler:[DB_HANDLER] Attempting to initialize database pool (attempt 1/5) INFO:backend.db_handler:[DB_HANDLER] Database connection pool initialized successfully. INFO:backend.apprise_handler:Apprise configuration loaded: enabled=False, urls_count=0 INFO:backend.apprise_handler:Apprise notification handler initialized successfully INFO:backend.apprise_handler:Apprise configuration loaded: enabled=False, urls_count=0 INFO:backend.apprise_handler:Apprise notification handler initialized successfully INFO:app:Apprise notification handler imported successfully INFO:backend.db_handler:[DB_HANDLER] Database connection pool already initialized. INFO:app:Database connection pool initialized successfully. INFO:app:Max upload file size set to: 32MB (33554432 bytes) INFO:app:[APP.PY OIDC_INIT] Attempting to initialize OIDC client... INFO:app:[APP.PY OIDC_INIT] Fetched OIDC settings from DB: {'oidc_enabled': 'false', 'oidc_only_mode': 'false', 'oidc_provider_name': 'oidc', 'oidc_client_id': '', 'oidc_issuer_url': '', 'oidc_scope': 'openid email profile'} INFO:app:[APP.PY OIDC_INIT] OIDC enabled status: False INFO:app:[APP.PY OIDC_INIT] OIDC is disabled. INFO:backend.notifications:Scheduler will run in Gunicorn worker (ID: 0, Name: ) INFO:backend.notifications:Using BackgroundScheduler with worker INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts INFO:apscheduler.scheduler:Added job "init_scheduler..notification_wrapper" to job store "default" INFO:apscheduler.scheduler:Scheduler started INFO:backend.notifications:✅ Email notification scheduler started - checking every 2 minutes INFO:app:Ensuring application owner exists on startup... INFO:app:No application owner found, attempting to promote first user... WARNING:app:No users found in system. First registered user will become owner. Server is starting with memory-optimized configuration [2025-06-16 04:27:10 +0000] [9] [INFO] Starting gunicorn 23.0.0 [2025-06-16 04:27:10 +0000] [9] [INFO] Listening at: http://0.0.0.0:5000 (9) [2025-06-16 04:27:10 +0000] [9] [INFO] Using worker: gevent Forking worker #1 Worker 18 (ID: 0) forked with memory optimization [2025-06-16 04:27:10 +0000] [18] [INFO] Booting worker with pid: 18 Traceback (most recent call last): File "src/gevent/_abstract_linkable.py", line 287, in gevent._gevent_c_abstract_linkable.AbstractLinkable._notify_links File "src/gevent/_abstract_linkable.py", line 333, in gevent._gevent_c_abstract_linkable.AbstractLinkable._notify_links AssertionError: (None, <callback at 0x778dbdf38f80 args=([],)>) 2025-06-16T04:27:10Z <callback at 0x778dbdf38f80 args=([],)> failed with AssertionError Forking worker #2 [2025-06-16 04:27:11 +0000] [19] [INFO] Booting worker with pid: 19 Worker 19 (ID: 1) forked with memory optimization 2025-06-16 04:27:15,036 INFO success: nginx entered RUNNING state, process has stayed up for > than 5 seconds (startsecs) 2025-06-16 04:27:15,036 INFO success: nginx entered RUNNING state, process has stayed up for > than 5 seconds (startsecs) 2025-06-16 04:27:15,036 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 5 seconds (startsecs) 2025-06-16 04:27:15,036 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 5 seconds (startsecs) ERROR:backend.oidc_handler:[OIDC_HANDLER] Error fetching OIDC status: error with status PGRES_TUPLES_OK and no message from the libpq ERROR:app:Error checking registration status: no results to fetch INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 04:29:10 UTC)" (scheduled at 2025-06-16 04:29:10.890610+00:00) INFO:backend.notifications:Starting expiration notification process INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 04:29:10 UTC)" (scheduled at 2025-06-16 04:29:10.890610+00:00) INFO:backend.notifications:Starting expiration notification process WARNING:backend.notifications:Database connection attempt 1 failed: no results to fetch ERROR:backend.db_handler:[DB_HANDLER] Error releasing connection to pool: error with status PGRES_TUPLES_OK and no message from the libpq. Connection state: 0 INFO:apscheduler.executors.default:Running job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 04:29:10 UTC)" (scheduled at 2025-06-16 04:29:10.890610+00:00) INFO:backend.notifications:Starting expiration notification process INFO:backend.db_handler:[DB_HANDLER] Connection closed directly after putconn failure. INFO:backend.notifications:Retrying database connection in 2 seconds... WARNING:backend.notifications:Database connection attempt 1 failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. WARNING:backend.notifications:Database connection attempt 1 failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. INFO:backend.notifications:Retrying database connection in 2 seconds... INFO:backend.notifications:Retrying database connection in 2 seconds... INFO:backend.notifications:No users are eligible for notifications INFO:backend.notifications:No users are eligible for notifications INFO:backend.notifications:No users are eligible for notifications INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 04:31:10 UTC)" executed successfully INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 04:31:10 UTC)" executed successfully INFO:apscheduler.executors.default:Job "init_scheduler..notification_wrapper (trigger: interval[0:02:00], next run at: 2025-06-16 04:31:10 UTC)" executed successfully ERROR:app:Registration error: name 'logger' is not defined

adyjob2012 avatar Jun 16 '25 04:06 adyjob2012

Working on a fix now, thank you all for being patient.

sassanix avatar Jun 16 '25 10:06 sassanix