Repository navigation
Unable to copy/paste files into downloads directory? #265
|
Is there some sort of logic that restricts the ability to copy/paste downloaded files into the downloads directory? I'm migrating from pinchflat and am unable to migrate over due to some db error preventing the migration. I wanted to start over using pinchflat-ngx where I would copy over pre-existing downloaded files into the new downloads directory and have pinchflat-ngx scan/reconcile the existing files. Every time I attempt to move files into the new downloads directory, I get a permissions error saying that's not allowed. Even if I attempt to perform any sort of file operation inside of the downloads directory, i.e. copy/paste a brand new source and its downloaded files, I still get permissions errors. Am I missing something? I did not have this issue with the original pinchflat. |
Replies: 6 comments 2 replies
|
There’s no intentional restriction on copying files into the downloads folder. That sounds like a filesystem ownership or permissions issue, but I’d need a little more detail to narrow it down. What are you running this on: Unraid, a NAS, or Docker on Linux/Windows? Could you share your Pinchflat-ngx version, container configuration with secrets removed, and the exact copy/paste error? Please include the database migration error too. I’d like to understand why migration failed before you have to rebuild your library. Copying files over won’t automatically register them in a fresh database. There’s an Import Downloads action on each source: pause the source, wait for running jobs to finish, then preview and import the existing files. It requires matching yt-dlp Keep your original config/database and downloads intact while we work through this. |
|
My setup:
Backstory: https://github.com/CommunityMaintained/pinchflat Here's the docker-compose file: When I start the container, it endlessly restarts with the following error: The copy/paste error. I get the same error even if I attempt to create a new folder in the downloads directory: |
|
Thanks, that helps. Pinchflat-ngx passed its write check on The restart loop happens during the database migration check. That exact error in 2026.11.2 means Pinchflat-ngx found Do you have a config backup from before switching to the CommunityMaintained fork, or the exact rollback command and its output? If those are gone, we can still check the SQLite migration history on a backup copy. I’d check that before rebuilding the library. If the database can be migrated, your downloads can stay where they are. Migration guide |
|
Windows Explorer is connected directly to the Synology share, to the same downloads directory. Yes, I can create a folder next to the downloads directory but not inside the downloads directory. Unfortunately, I no longer see the logs from when I first migrated to pinchflat-ngx. This is all I see when I open the legacy-migration.json: |
|
Thanks, that narrows both things down. Since Windows can create a folder next to The rollback screenshot shows that the second run succeeded and removed three migrations in its range. The saved error suggests there may still be newer migration entries outside that range. Before rebuilding, could you stop the container and back up the full config directory? The rollback script also made a pre-rollback backup, so keep that too. On the post-rollback backup copy, run this from the copied config directory and paste the output. It only prints migration IDs, so there’s no need to upload the database. sqlite3 -readonly db/pinchflat.db \
'SELECT version FROM schema_migrations WHERE version > 20250317213740 ORDER BY version;'If it prints nothing, let me know. Either way, leave the original database and |
|
I think I know what happened. The CommunityMaintained fork added three migrations on top of the original Pinchflat, and its rollback command removes exactly those three. Your screenshot shows the second run removing three, so the rollback itself looks fine. The saved error tells a different story about timing. "Migration history is not a recognized NGX database" only appears when those fork migrations are still in the database, so Pinchflat-ngx must have started at least once before the rollback succeeded. That start saved To confirm, run this on the backup copy of the config directory: sqlite3 -readonly db/pinchflat.db \
'SELECT count(*), max(version) FROM schema_migrations;'If it prints If it prints anything else, please paste the output here before renaming anything and we'll work out what's left. The downloads folder is a separate problem. Since Windows can create a folder next to The error message telling you to restore the config backup isn't helpful in this situation, and I'll make the startup check handle it better. |


I think I know what happened. The CommunityMaintained fork added three migrations on top of the original Pinchflat, and its rollback command removes exactly those three. Your screenshot shows the second run removing three, so the rollback itself looks fine.
The saved error tells a different story about timing. "Migration history is not a recognized NGX database" only appears when those fork migrations are still in the database, so Pinchflat-ngx must have started at least once before the rollback succeeded. That start saved
legacy_migration_state.jsonas blocked. Every start since then stops at that file and doesn't check the database again, which is why it keeps restarting even though the…