can not run AnkiServer on Centos 6

167 views
Skip to first unread message

knight1411errant

unread,
Jan 8, 2014, 3:17:57 AM1/8/14
to anki-syn...@googlegroups.com
Hi,

Thanks for your contribution,David.

I'm totally new to this. I tried to install Drupal and your module, but i can not get the Anki Server up and running. I used the easy_install method,but i did not know the part "copy example.ini to production.ini". I copied the example.ini to the folder /paster/ and change its name to production.ini.

I executed the command ankiserverctl.py start but nothing happened. I really appreciate if you could shed some light in this.

Many thanks for your work!
 
Cheers,
Ken

David Snopek

unread,
Jan 8, 2014, 8:10:58 AM1/8/14
to anki-syn...@googlegroups.com
Hi Ken,

What output is shown on the screen when you run "ankiserverctl.py start"? If it's not working, there should be an error message. No message probably means success! Have you tried connecting to the Anki Server after starting it?

Regards,
David.


2014/1/8 knight1411errant <knight14...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Anki Sync Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-sync-serv...@googlegroups.com.
To post to this group, send email to anki-syn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anki-sync-server/009ed74e-0605-43d0-8770-bea7cffc9fc3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

knight1411errant

unread,
Jan 8, 2014, 9:11:45 AM1/8/14
to anki-syn...@googlegroups.com
Hi David,

Thanks for your quick reply!
There was no error message^^. But when I used Drupal module to test connection to 127.0.0.1, the error message appeared .I copied the example.ini to /paster/ folder and then rename it to production.ini , I did not change anything. May be that is the problem.

Do you have any suggestion about the books related to creating a web application to wrap around this anki server . That would be really helpful!

Many thanks for your help!
 Best,
Ken
P/S : Do you speak German?^^

David Snopek

unread,
Jan 8, 2014, 12:12:55 PM1/8/14
to anki-syn...@googlegroups.com
 
There was no error message^^. But when I used Drupal module to test connection to 127.0.0.1, the error message appeared.

What is the error message? 

Also, look in the Anki Server log and see if it generated any messages when the Drupal module attempted to contact it. If you copied the example.ini to production.ini, you'll have to change it to specify a "logging.config_file" (there is a line for it, but it's commented out - you can remove the semi-colon in front of it). Then copy the example logging.conf. It's default will be to log to the screen, but you can modify it to write to a file too.
 
I copied the example.ini to /paster/ folder and then rename it to production.ini , I did not change anything. May be that is the problem.

What is the deal with the "paster" folder? There is no "paster" folder mentioned in the docs or in the source code. All the files should be in the directory that you are running "ankiserverctl.py" from.

Do you have any suggestion about the books related to creating a web application to wrap around this anki server . That would be really helpful!

There are A LOT of ways to create a web application. Personally, I prefer using Drupal, however, you could also use Ruby on Rails, Django, Symfony, etc, etc. You'll have to pick a programming language and web development framework and then purchase a book about creating a web application with it. There are lots!

If you want to go with Drupal, this one is good:


P/S : Do you speak German?^^

Nope! English, Polish and a little Russian is all I've got. :-)

Hope that helps!

Regards,
David.
 

On Wednesday, January 8, 2014 8:10:58 PM UTC+7, David Snopek wrote:
Hi Ken,

What output is shown on the screen when you run "ankiserverctl.py start"? If it's not working, there should be an error message. No message probably means success! Have you tried connecting to the Anki Server after starting it?

Regards,
David.


2014/1/8 knight1411errant <knight14...@gmail.com>
Hi,

Thanks for your contribution,David.

I'm totally new to this. I tried to install Drupal and your module, but i can not get the Anki Server up and running. I used the easy_install method,but i did not know the part "copy example.ini to production.ini". I copied the example.ini to the folder /paster/ and change its name to production.ini.

I executed the command ankiserverctl.py start but nothing happened. I really appreciate if you could shed some light in this.

Many thanks for your work!
 
Cheers,
Ken

--
You received this message because you are subscribed to the Google Groups "Anki Sync Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-sync-serv...@googlegroups.com.
To post to this group, send email to anki-syn...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Anki Sync Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-sync-serv...@googlegroups.com.
To post to this group, send email to anki-syn...@googlegroups.com.

knight1411errant

unread,
Jan 8, 2014, 8:24:53 PM1/8/14
to anki-syn...@googlegroups.com
Hi David,

Sorry for bothering you again ^^
 I will describe my steps as following so you can spot my mistakes :
1. I installed Xampp , Drupal and your module
2.I installed your python package using easy_install AnkiServer
3.I copied example.ini and logging.conf to folder ./scripts where ankiserverctl.py lies. I renamed the example.ini to production.ini and uncomment the line logging.conf.
4.I created the user
5.I executed ankiserverctl.py start , no error message
6.I login to Drupal->Configuration->Test Connection and this error message happened :

7.I executed ankiserverctl.py stop and this error appeared :

Thanks for your help!
Best,
Ken

David Snopek

unread,
Jan 10, 2014, 12:54:00 PM1/10/14
to anki-syn...@googlegroups.com
Can you confirm that the Anki server starts correctly?

Try running "ps aux | grep paster" and see if the process is there.

Or try running "netstat -lnp" and see if there is a program listening on port 27701.

If all of the above looks good (which actually seems unlikely), then try visiting http://127.0.0.1:27701 in your web browser.

If it doesn't look good (ie. it isn't starting correctly), it isn't starting, try running with paster rather than ankiserverctl.py, for example:

  paster serve production.ini

Hopefully, that will at least give us an error message...

Hope that helps!


2014/1/8 knight1411errant <knight14...@gmail.com>
Reply all
Reply to author
Forward
0 new messages