Commit Graph
19 Commits
Author SHA1 Message Date
nmemmert f4611c5aa4 Fix client-side issues: logo loading and JS errors
- Replace base64 logo with static file reference to avoid ERR_INVALID_URL
- Add missing status element to index.html to fix TypeError in XMLHttpRequest
- Reduce MAX_CONTENT_LENGTH from 1000TB to 100GB for practicality
- Update all templates to use logo_url instead of logo_b64
- Update Waitress max_request_body_size to match Flask limit
2025-11-06 08:15:49 -05:00
nmemmert c9e817547a Convert print statements to proper logging for systemd capture
- Convert all print statements in process_pdfs_async to logger.info/logger.error
- Update startup diagnostics to use logger.info instead of print
- Ensure all diagnostic information is captured by systemd logs on remote server
- Add detailed logging for PDF processing steps, file scanning, and error conditions
2025-11-06 07:58:08 -05:00
nmemmert a6b751053a Add comprehensive diagnostics and fix processing issues
- Add startup diagnostics showing directory permissions and PDF support
- Enhanced process_pdfs_async with detailed logging at every step
- Check if PyMuPDF is available and fail gracefully if not
- Scan and log all PDF files found in upload directory
- Improved error handling during file processing
- Sequential processing with progress updates every 10 files
- Clear error messages when no PDFs found or processing fails
- This will show exactly where processing stops on remote server
2025-11-06 07:45:23 -05:00
nmemmert 3215cd9032 Fix all paths to be absolute based on __file__ to work regardless of working directory
- Make RESULTS_DIR, SESSION_FILE_DIR, uploads absolute
- Add error handling around file saving with detailed logging
- Add /test route to check write permissions
- Ensure app works on remote with correct paths and permissions
2025-11-05 16:03:46 -05:00
nmemmert 95a74e9035 Temporarily disable @login_required on index route for debugging
- Remove login_required decorator to test if upload works
- Add debug print to confirm auth is bypassed
- If files appear in uploads after this, the issue is authentication
2025-11-05 16:00:28 -05:00
nmemmert 17f63125b1 Save uploaded files to uploads/job_id folder instead of temp dirs
- Create job_id first, then save files to uploads/job_id/
- Add debug print when index() is called
- Files will now be visible in uploads folder for debugging
2025-11-05 15:58:23 -05:00
nmemmert 163414e8e4 Add debug prints to track job submission and processing start
- Print when POST request is received
- Print when process_pdfs_async is called
- Help diagnose if threads are starting on remote server
2025-11-05 15:57:25 -05:00
nmemmert 111b1c9a6d Fix job sorting and ensure absolute paths for remote deployment
- Change JOBS_FILE and RESULTS_DIR to absolute paths using os.path.abspath
- Fix job sorting in /jobs route to use datetime objects instead of strings
- This should resolve issues with jobs not appearing or processing on remote server
2025-11-05 15:53:54 -05:00
nmemmert 27a6b637c5 Add more debugging for job loading and timestamp handling
- Print if jobs.json exists and file path
- Show timestamp conversion details for each job
- Print sorted jobs count and first job status
- Help diagnose why new jobs aren't appearing
2025-11-05 15:48:24 -05:00
nmemmert c60d6673db Add more debugging prints for job creation, saving, loading, and processing
- Add try-except in save_jobs to catch errors
- Print job IDs when loading jobs in /jobs route
- Print timestamp when job is created
- Print start/end times for processing
- Print successful save confirmation
2025-11-05 15:45:18 -05:00
nmemmert 99422217bf Add more debugging to job loading and fix sorting
- Add prints in load_jobs and save_jobs to track job persistence
- Change job sorting to use string timestamps to avoid type comparison errors
2025-11-05 15:41:22 -05:00
nmemmert 0d2384ca55 Add debugging prints and switch to sequential processing
- Add print statements to track job creation, processing start, completion, and failures
- Use absolute path for jobs.json to avoid working directory issues
- Temporarily switch to sequential PDF processing to avoid multiprocessing issues on remote server
2025-11-05 15:39:56 -05:00
nmemmert 1d89e1ca36 Fix logo display and job processing issues
- Embed logo as base64 data URL in templates to avoid static file issues
- Fix Flask route endpoint for /jobs (change function name to 'jobs')
- Change upload and session directories to relative paths for better portability
- Ensure directories are created at app startup
2025-11-05 15:24:35 -05:00
nmemmert 9834c081a9 fix 2025-11-05 15:18:05 -05:00
nmemmert 25e4ccad07 Fix PDF support and template URL issues
- Add PDF_SUPPORT checks before using PyMuPDF functions
- Handle missing PyMuPDF gracefully in PDF processing functions
- Fix url_for('jobs') to url_for('jobs_page') in templates
- Prevent AttributeError when fitz is None
2025-11-05 15:06:57 -05:00
nmemmert 576ea9edec Fix OAuth callback redirect issue - use proper redirect() instead of set_data() 2025-11-05 14:41:41 -05:00
nmemmert 6654ae30c5 Fix authentication callback issues: add cache control headers, prevent double callbacks, improve error handling, and ensure server-side sessions work properly 2025-11-05 13:55:30 -05:00
nmemmert aa0a86d9be Fix session cookie size issue by implementing server-side sessions with Flask-Session 2025-11-05 13:23:39 -05:00
nmemmert 144adf64c4 Complete PDF Sort and Merge Flask Application
- Full-featured web application for PDF processing
- Microsoft Entra (Azure AD) authentication with PKCE
- Parallel PDF sorting and merging capabilities
- Job management system with real-time progress tracking
- Modern web UI with responsive design
- Comprehensive error handling and logging
- Ubuntu installation script for easy deployment
- Environment configuration for secure credential management
2025-11-05 11:41:48 -05:00