finally got it working!
have no idea if this is the only reason but my card was not updated:D
Also changed the user Cache-EX to 2
Posts by dm800pvr
-
-
Also I've got these in oscam log:
Code2012/08/19 17:17:06 8FB5318 c ehsan (0603&000000/014D/20F9/3C:DC73): not found (442 ms) by jsc (jsc i*****_do_cmd [2] 90 00) 2012/08/19 17:17:07 8FB5318 c ehsan (0603&000000/0000/20F9/67:0817): not found (540 ms) by jsc (jsc i*****_do_cmd [2] 90 00) 2012/08/19 17:17:07 8FB5318 c ehsan (0603&000000/0001/20F9/3C:D0BD): not found (441 ms) by jsc (jsc i*****_do_cmd [2] 90 00) 2012/08/19 17:17:08 8FB5318 c ehsan (0603&000000/0004/20F9/3C:517E): not found (442 ms) by jsc (jsc i*****_do_cmd [2] 9e 00) 2012/08/19 17:17:08 8FB5318 c ehsan (0603&000000/0007/20F9/3C:3074): not found (441 ms) by jsc (jsc i*****_do_cmd [2] 90 00) 2012/08/19 17:17:09 8FB5318 c ehsan (0603&000000/000A/20F9/3C:D2A3): not found (442 ms) by jsc (jsc i*****_do_cmd [2] 90 00) 2012/08/19 17:17:09 8FB5318 c ehsan (0603&000000/0011/20F9/3C:E516): not found (441 ms) by jsc (jsc i*****_do_cmd [2] 90 00) 2012/08/19 17:17:10 8FB5318 c ehsan (0603&000000/006F/20F9/3C:48F9): not found (441 ms) by jsc (jsc i*****_do_cmd [2] 90 00)
-
probem solved
-
check csp logs and post here
(location of logs exist in your cardproxy.sh script) -
I suggest you read :
http://oscam.to/svn/oscam/trunk/oscam.cThese may cause the problem-whats your cache mode?
//time_t timeout = now-(time_t)(cfg.ctimeout/1000)-CS_CACHE_TIMEOUT;/* Adds a reader to the list of active readers so that it can serve ecms. */
//cacheex=3 mode: reverse push (reader->server) -
-
your ubuntu language is not english I cannot understand the errors :(
-
-
The <tracker-url> is a cache update list and should define by your friends proxu1.host.com:port in /usr/local/csp/cache/cluster (cachecluster list) so if you receive a new cw (either from your local card or other proxies) , your CSP update all links (remote proxies) listed in that file automatically.
So if some client request an ECM from your friends they would not bother your CSP, CPU usage or your BW and they find the cw answer in their cache and reply to client immediately (cache hit).
You can also blowfish this file for encryption, define a tracker key or input an external http link instead of poiting to a local file,
This have some benefits like when a new ip-link:port added to list there is no need to restart the CSP and it will update all friends automatically.PS:
Setting max-cache-wait to 350ms with freeze and changing to 250ms without freeze is very strange to me! how it's possible to hit a local CW by 250 but freeze free with 350 !PS2:
You can choose a percentage instead of timing
<max-cache-wait>40%</max-cache-wait>
This way tells max-cache-wait = 40% of max-cw-wait of each profile! :)Why I suggest this?
because you may have 2 profile here (which is local and with ms timing!)
But later you may have some profiles with over 8-9 seconds cw wait! so defining a unique number for cache wait is a bad idea! max-cw-wait is different in each profile so use percentage instead and give your clients chances to find their CW in remote proxies :)PS3:
Don't forget to do an optimization on most important things in cs sharing, max_cw-wait
You can do that with full debug on and by LoggingPlugin (change it to true in xml config and watch for it in status web) which is a very useful plugin on this case :) -
-
thankx sync thankx dm800 thanx sajjid for helping me now my problem solved u all are relly nice persons .
good to see u solved it
how u overcome the problem? by last configs in my post or any modifications? please provide more details if some one later have the same issue :) -
nice that it works:D
-
<max-cw-wait>1800</max-cw-wait> should enter in ca profile not <connection-manager> section
max-cache-wait also should enter with ms parameters ex 350mstry this:
1.make sure you have /cache and
2. try with both test09 and test10 users
3.put your channel info to /var/etc/CCcam.channelinfo
4.change <cws-connectors> section I've added local card there so change it to your local card info and add additional network connectors but set metric higher not 0 to first check your local cards then csp try checking network
5.<debug>true</debug> in ClusteredCache section turned on to see additional cache information in status web so after your test remove it to rise the performance.Code
Display More<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="15112"/> <profile name="0963-***UK" ca-id="0963" network-id="0002" provider-idents="00 00 00" enabled="true" debug="true"> <newcamd listen-port="6565"> <card-data type="config" ca-id="0963"> <providers>00 00 00</providers></card-data></newcamd> <max-cw-wait>9</max-cw-wait> <filter-cards>provider</filter-cards> <services-file format="cccam" ca-id="0963" filter="000000">/var/etc/CCcam.channelinfo</services-file> </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>Csproxy</display-name> <status-web> <listen-port>7788</listen-port> <ssl enabled="false"> <keystore password="******8">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="cspadmin" password="******8" max-connections="3" admin="true"/> <user name="test09" password="test009" profiles="car"/> <user name="test10" password="test010"/> </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> <cache-dir>/cache</cache-dir> <cache-save-age>300</cache-save-age> <auto-map-services>true</auto-map-services> <auto-reset-threshold>20</auto-reset-threshold> </mapper> <mapper profile="car"> <reset-services></reset-services> <block-services></block-services> </mapper> </service-map> <cws-connectors> <newcamd-connector name="local-***" profile="0963-***UK" provider-idents="00 00 00" enabled="true" metric="0"> <host>127.0.0.1</host> <port>nnnnn</port> <user>user</user> <password>password</password> <asynchronous>true</asynchronous> </newcamd-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.$$$$$$Plugin" enabled="true" jar-file="$$$$$$plugin.jar"/> </proxy-plugins> <cache-handler class="com.bowman.cardserv.ClusteredCache"> <cache-config> <cw-max-age>11</cw-max-age> <max-cache-wait>350ms</max-cache-wait> <local-host>http://zapt77.mypsx.net</local-host> <local-port>605</local-port> <tracker-url>file:///usr/local/csp/cache/cluster</tracker-url> <tracker-update>1</tracker-update> <sync-period>5</sync-period> <debug>true</debug> </cache-config> </cache-handler> </cardserv-proxy>
-
guys I'm pretty sure it's because some users that have cw-max-wait time lower than your server time so the client send a service lost message and your csp remove it and after restart it works again but would happening again I suggest to do a map-exclude for that user if you check your logs and the format is like:
Example: <user name="usr2" password="secret2" display-name="User two" profiles="otherprofile" max-connections="1" map-exclude="true"/>normaly in csp clients update the csp mapper by this way and you can block some of users that may cause this problem by map-exclude in this case :)
I think another way is to set congestion-limit between max-cw-wait/2 and max-cw-wait
So that the the proxy do not consider to set it as congested -
ya in my earlier post I mentioned for map-exclude too :)
also refer to http://linuxsat-support.com/cs…hours-less.html#post64806 -
your ecm whitelist is wrong because some of length not included and some unnecessary included! check and remove additional length in compare of 3E,42,45,47,4B,4E,56,62,64,68,6A,6F,72,7D,7E,79,80
you have to make sure manually that all clients connecting to a port never send the wrong traffic so do a manual search on users that may affect the mapping ( service lost) by using map-exclude true or test all your config with one client localy and stop all cws-connectors and by this way you'll find if the problem is locally or occurs by some connectors :)
increase max-cache-wait to 600-700
Also do retry-lost-services = true -
whats 013e? network ID? seems to be an i***** noid yes?
-
just add sid in allow services if not works I think by adding sid to reset-servies mapper won't confuse also please tell us more info about your max_cw_wait
post some logs -
well done!
Compile problem,
Installed a fresh ubuntu and redownload I think thats because I've installed alternative java and some path mismatched in JDK..
Thanks again!This solved my installation problem:
sudo add-apt-repository ppa:ferramroberto/javasudo apt-get update
sudo apt-get install sun-java6-jdk
also this method will choose exact java if alternative packages installed before(use sun-java-6)
sudo update-alternatives --config java -
I've installed sun java but after start:
./cardproxy.sh start
Starting CardServProxy: [ FAILED ]
Exception in thread "main" java.lang.NoClassDefFoundError: com/bowman/util/FileChangeListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at com.bowman.cardserv.CardServProxy.<init>(CardServProxy.java:65)
at com.bowman.cardserv.CardServProxy.main(CardServProxy.java:284)
Caused by: java.lang.ClassNotFoundException: com.bowman.util.FileChangeListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 14 more