2011-03-24, 03:40
bradvido88 Wrote:Why don't you do what I ask, post the contents of the .log file, and I'm sure we can fix it? Telling us that you don't understand errors or know the difference between xml, mysql, and notepad doesn't help anyone.
Ok.
my XML file:
Quote: <!--For support, see here: http://forum.xbmc.org/showthread.php?tid=96097 -->
<root>
<!--Logging Levels: This controls how verbose the logs will be.
1 = ERROR, 2 = WARNING, 3 = INFO, 4 = DEBUG
expiredays - optional attribute, default=30, Logs older than this many days will be deleted. -->
<LoggingLevel expiredays="14">3</LoggingLevel>
<!--ThumbnailDir - This is the directory where XBMC store its thumbs. Unless you are running XBMC in portable mode, it will be in your appdata folder-->
<ThumbnailDir>C:\Users\ADMIN\AppData\Roaming\XBMC\userdata\Thumbnails</ThumbnailDir>
<Simulation>true</Simulation><!--If true, no thumbnails/fanart will be deleted, so the program can be tested in a "read only" mode-->
<SpotCheck max="150">C:\ThumbCleanerSpotCheck</SpotCheck><!--If simulation is true, images that are believed to be no longer needed will be copied here (randomly, up to the max), so you can check and make sure they really should be deleted -->
<!--
Database config. Either MySQL or SQLLite can be used. One of these must be enabled for this program to work. Only 1 should be enabled at a time.
Set enabled = true for the one you would like to use. If you don't know which to use, then use SQLLite as that is the XBMC default.
-->
<SQLite enabled="true">
<VideoDBPath>C:\Users\ADMIN\AppData\Roaming\XBMC\userdata\Database\MyVideos34.db</VideoDBPath><!--Cannot be a UNC path. If the .db file is not local, map a drive to it-->
<MusicDBPath>C:\Users\ADMIN\AppData\Roaming\XBMC\userdata\Database\MyMusic7.db</MusicDBPath> <!--Cannot be a UNC path. If the .db file is not local, map a drive to it-->
</SQLite>
<XBMCMySQLServer enabled="false">
<XBMCServerName>localhost</XBMCServerName><!--Name or IP address-->
<XBMCVideoSchema>xbmc_video</XBMCVideoSchema>
<XBMCMusicSchema>xbmc_music</XBMCMusicSchema>
<MySQLUsername>xbmc</MySQLUsername>
<MySQLPassword>xbmc</MySQLPassword>
<MySQLPort>3306</MySQLPort>
<CharacterSet>latin1</CharacterSet><!--latin1 is default, and recommended. See here for details: http://forum.xbmc.org/showthread.php?p=5...post576974 -->
</XBMCMySQLServer>
<!--
JSONRPC - JSON-RPC API connectivity is required for this program to work. It is built into XBMC's Dharma release.
XBMCName - The Name or IP Address of the XBMC instance to connect to. XBMC must be running in order for the JSON-RPC API to work.
method - The method used to connect to JSON-RPC, either Raw or Curl
Raw -Uses Raw TCP/IP "telnet" type of an interface.
-Recommended method.
-Uses TCP port 9090 (not configurable).
-Faster than Curl.
-Requires going to XBMC's Settings, Network, Services, and checking "Allow Programs on this/others systems to control XBMC"
Curl -Uses Curl to communicate with XBMC's Webserver (currenlty only Windows is supported for Curl)
-Much slower than Raw method, but is available if you experience trouble with the Raw method.
-Requires going to Settings, Network, Services, and checking "Allow control of XBMC via HTTP" and setting the Port/Username/Password you desire.
<port> - The XBMC Webserver port, default 8080
<username> - The XBMC Webserver username, default none
<password> - The XBMC Webserver password, default none
-->
<JSONRPC>
<XBMCName>localhost</XBMCName><!--Either name or ip, address of the XBMC instance that is having it's thumbs cleaned up. (XBMC must be running here). -->
<method>Curl</method> <!--Either Raw or Curl -->
<!--These options are only used if Curl is specified as the method-->
<port>80</port>
<username>xbmc</username>
<password>xxxxxxxxxxxxxxxxxx</password>
</JSONRPC>
</root>
my log using CURL
Quote:03/23/2011 09:37:17 PM INFO Init... JSON-RPC config: XBMCName=localhost, method=Curl, port=80, username=xbmc, password=xxxxxxxxxxxxxxxxxx
03/23/2011 09:37:17 PM INFO Init... Testing connectivity to JSON-RPC interface...
03/23/2011 09:37:20 PM WARNING Init... The response from XBMC is not a valid JSON string:
03/23/2011 09:37:20 PM WARNING Init... JSON Returned was not valid (attempt 1 of 3), will try again...
03/23/2011 09:37:23 PM WARNING Init... The response from XBMC is not a valid JSON string:
03/23/2011 09:37:23 PM WARNING Init... JSON Returned was not valid (attempt 2 of 3), will try again...
my log using RAW
Quote:03/23/2011 09:39:06 PM INFO Init... JSON-RPC config: XBMCName=localhost, method=Raw, port=9090
03/23/2011 09:39:06 PM INFO Init... Testing connectivity to JSON-RPC interface...
03/23/2011 09:39:07 PM ERROR Init... Failed to call JSONRPC.Ping using XBMC's JSON-RPC interface: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at utilities.XbmcJsonRpc.callMethodWithRetry(XbmcJsonRpc.java:724)
at utilities.XbmcJsonRpc.callMethod(XbmcJsonRpc.java:673)
at utilities.XbmcJsonRpc.ping(XbmcJsonRpc.java:581)
at utilities.Config.loadConfig(Config.java:248)
at mylibrary.ThumbCleaner.<init>(ThumbCleaner.java:42)
at mylibrary.ThumbCleaner.main(ThumbCleaner.java:15)
03/23/2011 09:39:07 PM WARNING Init... JSON Returned was not valid (attempt 1 of 3), will try again...
03/23/2011 09:39:08 PM ERROR Init... Failed to call JSONRPC.Ping using XBMC's JSON-RPC interface: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at utilities.XbmcJsonRpc.callMethodWithRetry(XbmcJsonRpc.java:724)
at utilities.XbmcJsonRpc.callMethod(XbmcJsonRpc.java:673)
at utilities.XbmcJsonRpc.ping(XbmcJsonRpc.java:581)
at utilities.Config.loadConfig(Config.java:248)
at mylibrary.ThumbCleaner.<init>(ThumbCleaner.java:42)
at mylibrary.ThumbCleaner.main(ThumbCleaner.java:15)
03/23/2011 09:39:08 PM WARNING Init... JSON Returned was not valid (attempt 2 of 3), will try again...
Thanks