how can i set up cluster cache

There are 27 replies in this Thread which was already clicked 13,807 times. The last Post () by souza335.

  • did you create a new cluster file and CHMOD 755 it? at location /usr/local/csp/cache/ and did you put your own cache url at the top of the list? in the format xxxxxxxx.dyndns.us:1000000 - if you want to pm me your cache url i will add it to see it its operational and i will send mine by return for you to use as well if you want :)

  • the problem is that i cant even save the proxy .xml every time i get the errors failed to get list of peers from tracker url

  • you need to login as root and change the /cache/ file permissions to 755 so that you can save any changes you make to it - i had the same problem and it was a file permission problem

  • i am using winscp as root to login in my server i already give the permision to 0755 in cache folder i made file name called cluster and through properties i give the permision to 0755 .
    in cluster i already put my dns and port but still same problem .

  • you also need to make sure that when creating the cluster file in windows notepad that you save it as file type "all files" from the dropdown menu as saving it as a standard txt file will not work...this also got me for a while! - then when you have transferred the cluster file to your CSP server then edit it directly form within winscp to add the cache details.


    also dont forget to save and refresh the directory when you make any changes to the cluster file, and if you want to make 100% sure then stop and restart your CSP server with the commands ./cardproxy.sh stop > ./cardproxy.sh start



    also, have you correctly setup the portfoward to your cache file on your server setup, as this would be another reason the csp is unable to connect with it.

  • <cardserv-proxy ver="0.9.0">


    <ca-profiles>
    <default-des-key>01 02 03 04 05 06 07 08 09 10 11 12 13 14</default-des-key>


    <extended-newcamd listen-port="xxxxx" debug="true"/>


    <profile name="myprofile" ca-id="1816" network-id="100a" provider-idents="00 01 01,00 01 02,00 01 06" enabled="true" debug="true">
    <newcamd listen-port="xxxxx">
    <services-file format="cccam">etc/CCcam.channelinfo</services-file>
    <no-validation>true</no-validation>
    </newcamd>
    <radegast listen-port="xxxxx">
    <allow-list>192.168.0.*</allow-list>
    </radegast>
    <services-file>etc/services</services-file>
    <max-cw-wait>8500 ms</max-cw-wait>
    </profile>
    </ca-profiles>


    <logging log-ecm="true" log-emm="true" log-zapping="false" hide-ip-addresses="false">
    <log-file rotate-count="3" rotate-max-size="1024">log/cardserv.log</log-file>
    <log-level>INFO</log-level>
    <silent>true</silent>
    <debug>false</debug>
    </logging>

    <rmi>
    <display-name>Csproxy1</display-name>
    <status-web>
    <listen-port>8082</listen-port>
    <ssl enabled="false">
    <keystore password="secret">etc/csp_keystore</keystore>
    </ssl>
    <war-file>lib/cs-status.war</war-file>
    <super-users>admin</super-users>
    </status-web>
    </rmi>


    <user-manager class="com.bowman.cardserv.SimpleUserManager">
    <auth-config>
    <user name="admin" password="secret" max-connections="3" admin="true"/>
    <user name="user" password="user1" profiles="myprofile"/>
    </auth-config>
    </user-manager>


    <connection-manager>
    <reconnect-interval>60</reconnect-interval>
    <default-des-key>01 02 03 04 05 06 07 08 09 10 11 12 13 14</default-des-key>
    <default-keepalive-interval>55</default-keepalive-interval>


    <service-map>
    <mapper>
    <auto-reset-threshold>20</auto-reset-threshold>
    </mapper>
    <mapper profile="myprofile">
    <reset-services></reset-services>
    <block-services></block-services>
    </mapper>
    </service-map>


    <cws-connectors>


    <csp-connector name="test0" enabled="false">
    <url>https://otherproxy.host.com:8443</url>
    <user>user</user>
    <password>password</password>
    <request-cache-updates>false</request-cache-updates>
    </csp-connector>


    <newcamd-connector name="test1" profile="myprofile" metric="0" enabled="true">
    <des-key>01 23 45 67 89 01 23 45 67 89 01 23 45 67</des-key>
    <host>xxxxx</host>
    <port>xxxxx</port>
    <user>xxxxxx</user>
    <password>xxxxx</password>
    <asynchronous>true</asynchronous>
    </newcamd-connector>

    <radegast-connector name="test2" profile="myprofile" enabled="false">
    <host>192.168.0.4</host>
    <port>10003</port>
    <provider-idents>00 00 01</provider-idents>
    </radegast-connector>


    <chameleon-connector name="test3" enabled="false">
    <host>192.168.0.5</host>
    <port>10001</port>
    <user>mgcamduser</user>
    <password>password</password>
    </chameleon-connector>

    </cws-connectors>

    </connection-manager>


    <proxy-plugins>
    <plugin class="com.bowman.cardserv.LoggingPlugin" enabled="false">
    <plugin-config>
    <log-dir>log/traffic</log-dir>
    <log-level>ALL</log-level>
    <ip-filter>*</ip-filter>
    </plugin-config>
    </plugin>
    <plugin class="com.bowman.cardserv.DcwFilterPlugin" enabled="true" jar-file="dcwfilterplugin.jar"/>
    <plugin class="com.bowman.cardserv.ProviderIdentPlugin" enabled="true" jar-file="provideridentplugin.jar"/>
    <plugin class="com.bowman.cardserv.I*****Plugin" enabled="true" jar-file="i*****plugin.jar"/>
    </proxy-plugins>
    <cache-handler class="com.bowman.cardserv.ClusteredCache">
    <cache-config>
    <cw-max-age>8</cw-max-age>
    <max-cache-wait>150ms</max-cache-wait>
    <local-host>192.168.x.x </local-host> using my server ip
    <local-port>15000</local-port>
    <tracker-url>file:///usr/local/csp/cache/cluster</tracker-url>
    <tracker-update>1</tracker-update>
    <sync-period>5</sync-period>
    <hide-names>true</hide-names>
    <debug>true</debug>
    </cache-config>
    </cache-handler>

    </cardserv-proxy>

  • right now i am using n line to conect i have no clients only i have one dreambox conected to my csp server i already setup portforward

  • 2012-03-07 14:28:34 - WARNING: ClusteredCache - No record for this proxy found in list from tracker (file:/usr/local/csp/cache/cluster), expected: 192.168.x.x:15000
    aso getting warnings in file log events

  • yes the above pic is for using server ip and i have no idea if i am getting good ecm or not
    i try to reinstall csp again and again on diffrent machine and i am getting same error even i tried diffrent version but every time i am getting same error no valid peers found in tracker list (file:/usr/local/csp/cluster) wrong password.
    update configuration not installed

  • I copied this tutorial from a fellow forum member afc007 so all kudos to him for a fine bit of work - i copied it exactly as he instructed and my CSP clustered cache is fully working:


    Continued..........



    How to Setup Clustered Cache


    Step 1, firstly you need to choose yourself a port different from what you csp is using,for the cache which must be forwarded in your router and instead of tcp define it as a udp port lets say for example "17500 "


    Step 2, make sure you forward this port in UDP to your CSP Server's ip address,


    Step 3, in your proxy xml file locate this :


    Code:


    <cache-handler class="com.bowman.cardserv.DefaultCache">
    <cache-config>
    <cw-max-age>14</cw-max-age>
    <max-cache-wait>11</max-cache-wait>
    </cache-config>
    </cache-handler>



    it is normally near the bottom of the xml file, do not worry if its not exactly the same, now you are going to delete all of that and replace it, I will show with what shortly.


    Step 4, you need to locate where your csp is kept, for example mine is /usr/local/csp
    there also should be a cache directory, you need to open that and make a file just called " cluster "


    Step 5, open / edit the new file ( cluster ) you made, in there will go your dns and port that you forwarded earlier ... ie myserver.homelinux.net :17500
    also if someone has already given you details to exchange cache that would go on the next line


    so you would have a file that looks like:


    Code:


    myserver.homelinux.net :17500
    friends.dyndns.addy :30001


    save that file and if any other cache exchange lines are given to you they will go in there as well.


    Step 6, you will need to chmod the new file ie


    Code:


    chmod 755 /usr/local/csp/cache/cluster


    or whatever path your csp is in.


    step 7, this will be the replacement part of the xml file that you have deleted as of step 3
    now remember the udp port you have forwarded also your dns you put in the cluster file and also the path where the cluster file is.


    Code:


    <cache-handler class="com.bowman.cardserv.ClusteredCache">
    <cache-config>
    <cw-max-age>11</cw-max-age>
    <max-cache-wait>150ms</max-cache-wait>
    <local-host>myserver.homelinux.net </local-host>
    <local-port>17500</local-port>
    <tracker-url>file:///usr/local/csp/cache/cluster</tracker-url>
    <tracker-update>1</tracker-update>
    <sync-period>5</sync-period>
    <hide-names>true</hide-names>
    <debug>true</debug>
    </cache-config>
    </cache-handler>



    save the xml " save changes "


    Step 8, Restart your CSP Proxy


    that's all


    to check if it works , go to Status page and you should see
    Cache-Handler: com.bowman.cardserv.ClusteredCache
    click on it and it opens up. you should see something like the example below


    Code:


    avg-received-bytes/s: 113
    avg-sent-bytes/s: 292
    cache-peers: 3
    cached-ecms: 73
    instant-hits: 893
    pending-ecms: 6
    received-cached: 37926
    received-discarded: 15322
    received-pending: 30190
    remote-hits: 533
    sent-cached: 15895
    sent-pending: 17336
    timeouts: 443
    tracker-failures: 0
    wait-hits: 1225

Other Not Listed Softcam Support Forum

Configs, discussion, downloads and guides for Other Not Listed Softcams - CSP, DreamOS, GBox, NEWCamd, MultiCS, OSCam Smod, OSCam Ymod, SUpcam & Wicardd.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!