Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVM regression model training fails #20

Open
vedrin opened this issue Dec 31, 2009 · 1 comment
Open

SVM regression model training fails #20

vedrin opened this issue Dec 31, 2009 · 1 comment
Labels

Comments

@vedrin
Copy link

vedrin commented Dec 31, 2009

Hi,

An attempt to train a SVM regression model, according to the example, provided in SVM_Regression_POST.doc results in a HTTP/1.1 502 code being returned. However, the root of the problem doesn't seem to be associated with the dataset/feature retrieval from the dataset service, because the same dataset/feature URIs work fine for MLR model training at the same time. According to the detailed error report, the problem seems to be associated rather with a missing file:

Exception Details: java.io.FileNotFoundException: /home/opentox/OpenToxServer/model/weka/84 (No such file or directory)

Here is a brief summary of the issues in decreasing order of severity:

  1. SVM regression model training fails;

  2. the returned error code doesn't seem to be appropriate (this has to be confirmed after analysis of (1));

  3. the returned timestamp indicates a possible timezone issue at the host, running the service (compare Date: Thu, 31 Dec 2009 11:14:00 GMT to TimeStamp: Thu Dec 31 06:14:00 EST 2009). The correct timestamp should be Thu Dec 31 13:14:00 EST 2009

Please find the complete curl transaction log below:

ambit:/# curl -iv -X POST -d 'dataset_uri=http://ambit.uni-plovdiv.bg:8080/ambit2/dataset/6&target=http://ambit.uni-plovdiv.bg:8080/ambit2/feature/11954' http://opentox.ntua.gr:3000/algorithm/svm

  • About to connect() to opentox.ntua.gr port 3000 (#0)
  • Trying 147.102.82.32... connected
  • Connected to opentox.ntua.gr (147.102.82.32) port 3000 (#0)

    POST /algorithm/svm HTTP/1.1
    User-Agent: curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
    Host: opentox.ntua.gr:3000
    Accept: /
    Content-Length: 122
    Content-Type: application/x-www-form-urlencoded

    < HTTP/1.1 502 The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request
    HTTP/1.1 502 The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request
    < Content-Type: text/plain
    Content-Type: text/plain
    < Date: Thu, 31 Dec 2009 11:14:00 GMT
    Date: Thu, 31 Dec 2009 11:14:00 GMT
    < Accept-Ranges: bytes
    Accept-Ranges: bytes
    < Server: Noelios-Restlet/2.0m3
    Server: Noelios-Restlet/2.0m3
    < Connection: close
    Connection: close
    < Transfer-Encoding: chunked
    Transfer-Encoding: chunked

<
Error Report.
TimeStamp: Thu Dec 31 06:14:00 EST 2009

Error #1
Exception Details: java.io.FileNotFoundException: /home/opentox/OpenToxServer/model/weka/84 (No such file or directory)
Explanation: Communication/Connection to a remote server ended up unexpectedly: The server encountered an error while acting as a gateway!
For debugging reasons we provide a brief list of the exceptions:

  • java.io.FileOutputStream.open(Native Method)
  • java.io.FileOutputStream.(FileOutputStream.java:179)
  • java.io.FileOutputStream.(FileOutputStream.java:70)
  • weka.classifiers.Evaluation.evaluateModel(Unknown Source)
  • org.opentox.algorithm.trainer.SvmTrainer.train(SvmTrainer.java:141)
  • Closing connection #0
@alphaville
Copy link
Member

Well, it works fine on my localhost! I'll deploy it again and I beleive it will be fixed... This error of course is not compatible with status 502...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants