{"id":30761466,"url":"https://github.com/powerappsdarren/troubleshooting-logs","last_synced_at":"2026-02-10T21:32:09.060Z","repository":{"id":312926915,"uuid":"1049324086","full_name":"PowerAppsDarren/troubleshooting-logs","owner":"PowerAppsDarren","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-02T20:25:06.000Z","size":7517,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-02T22:17:40.729Z","etag":null,"topics":["pieces"],"latest_commit_sha":null,"homepage":"https://github.com/pieces-app/support/issues/809#issuecomment-3246677389","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PowerAppsDarren.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-02T20:06:37.000Z","updated_at":"2025-09-02T20:25:35.000Z","dependencies_parsed_at":"2025-09-02T22:28:09.344Z","dependency_job_id":null,"html_url":"https://github.com/PowerAppsDarren/troubleshooting-logs","commit_stats":null,"previous_names":["powerappsdarren/troubleshooting-logs"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/PowerAppsDarren/troubleshooting-logs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerAppsDarren%2Ftroubleshooting-logs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerAppsDarren%2Ftroubleshooting-logs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerAppsDarren%2Ftroubleshooting-logs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerAppsDarren%2Ftroubleshooting-logs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerAppsDarren","download_url":"https://codeload.github.com/PowerAppsDarren/troubleshooting-logs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerAppsDarren%2Ftroubleshooting-logs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29317956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pieces"],"created_at":"2025-09-04T14:10:55.156Z","updated_at":"2026-02-10T21:32:09.043Z","avatar_url":"https://github.com/PowerAppsDarren.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pieces OS Migration Stuck at 45% - Support Issue\n\n## Issue Summary\n\nPieces OS Desktop App (v4.3.4) is stuck during initialization at \"PiecesOS Migration In Progress\" showing 45% complete. The migration process appears to hang indefinitely after database initialization completes successfully.\n\n- Reported here: https://github.com/pieces-app/support/issues/809#issuecomment-3246677389\n\n## System Information\n\n- **OS**: Windows 11\n- **Pieces Desktop App Version**: 4.3.4\n- **Build**: 267 (Tag: 12.2.1, Branch: 12.2.1)\n- **SHA**: f1676119a37cc2cf3af498efbe5b4c00bbf97ff9\n- **Deploy Type**: MSIX\n- **Channel**: Production\n\n## Problem Description\n\nThe application successfully completes:\n1. ✅ Initialize Desktop App\n2. ✅ Ensure Core Dependencies (but shows \"Retry Step\")\n3. ❌ **Stuck at**: PiecesOS Migration In Progress (45% complete)\n\nThe UI shows the migration progress bar stopped at 45% with the message: \"We're updating your Pieces data to work with the latest version. This usually takes a few moments. Pieces will refresh automatically when complete.\"\n\n## Log Analysis Results\n\n### ✅ Security Check Passed\nAll log files have been analyzed and contain **NO sensitive information**:\n- No passwords, API keys, tokens, or credentials\n- No personal data beyond standard Windows username in file paths\n- Only system metadata (process IDs, timestamps, version info)\n- Safe to share in public GitHub issues\n\n### 🔍 Technical Analysis\n\n**What Works:**\n- Application startup sequence completes successfully\n- Couchbase database initialization succeeds (multiple attempts with varying times: 7-61 seconds)\n- HTTP server starts and responds to health checks on port 39300\n- All core dependencies load without errors\n\n**Where It Hangs:**\nAfter database initialization completes, the logs show:\n```\n[I] initializeDataSingletons - Couchbase initializeCouchbase completed in 7113ms\n[I] couchbase initialized, now the other collections.\n[I] initializeDataSingletons - Platform detection completed in 0ms\n[I] initializeDataSingletons - Database initialization with embedding callbacks completed in 0ms\n[D] 0:00:00.001599 GET [200] /.well-known/version: port:39300\n[D] 0:00:00.000463 GET [200] /.well-known/health: port:39300\n```\n\n**Then nothing happens** - no migration-related log entries appear.\n\n## Root Cause Analysis\n\nThe issue appears to be that **the migration process is never triggered** after database initialization. Based on log patterns from successful migrations in older logs (July 2025), we should see entries like:\n- `Starting migration of non-Formats entities...`\n- `Starting migration of Formats entities...`\n- `Migration completed successfully`\n\n**Hypothesis**: There's a missing step or dependency between database initialization and migration trigger that's causing the process to hang indefinitely.\n\n## Reproduction Pattern\n\nThis issue has occurred multiple times as evidenced by:\n- Multiple restart attempts (3 different process IDs: 174240, 218748, 216364)\n- Consistent hanging at the same point after database init\n- Same behavior across different startup sessions\n\n## Files Included\n\nThis repository contains daily log files from July-September 2025:\n- `log-MMDDYYYY.txt` format\n- Most recent: `log-09022025.txt` (showing current stuck state)\n- Historical logs showing successful migrations in July 2025\n\n## Related GitHub Issues\n\nAfter searching the [Pieces Support Repository](https://github.com/pieces-app/support/issues), several **highly relevant** issues were found:\n\n### 🔍 Most Similar Issues:\n- **#813** - \"Ensure Core Dependencies\" \n- **#809** - \"Ensure core dependencies; Retry Step\" - [Specific comment with similar issue](https://github.com/pieces-app/support/issues/809#issuecomment-3246677389)\n- **#602** - \"Ensure core dependencies Retry Step , I need help #bug\"\n\n### Related Initialization Problems:\n- **#835** - \"pieces-for-developers crashes at startup on ubuntu 24.04 LTS\"\n- **#834** - \"Cannot connect to Authentication site during install of Pieces\"\n- **#237** - \"Updates failing at 75% through download\"\n- **#113** - \"Download of local LLM's initializes, but never proceeds\"\n- **#364** - \"Pieces os wont start after update\"\n\n### 💡 Key Insight:\nThe \"Ensure Core Dependencies\" with \"Retry Step\" shown in the UI appears to be a **known recurring issue** affecting multiple users. The migration getting stuck at 45% may be a **downstream consequence** of the core dependencies failing to properly initialize.\n\n**Recommendation**: Check issues #813 and #809 for existing solutions before creating a new issue, or reference them when reporting this problem.\n\n## Next Steps Needed\n\nTo resolve this issue, the Pieces team should investigate:\n\n1. **Core Dependencies Issue**: Address the \"Retry Step\" problem in the \"Ensure Core Dependencies\" phase\n2. **Missing Migration Trigger**: What should happen between database initialization completion and migration start?\n3. **Dependency Chain**: Are core dependencies properly completing before migration attempts?\n4. **Background Process**: Is there a background migration process that's not starting?\n5. **Collection Initialization**: The log mentions \"now the other collections\" - are these completing properly?\n\n## Log File Legend\n\n**Log Entry Format:**\n```\n[Level] YYYY-MM-DDTHH:MM:SS.ffffff Message\n```\n\n**Log Levels:**\n- `[D]` - Debug\n- `[I]` - Info  \n- `[38;5;12m[I][0m` - Info with color formatting\n\n**Key Patterns:**\n- API requests: `Duration METHOD [STATUS] endpoint: port:XXXXX`\n- Process startup: `Starting OS_Server!` followed by deployment info\n- Database: `Couchbase initializeCouchbase completed in XXXXms`\n\n## Contact Information\n\nThis issue affects daily workflow and prevents using Pieces OS entirely. The application cannot proceed past the migration screen, making it completely unusable.\n\n**Environment**: Windows 11 Desktop\n**Impact**: Complete application unusable\n**Frequency**: Consistent across multiple restart attempts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerappsdarren%2Ftroubleshooting-logs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowerappsdarren%2Ftroubleshooting-logs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerappsdarren%2Ftroubleshooting-logs/lists"}