OF-Scraper icon indicating copy to clipboard operation
OF-Scraper copied to clipboard

Unable to Save to Network Mapped Drive

Open shadowmaster129 opened this issue 11 months ago • 2 comments

Describe the bug

Unable to save files to network mapped drive. I have been able to do this in the 1.5 years I've used this script, but now its not working. Did the aiolimiter fix as well, reinstalled ofscraper and reconfigured config.json. Tested working with save path to local drive, issue only occurs when set to network mapped drive.

To Reproduce

  1. Set save path in config.json to a network mapped drive, ie: Z:\Onlyfans
  2. Run run ofscraper
  3. Select "Perform Actions"
  4. Select "Download Content from a User"
  5. Select "Do Not Redownload"
  6. For Testing, Select "Messages"
  7. Do not scrape labels
  8. Select model
  9. Script ends without downloading content.

Expected behavior

Database and media should be saved to a specified mapped drive.

Screenshots/Logs

[Logs are required for any reports of any issue, unless the issue is related to setup of script Logs must be at least debug level

Hint: Please make sure that the log formatting is readable, use a paste site like Private Bin]

(https://privatebin.io/?168b95b20cf89a41#Bu5J9nyUj16LpWxQynSomznzLzBjg2pqoUUeVGt3Pc1K)

Config

{ "main_profile": "main_profile", "metadata": "{save_location}/{model_username}/Metadata", "discord": "", "file_options": { "save_location": "Z:\Path\OnlyFans", "dir_format": "{model_username}/{responsetype}/{value}/{mediatype}/", "file_format": "{date}_{filename}.{ext}", "textlength": 0, "space_replacer": " ", "date": "YYYY-MM-DD", "text_type_default": "letter", "truncation_default": true }, "download_options": { "filter": [ "Images", "Audios", "Videos" ], "auto_resume": true, "system_free_min": 0, "max_post_count": 0 }, "binary_options": { "ffmpeg": "" }, "cdm_options": { "private-key": "C:\Users\your_username\.config\cert\private_key.pem", "client-id": "C:\Users\your_username\.config\cert\client_id.bin", "key-mode-default": "manual", "keydb_api": "" }, "performance_options": { "download_sems": 6, "thread_count": 3, "download_limit": 0 }, "content_filter_options": { "block_ads": false, "file_size_max": 0, "file_size_min": 0, "length_max": 0, "length_min": 0 }, "advanced_options": { "code-execution": false, "dynamic-mode-default": "deviint", "backend": "aio", "downloadbars": false, "cache-mode": "sqlite", "appendlog": true, "custom_values": null, "sanitize_text": false, "temp_dir": null, "remove_hash_match": null, "infinite_loop_action_mode": false, "enable_auto_after": false, "default_user_list": "main", "default_black_list": "" }, "scripts_options": { "post_download_script": null, "post_script": null }, "responsetype": { "timeline": "Posts", "message": "Messages", "archived": "Archived", "paid": "Messages", "stories": "Stories", "highlights": "Stories", "profile": "Profile", "pinned": "Posts", "streams": "Streams" }, "overwrites": { "audios": {}, "videos": {}, "images": {}, "text": {} }, "ffmpeg": "C:\Users\your_username\.config\ofscraper\bin\ffmpeg.exe" }

System Info

  • OS: Windows 10
  • Browser: Firefox
  • Version: 3.12.9
  • binary or python: Python 3.11.6
  • python version if installed via pip or pypi

Additional context

I've been running the script locally and saving the metadata and media to a remote server for over a year, and now I am having this issue. I have using version 3.12.9 for a while now as well. The last time I ran the script was end of December, just before the new year. Any insight would be helpful.

I have confirmed the above config works if the save path is local.

I have also confirmed that the user account i'm logged in with has the ability to create and modify to the mapped drive as well.

shadowmaster129 avatar Jan 19 '25 12:01 shadowmaster129

From the logs it looks like there is an error accessing or writing to the disk sqlite3.OperationalError: disk I/O error If you are using the same ofscraper version then this is not an issue with the scraper but indicates something with the remote server changed. like an unknown file permission issue, disk space issue, or may be something else is accessing the files and making ofscraper unable to modify them when its running. Either way this this is something with the remote server and not ofscraper.

cjb900 avatar Jan 19 '25 17:01 cjb900

Got it. I'll look more at the server then, try to find out what's going on. Thanks.

shadowmaster129 avatar Jan 19 '25 19:01 shadowmaster129

This script does not support network drives from metadata You are fine to use it for saving downloads, but I don't have a network drive for testing

datawhores avatar May 30 '25 19:05 datawhores