[Release] Backup (formerly XBMC Backup) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151) +---- Thread: [Release] Backup (formerly XBMC Backup) (/showthread.php?tid=129499) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
RE: [Release] XBMC Backup - robweber - 2012-05-07 Thanks for posting the log. I think you're right about the dash, however I know for a fact that dashes will work since I use them to designate directory vs file when writing the restore.txt document. I'm going to get the skin you're trying to backup and see if I can recreate the error. I'll report back what I find. RE: [Release] XBMC Backup - Bond13579 - 2012-05-07 I'm not sure anymore cause I just did a lookup of Unicode \u201d and it's a double quotation mark. RE: [Release] XBMC Backup - e2zippo - 2012-05-07 Just tried it on both my XBMC installs and the script fails, I'm running Aeon Nox Beta 3.0.0 RE: [Release] XBMC Backup - robweber - 2012-05-07 I'm having a hard time reproducing this (ie, I can't!). The skin may or may not be relevant, although I've tried the ones listed above with no issues on my end. It may be another addon or file path altogether. @Bond13579 - could you post a full debug log to the xbmc pastebin site? Start with turning on XBMC, then run the backup addon until it errors and post everything. I'm trying to narrow down exactly what addons and settings are being used so I can recreate them. Also, what options are you using - Addons, Addon Data, thumbnails etc. Thanks. RE: [Release] XBMC Backup - lifenoobie - 2012-05-14 @robweber: I have the same problem as e2zippo. Was having problems with sound after adding addons. Luckily I backed up xbmc prior to the additions. Although I was getting the script error message described above. After fruitless attempts, I uninstalled xbmc, and reinstalled. I added "xbmc backup" and I'm not able to restore my previous settings. I'm getting the same script error. I tried debugging, but I don't actually see where the "xbmc.log" is stored. Below is the log file. Any ideas what I'm doing wrong? Thanks for the help! 20:24:29 T:5068 NOTICE: script.xbmcbackup: Starting 20:24:29 T:5068 NOTICE: script.xbmcbackup: Local Dir: C:\Users\media center\AppData\Roaming\XBMC\ 20:24:29 T:5068 NOTICE: script.xbmcbackup: Remote Dir: smb://FREENAS/media_drive/downloads/xbmc_backup/xbmc_backup/ 20:24:29 T:5068 INFO: Loading skin file: DialogProgress.xml 20:24:29 T:5068 DEBUG: DialogProgress::StartModal called 20:24:29 T:5068 DEBUG: ------ Window Init (DialogProgress.xml) ------ 20:24:29 T:5068 DEBUG: JSONRPC: Incoming request: { "jsonrpc" : "2.0" , "method" : "Files.GetDirectory" , "params" : { "directory" : "smb://FREENAS/media_drive/downloads/xbmc_backup/xbmc_backup/addons/" , "sort" : { "method" : "file" } } , "id" : 1 } 20:24:29 T:5068 DEBUG: JSONRPC: Calling files.getdirectory 20:24:29 T:5068 DEBUG: CUtil::GetMatchingSource: no matching source found for [smb://FREENAS/media_drive/downloads/xbmc_backup/xbmc_backup/addons/] 20:24:29 T:5068 DEBUG: Previous line repeats 4 times. 20:24:29 T:5068 ERROR: XFILE::CDirectory::GetDirectory - Error getting smb://FREENAS/media_drive/downloads/xbmc_backup/xbmc_backup/addons/ 20:24:29 T:5068 INFO: -->Python script returned the following error<-- 20:24:29 T:5068 ERROR: Error Type: <type 'exceptions.KeyError'> 20:24:29 T:5068 ERROR: Error Contents: 'result' 20:24:29 T:5068 ERROR: Traceback (most recent call last): File "C:\Users\media center\AppData\Roaming\XBMC\addons\script.xbmcbackup\default.py", line 188, in <module> backup.run() File "C:\Users\media center\AppData\Roaming\XBMC\addons\script.xbmcbackup\default.py", line 122, in run self.restoreFiles() File "C:\Users\media center\AppData\Roaming\XBMC\addons\script.xbmcbackup\default.py", line 140, in restoreFiles self.fileManager.createFileList(self.Addon) File "C:\Users\media center\AppData\Roaming\XBMC\addons\script.xbmcbackup\default.py", line 26, in createFileList self.walkTree(self.walk_path + "addons/") File "C:\Users\media center\AppData\Roaming\XBMC\addons\script.xbmcbackup\default.py", line 57, in walkTree for (path, dirs, files) in vfs.walk(directory): File "C:\Users\media center\AppData\Roaming\XBMC\addons\script.xbmcbackup\resources\lib\vfs.py", line 50, in walk for x in listdir(current_path, extra_metadata=True): File "C:\Users\media center\AppData\Roaming\XBMC\addons\script.xbmcbackup\resources\lib\vfs.py", line 100, in listdir if jsonobject['result']['files']: KeyError: 'result' 20:24:29 T:5068 INFO: -->End of Python script error report<-- 20:24:29 T:5068 INFO: Python script stopped RE: [Release] XBMC Backup - robweber - 2012-05-14 (2012-05-14, 01:18)lifenoobie Wrote: @robweber: I have the same problem as e2zippo. Was having problems with sound after adding addons. Luckily I backed up xbmc prior to the additions. Although I was getting the script error message described above. After fruitless attempts, I uninstalled xbmc, and reinstalled. I added "xbmc backup" and I'm not able to restore my previous settings. I'm getting the same script error. I tried debugging, but I don't actually see where the "xbmc.log" is stored. Below is the log file. Any ideas what I'm doing wrong? Thanks for the help! If you're doing a restore, my guess would be there is an error in your remote path settings. According to the log your path is this - smb://FREENAS/media_drive/downloads/xbmc_backup/xbmc_backup/. My guess is that originally you specified this: smb://FREENAS/media_drive/downloads/ and then specified that the xbmc_backup folder name be given to the name of the folder you want created for backups (these are two different settings). When you re-installed xbmc backup you then specified the entire folder - including the xbmc_backup sub folder - and expected it to find your backup data. Since another subfolder called xbmc_backup does not exist within this directory you get a "file not found" error. Try modifying your settings to read smb://FREENAS/media_drive/downloads/ as the remote directory and xbmc_backup as the folder name to see if you get any better results. RE: [Release] XBMC Backup - brando56894 - 2012-05-16 I'm using Chakra Linux and whenever I try to run the script I get this error: 20:21:04 T:140508814882560 NOTICE: -->Python Interpreter Initialized<-- 20:21:04 T:140508814882560 NOTICE: script.xbmcbackup: Starting 20:21:04 T:140508814882560 NOTICE: script.xbmcbackup: Local Dir: /home/bran/.xbmc/ 20:21:04 T:140508814882560 NOTICE: script.xbmcbackup: Remote Dir: /media/External/xbmc_backup/ 20:21:04 T:140508814882560 NOTICE: script.xbmcbackup: Remote Path exists - may have old files in it! 20:21:06 T:140508814882560 ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'> 20:21:06 T:140508814882560 ERROR: Error Contents: 'ascii' codec can't encode character u'\xe1' in position 28: ordinal not in range(128) 20:21:06 T:140508814882560 ERROR: Traceback (most recent call last): File "/home/bran/.xbmc/addons/script.xbmcbackup/default.py", line 188, in <module> backup.run() File "/home/bran/.xbmc/addons/script.xbmcbackup/default.py", line 119, in run self.syncFiles() File "/home/bran/.xbmc/addons/script.xbmcbackup/default.py", line 132, in syncFiles self.fileManager.createFileList(self.Addon) File "/home/bran/.xbmc/addons/script.xbmcbackup/default.py", line 32, in createFileList self.walkTree(self.walk_path + "userdata/addon_data/") File "/home/bran/.xbmc/addons/script.xbmcbackup/default.py", line 65, in walkTree self.addFile(filePath) File "/home/bran/.xbmc/addons/script.xbmcbackup/default.py", line 70, in addFile self.fHandle.write(str(filename) + "\n") UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 28: ordinal not in range(128) 20:21:24 T:140509829908224 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn 20:21:24 T:140508848453376 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/fanart.jpg 20:21:24 T:140508831667968 WARNING: Previous line repeats 1 times. 20:21:24 T:140508831667968 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executablefanart.jpg 20:21:24 T:140508823275264 WARNING: Previous line repeats 1 times. 20:21:24 T:140508823275264 WARNING: CreateLoader - Unsupported protocol(script) in script://script.transmission/fanart.jpg 20:21:24 T:140508848453376 WARNING: Previous line repeats 1 times. 20:21:24 T:140508848453376 WARNING: CreateLoader - Unsupported protocol(script) in script://script.tv.show.next.aired/fanart.jpg 20:21:24 T:140508831667968 WARNING: Previous line repeats 1 times. 20:21:24 T:140508831667968 WARNING: CreateLoader - Unsupported protocol(script) in script://script.globalsearch/fanart.jpg 20:21:24 T:140508848453376 WARNING: Previous line repeats 1 times. 20:21:24 T:140508848453376 WARNING: CreateLoader - Unsupported protocol(script) in script://script.pseudotv/fanart.jpg 20:21:24 T:140509978539776 WARNING: Previous line repeats 1 times. 20:21:24 T:140509978539776 WARNING: CreateLoader - Unsupported protocol(script) in script://script.games.rom.collection.browser/fanart.jpg 20:21:25 T:140508823275264 WARNING: Previous line repeats 1 times. 20:21:25 T:140508823275264 WARNING: CreateLoader - Unsupported protocol(script) in script://script.xbmcbackup/fanart.jpg 20:21:26 T:140508814882560 WARNING: Previous line repeats 1 times. RE: [Release] XBMC Backup - ricostuart - 2012-05-16 Hi, Firstly - great idea on the plugin! Its quite rare for a really great idea to come out like this! Thanks very much! Now, I seem to be unable to use the plugin. I am quite noobish to it all. I have a dedicated PC running XBMCbuntu (latest one) and run a Netgear ReadyNAS file server. I have the systems all talking and sharing quite happily. However, when I setup the plugin to backup to the server (smb://Mediaserver/Backup/) with a folder name of XBMC (which has been manually created on the drive). Everytime I try to run the plugin it says Gathering file list, then quickly a popup saying Error: Script failed: script.xbmcbackup. Any ideas? RE: [Release] XBMC Backup - brando56894 - 2012-05-16 Check your xbmc.log and post it here, it will tell you what is specifically causing the problem. It will most likely be at /home/[username]/.xbmc/temp/xbmc.log RE: [Release] XBMC Backup - ricostuart - 2012-05-16 Sorry to be a PITA, how do I get access to the file? Do I need to go via the desktop or can it be accessed via XBMC? RE: [Release] XBMC Backup - brando56894 - 2012-05-16 I believe there's a plugin available to upload XBMC logs, but to view it the easiest way to do it would be outside of XBMC via nautilus (The Gnome file manager). You could also use the XBMC filemanager but you have to add a path to it and I believe it doesn't have an option to show hidden files. RE: [Release] XBMC Backup - matt77303 - 2012-05-17 Im getting script error as soon as i run it as well log below http://pastebin.com/K9KVcU13 Matt RE: [Release] XBMC Backup - DuMbGuM - 2012-05-17 Great work, going to see if I can backup/restore watched episodes etc now. RE: [Release] XBMC Backup - schumi2004 - 2012-05-17 I thought this would come in handy but i guess i have the same error as Bond13579 has. Code: 3:19:49 T:2939681600 NOTICE: script.xbmcbackup: Starting EDIT: I'm doing a clean install to see were it breaks. First thing i noticed is that it didn't completely backup my userdata folder, it didn't backup userdata - peripheral_data - keymaps config files database playlist thumbnails/fanart All options enabled, Why? EDIT2: It breaks when MQ3 skin installed. RE: [Release] XBMC Backup - robweber - 2012-05-21 Hey everyone, just wanted to throw a post out here quick to let everyone know I am monitoring this thread. I've away traveling for the past 10 days so I'm just starting to go through these posted logs. The logs are definitely a help so thanks for all the great info. I'll post back here when I have something figured out. |