IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [F] Mp3tag deleting my file!, MP3tag is deleting my MP3 file when I edit tags
WilliamCampbell
post Jul 31 2017, 10:40
Post #1


Member


Group: Full Members
Posts: 6
Joined: 31-July 17
Member No.: 23709
Mp3tag Version: 2.83



My colleague has replicated this, whenever we attempt to use MP3tag to edit the tags on our podcast, it consistently just deletes the file. This happens very frequently and if we had not the orignial working files

This is a great programme, but we have to ditch it if this issue can't be resolved. The only influencing factor is that it seems more likely to happen when the folder is the local version of a Google Drive folder.

Any solutions
Go to the top of the page
 
+Quote Post
ohrenkino
post Jul 31 2017, 10:47
Post #2


Member


Group: Full Members
Posts: 9141
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.84d



ZITAT(WilliamCampbell @ Jul 31 2017, 11:40) *
...
Any solutions

I don't know if this is a solution: don't store it in a location that has the slowest possible access time.
What I think it is:
When updating the tag data, another nosy program tries to read this information (could it be that WMP or some other program has this network folder as watched location?) and opens the file while MP3tag tries to write it. This leads to blocking the file and the modification cannot be transferred from a possible temporary file to the target file.

And as any modification could require to copy the whole file to a local folder and then back again to the network location, it causes a lot of (slow) network traffic. A workflow where the files for modification are stored locally during the editing and then transferred to the target location, would definitely speed up the process and save on the online budget.

Another favourite: insufficient access rights like not being the owner of the target folder or the folder is not open to "everyone".


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
WilliamCampbell
post Jul 31 2017, 10:57
Post #3


Member


Group: Full Members
Posts: 6
Joined: 31-July 17
Member No.: 23709
Mp3tag Version: 2.83



QUOTE (ohrenkino @ Jul 31 2017, 11:47) *
I don't know if this is a solution: don't store it in a location that has the slowest possible access time.


The file is stored on the main local hard drive.


QUOTE (ohrenkino @ Jul 31 2017, 11:47) *
When updating the tag data, another nosy program tries to read this information (could it be that WMP or some other program has this network folder as watched location?) and opens the file while MP3tag tries to write it. This leads to blocking the file and the modification cannot be transferred from a possible temporary file to the target file.


WMP is not installed, and it's not a 'watched location' for any other program, but of course changes in the various files in this folder are replicated to the cloud; this is also the case with anything in a Dropbox or OneDrive folder, which is pretty much all working file folders on Windows computers these days.

QUOTE (ohrenkino @ Jul 31 2017, 11:47) *
And as any modification could require to copy the whole file to a local folder and then back again to the network location, it causes a lot of (slow) network traffic. A workflow where the files for modification are stored locally during the editing and then transferred to the target location, would definitely speed up the process and save on the online budget.

Another favourite: insufficient access rights like not being the owner of the target folder or the folder is not open to "everyone".


Since the file being worked on is in a local folder where we have full rights I don't think this applies. It's a SSD drive on my end, my colleague has replicated this on his local C HDD.
Go to the top of the page
 
+Quote Post
ohrenkino
post Jul 31 2017, 11:03
Post #4


Member


Group: Full Members
Posts: 9141
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.84d



Does the synchronizing process with the network location run at the same time?
Have you checked the access rights and ownership of the folders in question or do you only think they are OK? This forum has a number of threads that deal with problems while writing files and in many cases the access rights where not set properly.
As I do not use cloud storage I cannot reproduce your problem.


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
WilliamCampbell
post Jul 31 2017, 11:07
Post #5


Member


Group: Full Members
Posts: 6
Joined: 31-July 17
Member No.: 23709
Mp3tag Version: 2.83



QUOTE (ohrenkino @ Jul 31 2017, 12:03) *
Does the synchronizing process with the network location run at the same time?



This is a very common process. When a file changes, it is replicated to the cloud, so it is a background process running all the time. I save files from pretty much all the programs that I use in these folders, no issues with any other program.

QUOTE (ohrenkino @ Jul 31 2017, 12:03) *
Have you checked the access rights and ownership of the folders in question or do you only think they are OK?


This is the file folders of my C drive. I have rights to read, write, edit and delete. Is there something more that I might need?

This post has been edited by WilliamCampbell: Jul 31 2017, 11:08
Go to the top of the page
 
+Quote Post
ohrenkino
post Jul 31 2017, 11:56
Post #6


Member


Group: Full Members
Posts: 9141
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.84d



ZITAT(WilliamCampbell @ Jul 31 2017, 12:07) *
This is a very common process. When a file changes, it is replicated to the cloud, so it is a background process running all the time. I save files from pretty much all the programs that I use in these folders, no issues with any other program.
This is the file folders of my C drive. I have rights to read, write, edit and delete. Is there something more that I might need?

I bet that you can set how often or in which intervals such a synchronization is performed. So what about switching it off while you edit? Just as a try.
Or edit in a folder that is not part of the cloud service and then copy the files to that cloud service target.
This would rule out that actually MP3tag does what you claim it does: delete files.

