question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exporting site stuck in "In Progress" when Visual Studio is open

See original GitHub issue

Description of bug

I was trying to export a site and it stayed suspended on “In Progress” indefinitely without throwing any error. The folder in ~/App_Data/ExportImport/[EXPORT_DATE] populated with following files:

  • export.dnndb
  • export_files.zip
  • export_packages.zip
  • export_templates.zip
  • export_themes.zip

It was missing export_db.zip and export.json. I investigated the log files and found an error saying another program was using a file it needed. Since the referenced file was in the .vs/ folder, I figured Visual Studio was using the file. When I closed VS, the export completed properly.

Steps to reproduce

List the steps to reproduce the behavior:

  1. Open part of a site you want to export in Visual Studio.
  2. Try to export the site.

Current result

The export begins and then gets stuck on “In Progress”. If you check the folder, the files I mentioned will be there and the error will be in log.

Expected result

DNN should show a toast or something to let me know that another program is using a file it needs or at least that it can’t complete the export.

Screenshots

None.

Error log

2019-04-10 01:57:05.985-05:00 [WEBSTU18805][D:2][T:45][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.IO.IOException: The process cannot access the file 'C:\DNN8\Portals\_default\skins\cofosp2019\.vs\CofoSP2019\v15\Server\sqlite3\db.lock' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.Compression.ZipFileExtensions.DoCreateEntryFromFile(ZipArchive destination, String sourceFileName, String entryName, Nullable`1 compressionLevel)
   at Dnn.ExportImport.Components.Common.CompressionUtil.AddFileToArchive(ZipArchive archive, String file, Int32 folderOffset, String folder)
   at Dnn.ExportImport.Components.Common.CompressionUtil.AddFileToArchive(String file, String archivePath, Int32 folderOffset, String folder)
   at Dnn.ExportImport.Components.Services.ThemesExportService.ExportData(ExportImportJob exportJob, ExportDto exportDto)
   at Dnn.ExportImport.Components.Engines.ExportImportEngine.Export(ExportImportJob exportJob, ExportImportResult result, ScheduleHistoryItem scheduleHistoryItem)
   at Dnn.ExportImport.Components.Scheduler.ExportImportScheduler.DoWork()

Additional context

None.

Affected version

  • 9.3.0
  • 9.2.2
  • 9.2.1
  • 9.2
  • 9.1.1
  • 9.1
  • 9.0

Affected browser

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer
  • Edge

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ohinecommented, Apr 12, 2019

It wouldn’t be a bad idea to exclude the git, node and the vs folders from the export process.

0reactions
valadascommented, May 31, 2020

I think this is a different issue. I suggest you check what else has that file open, maybe temporarely disabling your antivirus, maybe something else. I suggest you look at the file parameters, maybe it is readonly, or the folder permissions… Or at some tools like https://www.iobit.com/en/iobit-unlocker.php that maybe can give you some more details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Video stuck in export
Try to cancel the process and try to export the video again; Check for application updates; Open the Microsoft Store and click on...
Read more >
Export Settings No Longer Works - Developer Community
When attempting to export settings, I no longer see settings to export. ... This issue is read only, because it has been in...
Read more >
Use VS2017 to publish WebAPI , get stuck in `preparing ...
Go to your project folder ang go to "Properties\PublishProfile" and delete all profiles. Then try to publish again.
Read more >
Export/Import: Exporting modules and content as ZIP file is stuck
When using the "Export as ZIP" functionality, the process is stuck midway. A new export cannot be scheduled. Disabling/Enabling the module ...
Read more >
Export Troubleshooting Tips
If your project has stalled while exporting, you can manually re-export it by returning to the editor view and clicking "Export" again. You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found