Database copy error crash#432
Open
jchu-sandag wants to merge 3 commits into
Open
Conversation
with a robocopy
using copy directory method
cundo92
approved these changes
Jun 29, 2026
cundo92
left a comment
Contributor
There was a problem hiding this comment.
@jchu-sandag thanks for working on and applying this change. I was able to confirm successful copy of a full model run, including the emme_project directory.
aber-sandag
reviewed
Jun 29, 2026
aber-sandag
left a comment
Contributor
There was a problem hiding this comment.
I am somewhat concerned about the effects of overwriting Emme files that are currently in use by Emme. Could you test the following:
- The file copy output shows that all files were copied successfully when copying emme_project with robocopy? Are there any warnings?
- After running, when the project is opened from T drive on another server, can Emme matrices and other Emme data be accessed in Emme?
Contributor
@jchu-sandag feel free to use my test run at "T:\STORAGE-63T\car_tests\log_test\2022_copyTest" for these follow up comments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Edits the copy tool such that the script uses a Windows robocopy in the event that the EMME database cannot be read by the EMME script.
Impact
Recent runs of ABM have all resulted in an error in which the EMME databases could not be read by the EMME script on the remote drive. Thus, the databases could not be copied over from the local drive to the remote drive, forcing users to manually go into the system and close the programs before copying over the rest of the EMME databases. This caused downtime in metrics that required these databases to be within the remote drive. This update will instead initiate a Windows robocopy in the event that the EMME script fails to copy over all the databases to the remove drive.
Types of changes
What types of changes does your code introduce to ABM?
Put an
xin the boxes that applyHow has this been tested?
Checklist:
Further comments
Although not the explicit usage of the following method, the
_copy_dirmethod is a good general copy method for instances where other copying methods fail or run into errors. In the future, an additional update to separate the file masks intofile_masksanddir_maskscould be beneficial in case any specific directories and files would want to be excluded in a single step. However, this update is not within the scope of this PR and would require further testing.