Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script failed #1

Closed
KruyKaze opened this issue Feb 19, 2011 · 33 comments
Closed

Script failed #1

KruyKaze opened this issue Feb 19, 2011 · 33 comments

Comments

@KruyKaze
Copy link

That's the message i get when I try to use this addon on 10.0 “Dharma”

@drewzh
Copy link
Owner

drewzh commented Feb 19, 2011

Without a debug log (~/.xbmc/temp/xbmc.log) there's nothing I can do for you. No others users have reported this issue and without any information I can't help you.

@KruyKaze
Copy link
Author

I'll get you that when i get home. :)
thanks

@drewzh
Copy link
Owner

drewzh commented Feb 19, 2011

By any chance are you using anything other than dharma and using the inbuilt library system? (i.e, not using a mysql backend) Also what are you running the script on, windows, mac, linux, xbox?

@KruyKaze
Copy link
Author

I accidentally closed this issue can i reopen it or do i have to open an other?

@drewzh
Copy link
Owner

drewzh commented Feb 19, 2011

I've just opened it for you :)

@KruyKaze
Copy link
Author

I am using Dharma live on an ion330 ( based on ubuntu)

@KruyKaze
Copy link
Author

Also does this script delete files from samba shares? all my media is there nothing local to the htpc.

@KruyKaze
Copy link
Author

crap i closed it again sorry :D

@drewzh
Copy link
Owner

drewzh commented Feb 19, 2011

Yup, same as my test environment. They'll likely be an error in the debug log of some kind, grab me that and I'll see what I can do :)

The comment and close button is a little too easy to click! Yes it should be able to delete the files no problem.

@KruyKaze
Copy link
Author

Nice , that's the only way i could use your script.
I wish i had it on so i can ssh the file :D
BTW where would you like me to send you the file?

@drewzh
Copy link
Owner

drewzh commented Feb 19, 2011

me->drewzh.com

@KruyKaze
Copy link
Author

You want me to hack your website and post the log as your home page ? :D

@drewzh
Copy link
Owner

drewzh commented Feb 19, 2011

If you can go for it, as long you don't cause harm and tell me how you did it, it's all good :P

@KruyKaze
Copy link
Author

http://paste.ubuntu.com/569508/
I hope this helps :)

@drewzh
Copy link
Owner

drewzh commented Feb 20, 2011

Seems somebody else has the same problem with deleting over SMB...

http://forum.xbmc.org/showthread.php?t=8588

I tested by actually mounting an smb share to /mnt/smb then adding the mount point into xbmc. I presume you're using the xbmc inbuilt smb adaptor? I didn't spend too long testing the smb compatibility but I'm sure it worked fine.

The script definitely checked that's the file exists before it tries to delete it, but for some reason the remove() os call doesn't want to remove it and throws an exception :/

@drewzh
Copy link
Owner

drewzh commented Feb 20, 2011

Oh and I didn't know about ubuntu paste, I shall be using that in future cheers! :)

@KruyKaze
Copy link
Author

"xbmc inbuilt smb adaptor? " ???
I am using the add source built in to xbmc if that is what you meant.
So how do I fix this critical problem?

@drewzh
Copy link
Owner

drewzh commented Feb 21, 2011

That's what I meant yes. To fix the problem, create a static mount point in /etc/fstab.

@KruyKaze
Copy link
Author

sorry for being a total noob but what command do i use for that? and will i have to change my sources to that?

@drewzh
Copy link
Owner

drewzh commented Feb 21, 2011

This should help http://www.cyberciti.biz/faq/configure-a-system-to-automount-a-samba-share-with-etcfstab/

Remember to mount the mountpoint after you've created the fstab entry :P

Once you've done that and you've tested that the mount works, add that path to your XBMC sources, after that the path should be treated properly.

@KruyKaze
Copy link
Author

ok I edited the fstab , rebooted but it doesn't mount :/

@drewzh
Copy link
Owner

drewzh commented Feb 21, 2011

You don't need to reboot to mount just run the following command...

mount [mount point]

You should receive an error of some sorts, paste that here and I'll try to help.

@KruyKaze
Copy link
Author

i fiddled around and it seems to automount now and no more errors. thank you.
btw does the script remove files or send them to trash?

@drewzh
Copy link
Owner

drewzh commented Feb 22, 2011

That's great! Glad it worked, I was pretty certain I tested it, but not 100% sure, plus I don't know exactly how linux/python treats smb mount points but I guess they work transparently regardless of the protocol used so I'm glad it worked.

The script has 2 modes, one which will delete outright (default), and another that moves to a holding folder, if I remember correctly you can configure the holding folder location. I just move to /tmp so that if I did somehow manage to delete something important, I'd have till the next reboot to recover it (as /tmp gets cleared on each boot).

Hope this helps.

P.S, the script will get a massive overhaul a few weeks before XBMC 11 is released.

@KruyKaze
Copy link
Author

I can only use delete since the files are on another machine and i don't wanna share/mount /temp :D
thanks again i'm happy now

@KruyKaze
Copy link
Author

one more question :)
does the script run only at boot or periodically?

@drewzh
Copy link
Owner

drewzh commented Feb 22, 2011

Run's all the time in the background (it won't drain system resources, it's minuscule and for 99% of the time it's sleeping).

@KruyKaze
Copy link
Author

I wanted to know f it actually deleted files only on boot or periodically.

@drewzh
Copy link
Owner

drewzh commented Feb 24, 2011

Well if it runs in the background all the time but didn't delete anything, what would be the point? :) Checks frequently and deletes files as they expire.

@KruyKaze
Copy link
Author

I also noticed that the script exits if there's a file it can't handle ( like foreign characters ) can we have it so it treats the others and just skip the "problematic" one?
Thanks again.

@drewzh
Copy link
Owner

drewzh commented Mar 22, 2011

I'll make a note of it and try and fix in the next release. Thanks again :)

@KruyKaze
Copy link
Author

Thanks

@joymyr
Copy link
Contributor

joymyr commented Sep 23, 2011

I got around the issue with problematic characters by setting the default encoding to utf8 (joymyr@0b98e1f), but I've read that it's an ugly hack. It works great for me using only ext filesystems though.

wolph pushed a commit to wolph/xbmcfilecleaner that referenced this issue Oct 7, 2013
wolph pushed a commit to wolph/xbmcfilecleaner that referenced this issue Oct 7, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants