Unable to import images into Photos

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Unable to import images into Photos Tue Jun 05, 2018 12:51 pm • by HaroldH
Since a few weeks, my rule that imports new images from Dropbox into Photos doesn't work anymore.

The error in the log says for every image:
Code: Select all
hazelworker[53830] Could not find album with specifier: Name: Importeer camera-uploads hier (rijp en groen), Identifier: QrIa8TvITXimkUGlYbWujw, Type: 1


The Album already contains 3371 items, and was working perfectly sofar.

What should I check or do to resolve this?

MacOS 10.13.5
Hazel 4.2.5
HaroldH
 
Posts: 11
Joined: Fri Nov 18, 2011 12:12 pm

Re: Unable to import images into Photos Wed Jun 06, 2018 10:47 am • by Mr_Noodle
In Photos' preferences, is your library set as the system one? Also, have you made any changes to your Photos library recently?
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Unable to import images into Photos Wed Jun 20, 2018 7:00 am • by HaroldH
Mr_Noodle wrote:In Photos' preferences, is your library set as the system one? Also, have you made any changes to your Photos library recently?

Sorry for my late answer; the notification ended in my spam folder

My Photos library is the same for 4 years already. I'm not sure what you mean with "making changes", because I am adding and changing photos constantly :-)
During configuration of the rule, I can choose the right destination album without problem. Only during execution it goes wrong.
HaroldH
 
Posts: 11
Joined: Fri Nov 18, 2011 12:12 pm

Re: Unable to import images into Photos Wed Jun 20, 2018 11:00 am • by Mr_Noodle
Usually things don't break out of the blue. Some change is very likely to have caused it. An os update or something along those lines.

What if you try and re-set the album in the rule. Does it behave the same way after that?
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Unable to import images into Photos Wed Jun 20, 2018 12:45 pm • by HaroldH
Mr_Noodle wrote:Usually things don't break out of the blue. Some change is very likely to have caused it. An os update or something along those lines.

What if you try and re-set the album in the rule. Does it behave the same way after that?


Today I gave it another try and found some interesting behaviour. Note that I have restarted my MacBook Pro yesterday.

When I moved some non-processed images to the input folder, I noticed that the import into Photos seemed to work again! So I put another batch of images into the same folder. And they started importing to. Until, after a few successful imports, I noticed that error messages appeared. And after this error, no successful import is seen.

When I looked into the log, I saw that during processing of images, suddenly the same error appeared again:
Code: Select all
2018-06-20 18:22:50.941 hazelworker[39439] 2016-04-20 21.48.19.jpg: Rule JPG-HEIC - Rubriceer per jaar (modified), voeg tags toe en importeer in Photos matched.
2018-06-20 18:22:50.943 hazelworker[39439] [File Event] File moved into subfolder: /Users/haroldhorsman/Dropbox/Camera Uploads/2016/2016-04-20 21.48.19.jpg sorted from folder /Users/haroldhorsman/Dropbox/Camera Uploads to subfolder 2016.
2018-06-20 18:22:53.332 hazelworker[39439] [File Event] File renamed: /Users/haroldhorsman/Dropbox/Camera Uploads/2016/2016-04-20 21.48.19.jpg renamed to /Users/haroldhorsman/Dropbox/Camera Uploads/2016/2016-04-20 21.48.19-Imported-20180620.jpg.
2018-06-20 18:22:53.334 hazelworker[39439] Hazel Alert: 2016-04-20 21.48.19-Imported-20180620.jpg is imported into Photos, squeezed and moved
2018-06-20 18:22:53.334 hazelworker[39439] [Custom Message] Hazel Alert: 2016-04-20 21.48.19-Imported-20180620.jpg is imported into Photos, squeezed and moved
----- DOZENS OF SUCCESSFUL IMPORTS UNTIL HERE ------

2018-06-20 18:22:53.426 hazelworker[39439] 2016-04-26 18.10.54.mov: Rule Movies - Rubriceer per jaar (modified), voeg tags toe en importeer in Photos matched.
2018-06-20 18:22:53.428 hazelworker[39439] [File Event] File moved into subfolder: /Users/haroldhorsman/Dropbox/Camera Uploads/2016/2016-04-26 18.10.54.mov sorted from folder /Users/haroldhorsman/Dropbox/Camera Uploads to subfolder 2016.
2018-06-20 18:22:53.902 hazelworker[39439] Could not find album with specifier: Name: Importeer camera-uploads hier (rijp en groen), Identifier: QrIa8TvITXimkUGlYbWujw, Type: 1
2018-06-20 18:22:53.903 hazelworker[39439] [Error] Photos import failed: Could not add file /Users/haroldhorsman/Dropbox/Camera Uploads/2016/2016-04-26 18.10.54.mov to Photos.
2
HaroldH
 
