You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

NAS (Linkstation) is endlessly creating copies of contents of graph folder in it's "trashbox"

Hi,


I have learned that I shouldn't use Photos with a library that is on a NAS. I did once though, about a month and half ago, and now the NAS (Linkstation 4 tb LS210D that I bought in July) is endlessly creating copies of the contents of the graph folder in the trash. I threw out that particular library about a month ago. Other photo libraries are still on it since I am using the NAS as a backup. I have been able to delete all of the files in the trash but these keep coming back!


I have their tech support investigating this but I thought I'd ask here too.


I'd be happy to provide screenshots if that would help.


Thanks for any help.


Cheers,


John

MacBook Pro 15″, OS X 10.10

Posted on Sep 14, 2020 11:31 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 18, 2020 4:40 AM

I hope we’ve got it. Key was finding out from Sloth that Photos was still accessing the library on the NAS and then throwing out the original library. (I do wonder, do libraries that are not the system library get any attention to the processes like photoanalysisd and photolibraryd for facial ID, indexing, etc?  I guess not. Even when you are using another library that is not the system library? It seems like they are in use then.) 


I could have gotten further with this faster if I had found the original file sooner. I thought I had deleted it; I’d only forgotton where it was. And then to know that I should trash that file since the items showing up in the trash were coming from it. So, I’ve learned alot.


Everything is deleted, the original library and the re-created libraries from it. Let’s see if they or anything else comes back on its own. So far, so good and it’s been overnight which is encouraging.


I will probably turn AFP off. It was on when I brought the library over to the NAS. I turned it off during this research and then back on again. I don’t plan to use Time Machine with this NAS as it had problems when I did. Is there any reason to have it on? SMB is on.


One last test will be to see if adding the share to the login items will bring the problem back. I shouldn’t think so but taking it off seemed to help while we were figuring out what to do.


I’ll mark this as solved if all is well by the end of the day today.


Thanks for your help.

Similar questions

9 replies
Question marked as Top-ranking reply

Sep 18, 2020 4:40 AM in response to markwmsn

I hope we’ve got it. Key was finding out from Sloth that Photos was still accessing the library on the NAS and then throwing out the original library. (I do wonder, do libraries that are not the system library get any attention to the processes like photoanalysisd and photolibraryd for facial ID, indexing, etc?  I guess not. Even when you are using another library that is not the system library? It seems like they are in use then.) 


I could have gotten further with this faster if I had found the original file sooner. I thought I had deleted it; I’d only forgotton where it was. And then to know that I should trash that file since the items showing up in the trash were coming from it. So, I’ve learned alot.


Everything is deleted, the original library and the re-created libraries from it. Let’s see if they or anything else comes back on its own. So far, so good and it’s been overnight which is encouraging.


I will probably turn AFP off. It was on when I brought the library over to the NAS. I turned it off during this research and then back on again. I don’t plan to use Time Machine with this NAS as it had problems when I did. Is there any reason to have it on? SMB is on.


One last test will be to see if adding the share to the login items will bring the problem back. I shouldn’t think so but taking it off seemed to help while we were figuring out what to do.


I’ll mark this as solved if all is well by the end of the day today.


Thanks for your help.

Sep 17, 2020 5:37 AM in response to markwmsn


markwmsn wrote:

Are you sure the deleted library came from that MBP?


I think so. 


I have taken screenshots of what has been created since yesterday.


FIrst, an overview showing the trashbox with the library package.


Then, looking inside the package, all of the folders and some of the files, starting from the top:



One thing I discovered last night: Using the Sloth app, it showed that the photoanalysisid (1) process was the cause of the share being automounted and the sole process my MBP was involved with on the NAS. Also interesting perhaps is that it was dealing with the private folder. The database folder is the only other folder at that level.


Many of the copied files are .sqlite files. Does Photos use them?


I did use some other picture viewers and catalog apps a few months ago so I’m guessing one of them left something that is causing all this. Now to find out which one.



Sep 17, 2020 9:52 AM in response to lipwak

Update: I found the original photo library on the NAS and tried to delete as much of it as I could. There were both a Graph and PhotosGraphs folders in it:



Two seemingly empty folders, database and one other one I can't remember, gave me this message saying they couldn't be deleted.


(Then I accidentally opened the library... and quit it very quickly. Then I accidentally started to delete the wrong library. Now I have to finish that. No big deal, just unfortunate.)


So, I have to finish up deleting the second library. I'll try rebooting to see if the message saying I can't delete some items doesn't come back.

Sep 15, 2020 6:22 PM in response to lipwak

Update. Support for the Linkstation say it must be some software outside of the NAS causing this. I thought it might be CarbonCopyCloner or SuperDuper but it started before I started using them.


I used to have the NAS as a log in item. When I took it off that, these files have, so far, not been created. When it is a log in item, they are.


That's where I am now. What does this mean?


Plus, I should change the title of this post to just endlessly creating copies of files within the Photoslibrary package. Some of the folders and files created are not just in the graph folder or in that one at all.


PS This is on my MacBook Pro that has 10.15.6 on it. I have several MacBook Pros and Apple doesn't distinguish them when I have to choose which one this applies to. (I still need to get the list Apple has of my devices straightened out.)

Sep 15, 2020 8:38 PM in response to lipwak

Did you copy the library back from the NAS or just revert to using a copy still on your Mac? Sounds like the library was damaged by being on the NAS, then copied back still damaged, and now has some internal pointer(s) that still refer(s) to the old location on the NAS. Can you restore a copy from before the library's stay on the NAS?


Do I understand correctly that there is still a graphs folder (and other folders from inside the library) still in the trash on the NAS?

Sep 16, 2020 9:09 AM in response to markwmsn

I don't remember exactly. I probably deleted it on my MBP and the NAS at about the same time. I don't seem to have a copy of it anywhere now and that's ok. I created it on a whim.


I did have a power outage while I was transferring files over to the NAS on 8/4. The problem didn't start until 8/9. I may have deleted the problem Photos library on 8/6...


Yes, the trash on the NAS is continually filling with various files from that Photos library. Graph and PhotosGraph within it usually are the largest folders. New copies of files I haven't seen before turn up every day.


The "fix" I mention above of taking it off the login items stopped working. I found a large quantity of files and folders today. They seem to have started being created at 9:43 pm last night and ended at 1:47 am. The "trashbox" (as they call it) seems to have been created at 4:39 pm yesterday. I deleted its contents this morning and so far, it hasn't re-created anything.


That's where I'm at.

Sep 17, 2020 2:58 PM in response to lipwak

Thanks for the screenshots. They provide additional information. I missed the graph and PhotosGraph hidden down inside private caches. Now that we know just where to look, they are visible inside my Photos Library.


Looks like the system process "photoanalysisd" decided to plop some of its work files onto the same volume as the Photos library and retained that idea after the demise of the library.


I can now connect what you are seeing with a situation I ran into on one of my Macs when moving the Photos library from one external volume (HDD) to another (SSD). The old volume stayed in use by Photos and some related processes for quite a while after I switched which copy was the System Photo Library, then by decreasing numbers of Photos-related processes. I can't check now which one or ones were using it most recently, because that Mac is now in the shop.


Yes, Photos does make extensive use of sqlite databases inside Photos libraries (and apparently as scratch files).

NAS (Linkstation) is endlessly creating copies of contents of graph folder in it's "trashbox"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.