Author Topic: SM Server can't connect to Facebook  (Read 2786 times)

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
SM Server can't connect to Facebook
« on: August 25, 2014, 02:12:35 PM »
Hello,
my command line in SM Server is
./smserver.sh -host gtstpri -port 2020 -app "sm_server_p" -DproxySet=true -Dhttp.proxyHost=10.241.xxx.xxx -Dhttp.proxyPort=8080

the proxy is ok cause I tried from console:
[code]
[genesys@gtstout1 ~]$ export http_proxy=10.241.xxx.xxx:8080
[genesys@gtstout1 ~]$ curl www.facebook.com
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xml:lang="en" lang="en" id="facebook">
  <head>
    <title>Facebook | Error</title>
    <meta http-equiv="Content-Type"  content="text/html; charset=utf-8" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta name="robots"              content="noindex,nofollow" />
...
[/code]
yet the in the SM Server logs I see an error:
[code]
17:00:56.980 Std 50003  Loading extension -DproxySet=true
17:00:56.982 Std 50003  Failed to load extension -DproxySet=true, exception: Genesys.mcr.extension.ExtensionManagerException: Error Loading Custom Extension
17:00:56.983 Std 50003  Loading extension -Dhttp.proxyHost=10.241.xxx.xxx
17:00:56.984 Std 50003  Failed to load extension -Dhttp.proxyHost=10.241.xxx.xxx, exception: Genesys.mcr.extension.ExtensionManagerException: Error Loading Custom Extension
17:00:56.985 Std 50003  Loading extension -Dhttp.proxyPort=8080
17:00:56.986 Std 50003  Failed to load extension -Dhttp.proxyPort=8080, exception: Genesys.mcr.extension.ExtensionManagerException: Error Loading Custom Extension
[/code]
And later in the log:
[code]
17:01:53.574 Std 42400 error... channel-facebook-monitor-generic: exception while reading updates {message:A network error occurred while trying to communicate with Facebook: Facebook request failed (HTTP status code null)}
[/code]
Anyone knows what could be wrong?
Thank you,
Mihai

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: SM Server can't connect to Facebook
« Reply #1 on: August 25, 2014, 02:21:38 PM »
The parameters for Java should be placed in configuration file, which is located under install folder of SM server. As I can see, you have added these parameters to the start-up file (*.sh file) - that is wrong.

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: SM Server can't connect to Facebook
« Reply #2 on: August 25, 2014, 02:40:48 PM »
what config file exactly? there is none in the sm_server folder.
According to Genesys it should be in the sh file:
https://genesyspartner.force.com/customercare/pkb_Home?id=kA4U00000008dDh&q=facebook+proxy&l=en_US&fs=Search&pn=1
[quote]
Unix and related systems: In smserver.sh, the last string, namely "$GES_HOME_802/jre/bin/java" -classpath $CLASSPATH $JVMPARAMS $MAINCLASS $*
[/quote]
I tried that also, in the smserver.sh file last lines are:
[code]
"$JAVA_EXECUTABLE_PATH/java" -classpath $CLASSPATH $JVMPARAMS $MAINCLASS $*

DproxySet=true
DproxyHost=10.241.xxx.xxx
DproxyPort=8080
[/code]
but it still doesn't work and I can't see anything in the logs regarding to proxy when I'm doing it this way.

Mihai

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: SM Server can't connect to Facebook
« Reply #3 on: August 25, 2014, 02:49:14 PM »
You are right, on Unix/Linux should be placed within .sh file, but your configuration seems little strange from my point of view. The parameters which are suggested are Java parameters, so they must be part of configuration for JVM, not just as a environment parameter or something like that. I have not got a tset UNIX server with SM server,but from description on Genesys site it seems, that the parameters should be placed under environment variable JVMPARAMS. But it just depends on your decision, just the parameters must be readable for Java.