Posts: 11
Joined: Fri Nov 18, 2011 12:12 pm

Re: Unable to import images into Photos Thu Jun 21, 2018 10:45 am • by HaroldH
This morning I tested again, this time with DEBUG mode on.
I copied the most relevant part below, where the last successful import was followed by erroneous ones. The batch contained 44 images, of which 26 were successfully imported.


Code: Select all
2018-06-21 10:25:01.280 HazelHelper[961] DEBUG: Thread 0x60800006ae00: Run worker for folder: /Users/haroldhorsman/Dropbox/Camera Uploads
2018-06-21 10:25:01.280 HazelHelper[961] DEBUG: Task already running for folder: /Users/haroldhorsman/Dropbox/Camera Uploads
2018-06-21 10:25:02.279 HazelHelper[961] DEBUG: Thread 0x60800006ae00: Received events (
        {
        date = "2018-06-21 08:25:02 +0000";
        path = "/Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic";
        shouldDoFullScan = 0;
    }
) for stream at path: /Users/haroldhorsman/Dropbox/Camera Uploads
2018-06-21 10:25:02.279 HazelHelper[961] DEBUG: Ignoring event in directory /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.
2018-06-21 10:25:03.459 HazelHelper[961] DEBUG: Thread 0x60800006ae00: Received events (
        {
        date = "2018-06-21 08:25:03 +0000";
        path = "/Users/haroldhorsman/Dropbox/Camera Uploads/2018/.2018-03-30 11.45.59.heic.5jvjy-Ks25";
        shouldDoFullScan = 0;
    }
) for stream at path: /Users/haroldhorsman/Dropbox/Camera Uploads
2018-06-21 10:25:03.459 HazelHelper[961] DEBUG: Ignoring event in directory /Users/haroldhorsman/Dropbox/Camera Uploads/2018/.2018-03-30 11.45.59.heic.5jvjy-Ks25. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.
2018-06-21 10:25:04.169 hazelworker[5694] DEBUG: OSAScript executed successfully with file /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic. Result: <NSAppleEventDescriptor: null()>
2018-06-21 10:25:04.418 hazelworker[5694] [File Event] File renamed: /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic renamed to /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59-Imported-20180621.heic.
2018-06-21 10:25:04.419 hazelworker[5694] Hazel Alert: 2018-03-30 11.45.59-Imported-20180621.heic is imported into Photos, squeezed and moved
2018-06-21 10:25:04.419 hazelworker[5694] [Custom Message] Hazel Alert: 2018-03-30 11.45.59-Imported-20180621.heic is imported into Photos, squeezed and moved
2018-06-21 10:25:04.419 hazelworker[5694] DEBUG: Rule executed. Updating match date for file /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59-Imported-20180621.heic: 2018-06-21 08:25:01 +0000
2018-06-21 10:25:04.419 hazelworker[5694] DEBUG: Action changed file: 2018-03-30 11.45.59-Imported-20180621.heic
2018-06-21 10:25:04.421 hazelworker[5694] DEBUG: File /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59-Imported-20180621.heic moved out of folder. No longer tracking.
2018-06-21 10:25:04.469 hazelworker[5694] 2018-05-25 18.55.40.heic: Rule JPG-HEIC - Rubriceer per jaar (modified), voeg tags toe en importeer in Photos matched.
2018-06-21 10:25:04.469 hazelworker[5694] DEBUG: New rule signature. Executing actions.
Old signatures: (
)
New Signature:{ANY displayExtensions ==[cd] "jpg" OR ANY displayExtensions ==[cd] "heic" OR typeObject isType: "public.image"}:{(createfolder:(
    "{dateCreated:({year:cd4})}"
),{
    keepFolderStructure = 0;
    replaceExisting = 0;
    throwAwayDupes = 0;
})(photos:Name: Importeer camera-uploads hier (rijp en groen), Identifier: QrIa8TvITXimkUGlYbWujw, Type: 1,{
})(applescript:,{
})(comment:(
    "{finderComment}",
    " - This image is imported into Photos on",
    "{currentDate:({dayOfMonth:cd2}:-:{month:cd2}:-:{year:cd4}: :{hour:cd2:uaf1}:.:{minute:cd2})}"
),{
})(color:5,{
})(addtag:(
    "{Jaar:({dateModified:({year:cd4})})}",
    "{Maand:({dateCreated:({month:cd4})})}",
    "{device make:({hazelspot:kMDItemAcquisitionMake:sc0})}",
    "{Cameramodel:({hazelspot:kMDItemAcquisitionModel:sc0})}",
    Plaatjes,
    "{KindOfFile:({kind:sc0})}",
    "{unnamed (empty)}"
),{
})(rename:(
    "{name:sc0}",
    "-Imported-",
    "{currentDate:({year:cd4}:{month:cd2}:{dayOfMonth:cd2})}",
    "{extension:sc0}"
),{
})(notify:(
    "{file}",
    " is imported into Photos, squeezed and moved"
),{
})}
2018-06-21 10:25:04.470 hazelworker[5694] [File Event] File moved into subfolder: /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-05-25 18.55.40.heic sorted from folder /Users/haroldhorsman/Dropbox/Camera Uploads to subfolder 2018.
2018-06-21 10:25:04.586 HazelHelper[961] DEBUG: Thread 0x60800006ae00: Received events (
        {
        date = "2018-06-21 08:25:04 +0000";
        path = "/Users/haroldhorsman/Dropbox/Camera Uploads/2018/.2018-03-30 11.45.59.heic.5jvjy-Ks25";
        shouldDoFullScan = 0;
    },
        {
        date = "2018-06-21 08:25:04 +0000";
        path = "/Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic.5jvjy";
        shouldDoFullScan = 0;
    },
        {
        date = "2018-06-21 08:25:04 +0000";
        path = "/Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic";
        shouldDoFullScan = 0;
    },
        {
        date = "2018-06-21 08:25:04 +0000";
        path = "/Users/haroldhorsman/Dropbox/Camera Uploads/2018/.DS_Store";
        shouldDoFullScan = 0;
    },
        {
        date = "2018-06-21 08:25:04 +0000";
        path = "/Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic";
        shouldDoFullScan = 0;
    },
        {
        date = "2018-06-21 08:25:04 +0000";
        path = "/Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59-Imported-20180621.heic";
        shouldDoFullScan = 0;
    }
) for stream at path: /Users/haroldhorsman/Dropbox/Camera Uploads
2018-06-21 10:25:04.586 HazelHelper[961] DEBUG: Error resolving symlinks for path /Users/haroldhorsman/Dropbox/Camera Uploads/2018/.2018-03-30 11.45.59.heic.5jvjy-Ks25:, No such file or directory
2018-06-21 10:25:04.586 HazelHelper[961] DEBUG: Ignoring event in directory /Users/haroldhorsman/Dropbox/Camera Uploads/2018/.2018-03-30 11.45.59.heic.5jvjy-Ks25. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.
2018-06-21 10:25:04.586 HazelHelper[961] DEBUG: Error resolving symlinks for path /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic.5jvjy:, No such file or directory
2018-06-21 10:25:04.586 HazelHelper[961] DEBUG: Ignoring event in directory /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic.5jvjy. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.
2018-06-21 10:25:04.586 HazelHelper[961] DEBUG: Error resolving symlinks for path /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic:, No such file or directory
2018-06-21 10:25:04.586 HazelHelper[961] DEBUG: Ignoring event in directory /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.
2018-06-21 10:25:04.586 HazelHelper[961] DEBUG: Ignoring event in directory /Users/haroldhorsman/Dropbox/Camera Uploads/2018/.DS_Store. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.
2018-06-21 10:25:04.586 HazelHelper[961] DEBUG: Error resolving symlinks for path /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic:, No such file or directory
2018-06-21 10:25:04.587 HazelHelper[961] DEBUG: Ignoring event in directory /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59.heic. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.
2018-06-21 10:25:04.587 HazelHelper[961] DEBUG: Ignoring event in directory /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-30 11.45.59-Imported-20180621.heic. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.
2018-06-21 10:25:04.663 hazelworker[5694] Could not find album with specifier: Name: Importeer camera-uploads hier (rijp en groen), Identifier: QrIa8TvITXimkUGlYbWujw, Type: 1
2018-06-21 10:25:04.664 hazelworker[5694] [Error] Photos import failed: Could not add file /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-05-25 18.55.40.heic to Photos.
2018-06-21 10:25:04.664 hazelworker[5694] DEBUG: Tapping error retry sequence
2018-06-21 10:25:04.664 hazelworker[5694] DEBUG: File /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-05-25 18.55.40.heic moved out of folder. No longer tracking.
2018-06-21 10:25:04.665 hazelworker[5694] 2018-03-25 18.09.44.heic: Rule JPG-HEIC - Rubriceer per jaar (modified), voeg tags toe en importeer in Photos matched.
2018-06-21 10:25:04.665 hazelworker[5694] DEBUG: New rule signature. Executing actions.
Old signatures: (
)
New Signature:{ANY displayExtensions ==[cd] "jpg" OR ANY displayExtensions ==[cd] "heic" OR typeObject isType: "public.image"}:{(createfolder:(
    "{dateCreated:({year:cd4})}"
),{
    keepFolderStructure = 0;
    replaceExisting = 0;
    throwAwayDupes = 0;
})(photos:Name: Importeer camera-uploads hier (rijp en groen), Identifier: QrIa8TvITXimkUGlYbWujw, Type: 1,{
})(applescript:,{
})(comment:(
    "{finderComment}",
    " - This image is imported into Photos on",
    "{currentDate:({dayOfMonth:cd2}:-:{month:cd2}:-:{year:cd4}: :{hour:cd2:uaf1}:.:{minute:cd2})}"
),{
})(color:5,{
})(addtag:(
    "{Jaar:({dateModified:({year:cd4})})}",
    "{Maand:({dateCreated:({month:cd4})})}",
    "{device make:({hazelspot:kMDItemAcquisitionMake:sc0})}",
    "{Cameramodel:({hazelspot:kMDItemAcquisitionModel:sc0})}",
    Plaatjes,
    "{KindOfFile:({kind:sc0})}",
    "{unnamed (empty)}"
),{
})(rename:(
    "{name:sc0}",
    "-Imported-",
    "{currentDate:({year:cd4}:{month:cd2}:{dayOfMonth:cd2})}",
    "{extension:sc0}"
),{
})(notify:(
    "{file}",
    " is imported into Photos, squeezed and moved"
),{
})}
2018-06-21 10:25:04.666 hazelworker[5694] [File Event] File moved into subfolder: /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-25 18.09.44.heic sorted from folder /Users/haroldhorsman/Dropbox/Camera Uploads to subfolder 2018.
2018-06-21 10:25:04.864 hazelworker[5694] Could not find album with specifier: Name: Importeer camera-uploads hier (rijp en groen), Identifier: QrIa8TvITXimkUGlYbWujw, Type: 1
2018-06-21 10:25:04.865 hazelworker[5694] [Error] Photos import failed: Could not add file /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-25 18.09.44.heic to Photos.
2018-06-21 10:25:04.865 hazelworker[5694] DEBUG: Tapping error retry sequence
2018-06-21 10:25:04.865 hazelworker[5694] DEBUG: File /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-03-25 18.09.44.heic moved out of folder. No longer tracking.
2018-06-21 10:25:04.870 hazelworker[5694] 2018-05-25 22.05.33.mov: Rule Movies - Rubriceer per jaar (modified), voeg tags toe en importeer in Photos matched.
2018-06-21 10:25:04.870 hazelworker[5694] DEBUG: New rule signature. Executing actions.
Old signatures: (
)
New Signature:{ANY displayExtensions ==[cd] "mov" OR ANY displayExtensions ==[cd] "mp4" OR typeObject isType: "public.movie"}:{(createfolder:(
    "{dateCreated:({year:cd4})}"
),{
    keepFolderStructure = 0;
    replaceExisting = 0;
    throwAwayDupes = 0;
})(photos:Name: Importeer camera-uploads hier (rijp en groen), Identifier: QrIa8TvITXimkUGlYbWujw, Type: 1,{
})(comment:(
    "{finderComment}",
    " - This movie is imported into Photos on",
    "{currentDate:({dayOfMonth:cd2}:-:{month:cd2}:-:{year:cd4}: :{hour:cd2:uaf1}:.:{minute:cd2})}"
),{
})(color:5,{
})(addtag:(
    "{Jaar:({dateModified:({year:cd4})})}",
    "{Maand:({dateCreated:({month:cd4})})}",
    "{device make:({hazelspot:kMDItemAcquisitionMake:sc0})}",
    "{Cameramodel:({hazelspot:kMDItemAcquisitionModel:sc0})}",
    Plaatjes,
    "{KindOfFile:({kind:sc0})}",
    "{unnamed (empty)}"
),{
})(rename:(
    "{name:sc0}",
    "-Imported-",
    "{currentDate:({year:cd4}:{month:cd2}:{dayOfMonth:cd2})}",
    "{extension:sc0}"
),{
})(notify:(
    "{file}",
    " is imported into Photos, squeezed and moved"
),{
})}
2018-06-21 10:25:04.871 hazelworker[5694] [File Event] File moved into subfolder: /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-05-25 22.05.33.mov sorted from folder /Users/haroldhorsman/Dropbox/Camera Uploads to subfolder 2018.
2018-06-21 10:25:05.067 hazelworker[5694] Could not find album with specifier: Name: Importeer camera-uploads hier (rijp en groen), Identifier: QrIa8TvITXimkUGlYbWujw, Type: 1
2018-06-21 10:25:05.067 hazelworker[5694] [Error] Photos import failed: Could not add file /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-05-25 22.05.33.mov to Photos.
2018-06-21 10:25:05.067 hazelworker[5694] DEBUG: Tapping error retry sequence
2018-06-21 10:25:05.067 hazelworker[5694] DEBUG: File /Users/haroldhorsman/Dropbox/Camera Uploads/2018/2018-05-25 22.05.33.mov moved out of folder. No longer tracking.
HaroldH
 
