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

Turkic Publish Issue in Vatic Offline mode without using Anaconda Distribution #43

Open
arpan8514 opened this issue May 26, 2016 · 3 comments

Comments

@arpan8514
Copy link

Hi

I am facing issue to use vatic in offline mode. I am not using any anaconda distribution. The url generated by the command "turkic publish --offline" throws server error message.

The command "turkic status --verify" gives the following output:

Configuration:
Sandbox: True
Database: mysql://root@localhost/vatic
Localhost: http://localhost/

Testing access to Amazon Mechanical Turk... ERROR! Signature or access key missing
Testing access to database server... OK
Testing access to web server... OK

One or more tests FAILED!

My /etc/apache2/sites-enabled/000-default.conf file is as follows.

WSGIDaemonProcess www-data
WSGIProcessGroup www-data
<VirtualHost *:80>

ServerName vatic.domain.edu

ServerAdmin webmaster@localhost

DocumentRoot /var/www/html

    DocumentRoot /VA2/vatic/public
    WSGIScriptAlias /server /VA2/vatic/server.py
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

turkic status gives the following output:

Configuration:
Sandbox: True
Database: mysql://root@localhost/vatic
Localhost: http://localhost/

Status:
Available: 253
Published: 0
Completed: 0
Compensated: 0
Remaining: 0

Server is offline.

I will be waiting for any suggestion. Thanks in advance. Regards Arpan Ghose

@arpan8514
Copy link
Author

I am sharing my /etc/apache2/sites-enabled/000-default.conf file once again as it was not showing properly in my previous post.

WSGIDaemonProcess www-data
WSGIProcessGroup www-data

<VirtualHost *:80>
ServerName vatic.domain.edu
ServerAdmin webmaster@localhost
DocumentRoot /VA2/vatic/public
WSGIScriptAlias /server /VA2/vatic/server.py
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

Please suggest me.

@Manikuntala
Copy link

I am not using anakonda and getting the same error. Can anybody help me?

@floriandotpy
Copy link

In the case of non-anaconda Python, it could be related to your wsgi process not having access to the python directory. It seems like it even needs write access, which I don't quite understand?

But in any case, this could also be related to any python error happening in the server. Unfortunately, the exception is not shown in the browser. It will however be written to the ErrorLog defined in your VirtualHost.

So if you haven't done so already, add a line like the following to your VirtualHost definition:

ErrorLog /var/log/apache/error-vatic.log

In my case, I needed some more Python dependencies installed, where the import statement was simply failing. I installed vatic on Mac OS X and needed to make a lot of adjustments to the installation process to finally get it running.

Hope this gives some ideas to people struggling with the same issue in the future.

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

No branches or pull requests

3 participants