Jump to content

Can not remove folder from library, or remove total library


Recommended Posts

Posted

Hi all, a mentioned in the headline. I changed all my folders in all my libraries (unfortunately rescan requirred) to an external USB 3 drive connected to my Raspi 4b mounted as network drive.

I saw that some movies were missing, so I tried to remove the folder. Failed, I added the same folder again. Now I have the network folder twice. So I tried to remove the whole library. Failed with the result that the emby process takes 100% CPU. Only restart helped.

Please see logs enclosed.

Permissions should be ok. emby as well as samba share have full user rights and I can access the folder via Windows without any problems.

Thanks

Juro

 

 

embyserver-63860531445.txt embyserver (1).txt embyserver-63860527068.txt

Happy2Play
Posted

Dev may have to comment as only one log (embyserver-63860531445) shows the delete attempts not sure if debug logging would show more info as there are no errors .  Only I would think there should be errors but can only guess something with the smb paths.

 

Posted

Hi, what do you mean by failed?

Posted (edited)

Please fin a new log now with debug level.

I first tried to delete path 1, then path 2, then the whole library, where PI CPU consuming increases to 100%. Restarted emby then.

The folder where I have issues with is smb://192.168.178.61/dietpi_elements/Videos/Kids/Filme. You see them twice in the log. 

 

embyserver (1).txt

Edited by juro1971
Posted
2 minutes ago, Luke said:

Hi, what do you mean by failed?

Removing the folder, failed, so did not function.

 

Happy2Play
Posted
22 minutes ago, Luke said:

Hi, what do you mean by failed?

Yes the log shows POST for /Library/VirtualFolders/Paths/Delete and /Library/VirtualFolders/Delete but nothing is removed.

Posted
22 minutes ago, Happy2Play said:

Yes the log shows POST for /Library/VirtualFolders/Paths/Delete and /Library/VirtualFolders/Delete but nothing is removed.

Well, that's what I know. In the meantime, this stuff is really annoying. This whole linux network stuff is a nightmare. I spent the whole week and thought O could finish my work and now everthing starts from the beginning ...

I also found out that very often the hd wakes up from standby even when you just start emby without starting a video ... same on Kodi using Kodi next gen.

Best obviously would be running emby on a windows machine. The network handling is so easy. External HDS can be switched of and on without complicated mounting ...

Posted

Can somebody help here?

These cases are very painfull. I can not set up my whole environment and start from scratch

adminExitium
Posted

This is about as expected. You will need to leave the process running at 100% and wait until it finishes. There is no progress bar or notification to indicate how much time is left.

It may be easier to stop Emby, rename the existing directory to a random directory, create an empty directory with the same name as the existing directory, scan that newly empty directory and delete that instead, which is a lot quicker in my experience.

Related threads:

Posted

Hi @adminExitium,

thanks for your reply. Well an unconventional approach.... 

But such a process is really painful. The scan process takes ages, Then a deleting process the same. In the meantime I switch back to my former setup. My external HD is connected to my nvidia shield.

The overall network Linux network stuff is a pain in the ass when you are used to use Windows. The handling on the shield is similar to Windows. Yoz don't have to mount and unmount drives on the command line....

I could sware that I used the forum search to search for similar posts .... but nothing was found

Greetings

Posted

I've had a similar issue for quite a while now. The library itself is gone, but the files can still be found using the search function. The files have been deleted but it's still giving me odd issues basically remaining in the database. Logs are filled with directory can not be found errors.

Posted
8 hours ago, SShzin said:

I've had a similar issue for quite a while now. The library itself is gone, but the files can still be found using the search function. The files have been deleted but it's still giving me odd issues basically remaining in the database. Logs are filled with directory can not be found errors.

HI @SShzin, I don't believe it's possible to create this situation anymore on the latest versions, but you may have been impacted due to a defect in a previous version. It may require a fresh start with the database to get this corrected.

  • Disagree 1
Posted

@LukeCan that defect not be corrected with any other way? That is a pretty bad defect to force the end user to start from scratch. I'd much prefer if a future update were to fix that defect rather than deleting and starting over.

  • 4 weeks later...
Posted
On 9/8/2024 at 3:37 AM, SShzin said:

@LukeCan that defect not be corrected with any other way? That is a pretty bad defect to force the end user to start from scratch. I'd much prefer if a future update were to fix that defect rather than deleting and starting over.

@SShzinwhile I do generally agree, such cleanup operations come with a very high risk of creating new problems, so that's why it's easier to start with a fresh database.

Posted (edited)
7 hours ago, Luke said:

@SShzinwhile I do generally agree, such cleanup operations come with a very high risk of creating new problems, so that's why it's easier to start with a fresh database.

@LukeI appreciate that. I will backup the database as it is and will proceed with any cleanup operations if you will allow me the opportunity to do so. Please advise further.

Edited by SShzin
Posted (edited)

To be honest, there is a lot to improve changing or deleting media pathes in the library. Emby does not work as expected here from an end user perspective.  

Change is not supported at all. You have to delete a path, waiting for ages (no message at all), and rescan more less the same information on just with a slightly different path and waiting again for ages. The progress bar here does also not work sufficiently. Reproducible the last 8 percent take 92 percent of the scan time. 

From my point of view these are totally common uses cases.

Edited by juro1971
Posted
16 hours ago, SShzin said:

@LukeI appreciate that. I will backup the database as it is and will proceed with any cleanup operations if you will allow me the opportunity to do so. Please advise further.

For this particular issue I apologize for the disruption but I would suggest starting with a fresh database.

  • Facepalm 1
  • 7 months later...
Posted
On 10/1/2024 at 9:32 AM, Luke said:

For this particular issue I apologize for the disruption but I would suggest starting with a fresh database.

I was able to get around this by:
- Creating a new directory (Fully empty) and binding it to what Emby sees as the original directory
- Creating a new library in Emby with this path
- Scan

Now the metadata is being removed and items are being removed from the database.

  • Thanks 1
Posted

Thanks for following up.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...