Posts: 11
Joined: Fri Nov 18, 2011 12:12 pm

Re: Unable to import images into Photos Thu Jun 21, 2018 11:27 am • by Mr_Noodle
Were the successful imports using the same album? I wonder if Photos is glitching after a certain amount of time.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Unable to import images into Photos Mon Jun 25, 2018 4:13 am • by HaroldH
Mr_Noodle wrote:Were the successful imports using the same album? I wonder if Photos is glitching after a certain amount of time.

Yes, the same album is used all the time; it's a kind of dropzone in Photos for me. With the definition of the rule, the album shows up without problem. It is during execution of the rule that the glitch shows up.
HaroldH
 
Posts: 11
Joined: Fri Nov 18, 2011 12:12 pm

Re: Unable to import images into Photos Mon Jun 25, 2018 10:46 am • by Mr_Noodle
I wonder if Photos can't keep up at some point. Try adding a "Run shellscript action" with the following script:
Code: Select all
sleep 3

That will put a 3 second pause in. See if that helps.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Unable to import images into Photos Mon Jun 25, 2018 5:13 pm • by HaroldH
Mr_Noodle wrote:I wonder if Photos can't keep up at some point. Try adding a "Run shellscript action" with the following script:
Code: Select all
sleep 3

That will put a 3 second pause in. See if that helps.

I have inserted an action with
Code: Select all
sleep 3
. It seemed not to make much difference. Then I made it
Code: Select all
sleep 5
and that seemed to work for a longer period. But all actions ended in the same error.
I realized later that with
Code: Select all
sleep 5
the whole process is just longer. Maybe I should count the batch size and its successrate in order to see if there is a difference, but that requires some more work.
HaroldH
 
Posts: 11
Joined: Fri Nov 18, 2011 12:12 pm

Re: Unable to import images into Photos Tue Jul 03, 2018 3:24 am • by HaroldH
Is there anything else I can try or look at to diagnose?
HaroldH
 
Posts: 11
Joined: Fri Nov 18, 2011 12:12 pm

Re: Unable to import images into Photos Tue Jul 03, 2018 10:41 am • by Mr_Noodle
Only things I can think of is to increase the delay or instead of importing individual photos, try importing the folder itself and see if that works any better.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Unable to import images into Photos Fri Jul 06, 2018 4:27 am • by HaroldH
I will have to come back on this later as I don't have the time to check the import with folders yet.
HaroldH
 
Posts: 11
Joined: Fri Nov 18, 2011 12:12 pm


Return to Support