jbird32275 0 Posted March 9, 2024 Posted March 9, 2024 I am having the issue with multiple entries in the library being created for camera uploads. I am in the process of deleting them, but I still have 15. I've seen this issue reported elsewhere, but I have not seen a resolution to the issue. Did I miss it? I'm on Version 4.8.3.0. hardware_detection-63845594568.txt embyserver-63845594549.txt embyserver(1).txt
Abobader 3464 Posted March 9, 2024 Posted March 9, 2024 Hello jbird32275, ** This is an auto reply ** Please wait for someone from staff support or our members to reply to you. It's recommended to provide more info, as it explain in this thread: Thank you. Emby Team
Happy2Play 9780 Posted March 26, 2024 Posted March 26, 2024 (edited) On 3/14/2024 at 9:55 PM, Luke said: Hi ,we are looking into this. Thanks. May have to retest on a clean new portable though. Got sql errors in log attached below. But removed each Library from Library setup without issue. Shutdown Emby and deleted the cameraupload.json Started Emby and launch app and got worse but no sql error. Just more libraries. 2024-03-26 14:56:33.657 Info App: Creating folder in database camerauploads - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.662 Info App: Creating folder in database camerauploads - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.662 Info App: Creating folder in database camerauploads - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.666 Info App: Created folder in database camerauploads 154921 - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.669 Info App: Created folder in database camerauploads 154922 - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.670 Info App: Skipping creating folder C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads because it already exists 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.670 Info App: Created folder in database camerauploads 154920 - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.675 Info App: Skipping creating folder C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads because it already exists 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.676 Info TaskManager: Queueing task RefreshMediaLibraryTask 2024-03-26 14:56:33.676 Info TaskManager: Executing Scan media library 2024-03-26 14:56:33.677 Info TaskManager: Attempting to cancel Scheduled Task Scan media library 2024-03-26 14:56:33.677 Info TaskManager: Queueing task RefreshMediaLibraryTask 2024-03-26 14:56:33.678 Info App: Skipping creating folder C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads because it already exists 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.678 Info TaskManager: Scan media library Cancelled after 0 minute(s) and 0 seconds 2024-03-26 14:56:33.678 Info App: Rebasing 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads to be underneath 154922 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.679 Info App: Rebasing 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads to be underneath 154921 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.680 Info TaskManager: Executing Scan media library 2024-03-26 14:56:33.681 Info TaskManager: Attempting to cancel Scheduled Task Scan media library 2024-03-26 14:56:33.681 Info TaskManager: Queueing task RefreshMediaLibraryTask 2024-03-26 14:56:33.681 Info App: Rebasing 154921 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads to be underneath 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.684 Info App: Rebasing 154921 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads to be underneath 154922 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.686 Info App: Rebasing 154922 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads to be underneath 154921 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.687 Info TaskManager: Scan media library Cancelled after 0 minute(s) and 0 seconds 2024-03-26 14:56:33.688 Info TaskManager: Queueing task RefreshMediaLibraryTask 2024-03-26 14:56:33.688 Info TaskManager: Executing Scan media library embyserver (3262024).txt Edited March 26, 2024 by Happy2Play
Luke 42079 Posted April 5, 2024 Posted April 5, 2024 On 3/26/2024 at 6:08 PM, Happy2Play said: May have to retest on a clean new portable though. Got sql errors in log attached below. But removed each Library from Library setup without issue. Shutdown Emby and deleted the cameraupload.json Started Emby and launch app and got worse but no sql error. Just more libraries. 2024-03-26 14:56:33.657 Info App: Creating folder in database camerauploads - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.662 Info App: Creating folder in database camerauploads - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.662 Info App: Creating folder in database camerauploads - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.666 Info App: Created folder in database camerauploads 154921 - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.669 Info App: Created folder in database camerauploads 154922 - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.670 Info App: Skipping creating folder C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads because it already exists 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.670 Info App: Created folder in database camerauploads 154920 - C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.675 Info App: Skipping creating folder C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads because it already exists 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.676 Info TaskManager: Queueing task RefreshMediaLibraryTask 2024-03-26 14:56:33.676 Info TaskManager: Executing Scan media library 2024-03-26 14:56:33.677 Info TaskManager: Attempting to cancel Scheduled Task Scan media library 2024-03-26 14:56:33.677 Info TaskManager: Queueing task RefreshMediaLibraryTask 2024-03-26 14:56:33.678 Info App: Skipping creating folder C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads because it already exists 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.678 Info TaskManager: Scan media library Cancelled after 0 minute(s) and 0 seconds 2024-03-26 14:56:33.678 Info App: Rebasing 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads to be underneath 154922 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.679 Info App: Rebasing 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads to be underneath 154921 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.680 Info TaskManager: Executing Scan media library 2024-03-26 14:56:33.681 Info TaskManager: Attempting to cancel Scheduled Task Scan media library 2024-03-26 14:56:33.681 Info TaskManager: Queueing task RefreshMediaLibraryTask 2024-03-26 14:56:33.681 Info App: Rebasing 154921 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads to be underneath 154920 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.684 Info App: Rebasing 154921 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads to be underneath 154922 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.686 Info App: Rebasing 154922 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads to be underneath 154921 C:\Users\Media\AppData\Roaming\Emby-Server\programdata\data\camerauploads 2024-03-26 14:56:33.687 Info TaskManager: Scan media library Cancelled after 0 minute(s) and 0 seconds 2024-03-26 14:56:33.688 Info TaskManager: Queueing task RefreshMediaLibraryTask 2024-03-26 14:56:33.688 Info TaskManager: Executing Scan media library embyserver (3262024).txt 1.17 MB · 1 download Do you mind trying that? I'm having trouble reproducing for some reason. Thanks !
Happy2Play 9780 Posted April 5, 2024 Posted April 5, 2024 57 minutes ago, Luke said: Do you mind trying that? I'm having trouble reproducing for some reason. Thanks ! New system nothing but camera upload. embyserver.txt
Happy2Play 9780 Posted April 5, 2024 Posted April 5, 2024 The above deletes just fine from the UI. But deleting libraries and upload json and toggling different folder options on the device eventually broke the created libraries and cannot remove. Just get spinning circle as mentioned in other topics. I believe it was Recent as that is the only one that appear to actually do anything. With just iphone or just hidden I never got upload to trigger. Will keep testing on this portable as it has nothing on it. But from what I have noticed if a camera library exists it does not go crazy creating others. But I am only testing with one device if that makes a difference. embyserver-63847903777.txt
Happy2Play 9780 Posted April 5, 2024 Posted April 5, 2024 (edited) I can consistently get 6 libraries with one functional one starting from scratch. 5 with no content and 1 with content. iPhone and Hidden folder do not appear to do anything and can only get upload to trigger with Recents folder checked. Only testing was done with a iPhone. Clean/New 4.9.0.12 portable with no other data. Now deleting the cameraupload.json and restarting server and relaunching app did not create any additional libraries. Deleting the broken libraries from UI and leaving good library did not present any issues with future uploads. The issue appears to be with the first upload with nonexisting library. Tested creating the Camerauploads library via api then launching app and everything worked as expected. Spoiler { "Name": "Camera Uploads", "CollectionType": "homevideos", "LibraryOptions": { "EnableArchiveMediaFiles": false, "EnablePhotos": true, "EnableRealtimeMonitor": false, "EnableMarkerDetection": false, "EnableMarkerDetectionDuringLibraryScan": false, "IntroDetectionFingerprintLength": 10, "EnableChapterImageExtraction": false, "ExtractChapterImagesDuringLibraryScan": false, "DownloadImagesInAdvance": false, "CacheImages": false, "PathInfos": [ { "Path": "C:\\Users\\Media\\Desktop\\New\\programdata\\data\\camerauploads" } ], "IgnoreHiddenFiles": false, "IgnoreFileExtensions": [], "SaveLocalMetadata": true, "SaveMetadataHidden": false, "SaveLocalThumbnailSets": false, "ImportPlaylists": true, "EnableAutomaticSeriesGrouping": true, "ShareEmbeddedMusicAlbumImages": true, "EnableEmbeddedTitles": false, "EnableAudioResume": false, "AutoGenerateChapters": true, "AutomaticRefreshIntervalDays": 0, "PlaceholderMetadataRefreshIntervalDays": 0, "ContentType": "homevideos", "MetadataSavers": [], "DisabledLocalMetadataReaders": [], "DisabledLyricsFetchers": [], "SaveLyricsWithMedia": true, "LyricsDownloadMaxAgeDays": 180, "LyricsFetcherOrder": [], "LyricsDownloadLanguages": [], "DisabledSubtitleFetchers": [], "SubtitleFetcherOrder": [], "SkipSubtitlesIfEmbeddedSubtitlesPresent": false, "SkipSubtitlesIfAudioTrackMatches": false, "SubtitleDownloadLanguages": [], "SubtitleDownloadMaxAgeDays": 180, "RequirePerfectSubtitleMatch": true, "SaveSubtitlesWithMedia": true, "ForcedSubtitlesOnly": false, "HearingImpairedSubtitlesOnly": false, "TypeOptions": [], "CollapseSingleItemFolders": false, "EnableAdultMetadata": false, "ImportCollections": false, "MinCollectionItems": 2, "MinResumePct": 2, "MaxResumePct": 90, "MinResumeDurationSeconds": 120, "ThumbnailImagesIntervalSeconds": -1, "SampleIgnoreSize": 314572800 } } So there is a issue somewhere with initial creations for the CameraUpload library. Edited April 5, 2024 by Happy2Play
Luke 42079 Posted April 14, 2024 Posted April 14, 2024 On 4/5/2024 at 12:14 PM, Happy2Play said: The above deletes just fine from the UI. But deleting libraries and upload json and toggling different folder options on the device eventually broke the created libraries and cannot remove. Just get spinning circle as mentioned in other topics. I believe it was Recent as that is the only one that appear to actually do anything. With just iphone or just hidden I never got upload to trigger. Will keep testing on this portable as it has nothing on it. But from what I have noticed if a camera library exists it does not go crazy creating others. But I am only testing with one device if that makes a difference. embyserver-63847903777.txt 71.92 kB · 0 downloads OK I think I see something here to help prevent it from happening. @jbird32275workaround for now is simply to delete the extra libraries. Thanks.
Solution Happy2Play 9780 Posted April 16, 2024 Solution Posted April 16, 2024 On 4/14/2024 at 2:55 PM, Luke said: OK I think I see something here to help prevent it from happening. Testing on a clean beta 4.9.0.14 it only created one library in my test where previously it created at least 6 libraries. 1
Happy2Play 9780 Posted April 16, 2024 Posted April 16, 2024 (edited) Now the real issue of how to help users that cannot delete from the UI. @Luke Is there an easy sql command to assist here? Edited April 16, 2024 by Happy2Play
dmurphy22 8 Posted June 14, 2024 Posted June 14, 2024 Have had this issue today. ~280 camera upload libraries were created and I cannot delete them using the UI or the API due to timeouts. I believe my only option here to to manually remove them from the database. What relationships should I be worried about when deleting the libraries?
Happy2Play 9780 Posted June 14, 2024 Posted June 14, 2024 (edited) 7 minutes ago, dmurphy22 said: Have had this issue today. ~280 camera upload libraries were created and I cannot delete them using the UI or the API due to timeouts. I believe my only option here to to manually remove them from the database. What relationships should I be worried about when deleting the libraries? What server version? But you would have to all the items linked to the libraries so in the end you have to go through each table looking for id/itemid. But will guess as previously mentioned new database it will not happen and existing database can still happen and need a dev to provide a proper method to fix an existing database. Edited June 14, 2024 by Happy2Play
dmurphy22 8 Posted June 14, 2024 Posted June 14, 2024 12 minutes ago, Happy2Play said: What server version? But you would have to all the items linked to the libraries so in the end you have to go through each table looking for id/itemid. But will guess as previously mentioned new database it will not happen and existing database can still happen and need a dev to provide a proper method to fix an existing database. Version 4.9.0.7 beta A bit of a disaster honestly. I will have to study the database structure in order to find the best way to delete the libraries.
Happy2Play 9780 Posted June 14, 2024 Posted June 14, 2024 2 minutes ago, dmurphy22 said: Version 4.9.0.7 beta A bit of a disaster honestly. I will have to study the database structure in order to find the best way to delete the libraries. Okay yes as mentioned above a fix was put in 4.9.0.14. But if I remember correctly only applies to clean installs. Not a db person but poke around when things break. Most of the info is shown above on 26 March post. But am testing again to see if I can break the db again as I deleted all the previous broke db I had laying around.
Luke 42079 Posted June 14, 2024 Posted June 14, 2024 Quote But if I remember correctly only applies to clean installs. No, it should prevent it from happening for everyone. And it was backported to 4.8, so it's in the stable channel as well.
Happy2Play 9780 Posted June 14, 2024 Posted June 14, 2024 24 minutes ago, dmurphy22 said: Version 4.9.0.7 beta Are you a premiere user? If so do you have the backup and restore plugin configured?
dmurphy22 8 Posted June 14, 2024 Posted June 14, 2024 (edited) 9 minutes ago, Happy2Play said: Are you a premiere user? If so do you have the backup and restore plugin configured? I am and do have the plugin but just looked and it was misconfigured and not creating backups I think what I will do is: create a new table in the database Copy the schema and data from MediaItems but on the foreign keys include the `on delete cascade` option delete the rows from the new table, which should then delete all relations in the database to those rows Delete the MediaItems table Rename the new table to MediaItems Cross fingers and start up server. I will try this tomorrow and post back here if it works. Edited June 14, 2024 by dmurphy22
Happy2Play 9780 Posted June 14, 2024 Posted June 14, 2024 2 minutes ago, dmurphy22 said: I am and do have the plugin but just looked and it was misconfigured and not creating backups I think what I will do is: create a new table in the database Copy the schema and data from MediaItems but on the foreign keys include the `on delete cascade` option delete the rows from the new table, which should then delete all relations in the database to those rows Delete the MediaItems table Rename the new table to MediaItems Cross fingers and start up server. I will try this tomorrow and post back here if it works. Make sure you have a backup even if it is a already broke db. Might test on a 4.7 portable to as it should break as it does not have the fix.
Sheshank 0 Posted December 1, 2024 Posted December 1, 2024 I have 2200 folders in the library. Is there an easier way to delete the extra folders? Just got my premiere subscription yesterday. On version 4.8.10 Thanks
Luke 42079 Posted December 10, 2024 Posted December 10, 2024 On 12/1/2024 at 3:56 PM, Sheshank said: I have 2200 folders in the library. Is there an easier way to delete the extra folders? Just got my premiere subscription yesterday. On version 4.8.10 Thanks Hi, unfortunately, no. You may just want to start with a fresh database. Apologies for the disruption.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now