I still suspect that you have conflicting processes that hinder each other's functions. If that is the case, I would separate them.

In respect to access rights: you have the least trouble if you actually own the folder(s). Esp. older installation that got migrated from one Windows version to the next might still carry the attributes of the old owner. Just to make sure that this is no source for trouble.


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
Florian
post Aug 3 2017, 09:12
Post #7


Developer


Group: Admin
Posts: 8082
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.84e



I had contact with William via private email and we confirmed that Google Drive Sync was locking the file. Mp3tag uses a temporary file for writing tags if the new tag doesn't fit to the existing reserved space in the file and the file exceeds a certain size.

While trying to rename the temporary file to the actual filename, the locking process didn't allow this operation to succeed leaving the temporary file.

I've now implemented a fix where the original file is in no case deleted. In case the original file is locked by another process, it still produces an error message but doesn't make any modifications to the file.

You can test the new implementation with the latest Development Build Mp3tag v2.83f.

Kind regards
– Florian


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post
WilliamCampbell
post Aug 3 2017, 10:35
Post #8


Member


Group: Full Members
Posts: 6
Joined: 31-July 17
Member No.: 23709
Mp3tag Version: 2.83



QUOTE (Florian @ Aug 3 2017, 10:12) *
I had contact with William via private email and we confirmed that Google Drive Sync was locking the file. Mp3tag uses a temporary file for writing tags if the new tag doesn't fit to the existing reserved space in the file and the file exceeds a certain size.

While trying to rename the temporary file to the actual filename, the locking process didn't allow this operation to succeed leaving the temporary file.

I've now implemented a fix where the original file is in no case deleted. In case the original file is locked by another process, it still produces an error message but doesn't make any modifications to the file.

You can test the new implementation with the latest Development Build Mp3tag v2.83f.

Kind regards
– Florian


Many thanks for your attention on this Florian
Go to the top of the page
 
+Quote Post
ohrenkino
post Aug 3 2017, 13:34
Post #9


Member


Group: Full Members
Posts: 9141
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.84d



ZITAT(Florian @ Aug 3 2017, 10:12) *
... Google Drive Sync was locking the file. ...While trying to rename the temporary file to the actual filename, the locking process didn't allow this operation to succeed leaving the temporary file.

I've now implemented a fix ...

Does this mean that the threads that reported blocked files (or that files could not be opened for writing) that had other blocking programs as cause (and not insufficient access rights) will now be a thing of the past?


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
Florian
post Aug 3 2017, 13:39
Post #10


Developer


Group: Admin
Posts: 8082
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.84e



QUOTE (ohrenkino @ Aug 3 2017, 14:34) *
Does this mean that the threads that reported blocked files (or that files could not be opened for writing) that had other blocking programs as cause (and not insufficient access rights) will now be a thing of the past?

No. Mp3tag can't unlock files that are locked by another process. But I've implemented a timeout mechanism where Mp3tag retries moving a file in case of a sharing violation. Could be that the reports are less frequent now smile.gif

Kind regards
– Florian


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post
Florian
post Aug 3 2017, 13:41
Post #11


Developer


Group: Admin
Posts: 8082
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.84e



QUOTE (WilliamCampbell @ Aug 3 2017, 11:35) *
Many thanks for your attention on this Florian

Thanks for reporting, William and your help in identifying the issue!

Kind regards
– Florian


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post
WilliamCampbell
post Aug 14 2017, 10:16
Post #12


Member


Group: Full Members
Posts: 6
Joined: 31-July 17
Member No.: 23709
Mp3tag Version: 2.83



I just installed the latest version and unfortunately it doesn't seem to incorporate this fix.
Go to the top of the page
 
+Quote Post
Florian
post Aug 14 2017, 10:42
Post #13


Developer


Group: Admin
Posts: 8082
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.84e



Hi William,

it still does, at least when looking at the code smile.gif Can you please be more specific and give a description on what you're experiencing with v2.83h?

Kind regards
– Florian


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post
WilliamCampbell
post Aug 14 2017, 10:44
Post #14


Member


Group: Full Members
Posts: 6
Joined: 31-July 17
Member No.: 23709
Mp3tag Version: 2.83



QUOTE (Florian @ Aug 14 2017, 11:42) *
Hi William,

it still does, at least when looking at the code smile.gif Can you please be more specific and give a description on what you're experiencing with v2.83h?

Kind regards
– Florian


It seems to delete the file in the Google folder when attempting to save changes.
Go to the top of the page
 
+Quote Post
Florian
post Aug 14 2017, 13:24
Post #15


Developer


Group: Admin
Posts: 8082
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.84e



I now did various tests regarding Google Drive and the current Development Build v2.83h and couldn't create a situation where a file was deleted.

Of course, Mp3tag reports that it couldn't write the file if it's accessed by googledrivesync.exe, but leaves it untouched in those cases.

Kind regards
– Florian


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 16:49