These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Eve Corp. Management : 2.0.0 release is out !!!

Author
Tash Rockski
Silent Raven Accord
#21 - 2012-04-30 15:44:33 UTC  |  Edited by: Tash Rockski
MJ Maverick wrote:
Do you have a link with a screenshots/demo page? Would be cool to see what this is about.

I'm working on a data anonymizer for a demo atm... i will make some screenshots of the latest build, post them on our wiki and link it here...
Link: Pictures are attached at the bottom
Maratha Secda wrote:
That IRC server is blocked by my ISP, Comcast.

If you could upload the ecm.log from your-instance-folder/logs/ and link it here would be really swell...
Maratha Secda
Syndicate Enterprise
Sigma Grindset
#22 - 2012-04-30 20:51:37 UTC
Labrena wrote:
diabeteman wrote:

2.0.4.1 is out, it should solve these two problems Pirate


I did the upgrade to 2.0.4.2 and it now works.

Only thing i'm having an issue with now, is the cron jobs.

Under 1.4.9 it was working fine. Updated it to the new cron url in the instructions, but it does not run.

If i goto the url via browser, it runs all of the scheduled tasks though.



My cron jobs are not running either, although manually running them via the browser works.
Controller Vrelk
The Scope
Gallente Federation
#23 - 2012-04-30 22:03:23 UTC
I have 2 questions:
First of all, I am using shared web hosting (dreamhost), and have a lot of freedom, so I can install whatever to my home directory, such as the custom install of python I'm using.

1) Can I run this as fastcgi or cgi since I can't add apache mods?

2)
http://pastebin.com/LHMpUWdR
(i get a "we were ganked" error when pasting here. already put in a bug report for it.
Labrena
Muppets Released
Forged of Fire
#24 - 2012-05-01 00:00:12 UTC
Ajurna Jakar wrote:
Labrena wrote:
diabeteman wrote:

2.0.4.1 is out, it should solve these two problems Pirate


I did the upgrade to 2.0.4.2 and it now works.

Only thing i'm having an issue with now, is the cron jobs.

Under 1.4.9 it was working fine. Updated it to the new cron url in the instructions, but it does not run.

If i goto the url via browser, it runs all of the scheduled tasks though.


well if you can pop on the irc channel we can help you out. tash and i might not be as good as diab, but we can defiantly help with most issues.


also depending on the page and what data is being pulled (some of the queries are not simple) it can take a little while. it shouldn't say it permanently.


I was able to work around it, but moving the cron stuff to a shell script and calling that instead.
Ajurna Jakar
Jian Products Engineering Group
#25 - 2012-05-01 10:49:13 UTC
Controller Vrelk wrote:
I have 2 questions:
First of all, I am using shared web hosting (dreamhost), and have a lot of freedom, so I can install whatever to my home directory, such as the custom install of python I'm using.

1) Can I run this as fastcgi or cgi since I can't add apache mods?

2)
http://pastebin.com/LHMpUWdR
(i get a "we were ganked" error when pasting here. already put in a bug report for it.


you are getting this error because when you compiled python you didnt have libbz2-dev on the system. get this installed and then recompile python and this will solve your issue :)

as for your fastcgi issue it seems that django supports this. havent done it myself but the docs are here. https://docs.djangoproject.com/en/1.4/howto/deployment/fastcgi/

http://eve-corp-management.org/ 

Balcanis
Addicted to Shljivovica
Addicted to Shljivovica Alliance
#26 - 2012-05-01 16:19:11 UTC
Hey guys,

can someone please give me a step-by-step instructions on how to set up this application on Windows 7 64bit please. I was told it can be done and I know there is Python for Windows and such, I just wasn't able to figure it out.

Can anyone help out please?

Thanks..
diabeteman
Diabete Studios
#27 - 2012-05-01 22:49:31 UTC  |  Edited by: diabeteman
Hello guys,

I'm back from my vacations in the forest. Cool

Balcanis wrote:
Hey guys,

can someone please give me a step-by-step instructions on how to set up this application on Windows 7 64bit please. I was told it can be done and I know there is Python for Windows and such, I just wasn't able to figure it out.

Can anyone help out please?

Thanks..

Yes ECM runs on Windows.

Install these (when you have the choice, always take x64-py27):

  1. python -> http://www.python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi
  2. distribute (setuptools) -> http://www.lfd.uci.edu/~gohlke/pythonlibs/#distribute
  3. postgresql server -> http://get.enterprisedb.com/postgresql/postgresql-9.1.3-1-windows-x64.exe
  4. python postgresql bindings -> http://www.lfd.uci.edu/~gohlke/pythonlibs/#psycopg
  5. gevent -> http://www.lfd.uci.edu/~gohlke/pythonlibs/#gevent
  6. greenlet -> http://www.lfd.uci.edu/~gohlke/pythonlibs/#greenlet
  7. PIL -> http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil


Then add C:\Python27\Scripts and C:\Python to your system PATH.

The rest of the installation instructions shouldn't be different for windows.

I am a total douche on windows stuff (such as IIS) but on the IRC channel, there is a guy (Marcos) who runs ECM on Windows 2008 r2 (64bit) along with IIS and MySQL. You should ask him about the details.

When you get it working, I'll harass you for information to put in our wiki Pirate

Initiator and CTO of Eve Corp. Management

diabeteman
Diabete Studios
#28 - 2012-05-01 22:59:45 UTC
Controller Vrelk wrote:
1) Can I run this as fastcgi or cgi since I can't add apache mods?

You should check out the Deployment Alternatives and use ECM's embedded WSGI daemon.

Initiator and CTO of Eve Corp. Management

diabeteman
Diabete Studios
#29 - 2012-05-01 23:02:09 UTC
Guys,

If you have the choice, don't use MySQL for ECM. It sucks as hell with transactions & schema migrations.

Make your life easier and use PostgreSQL.

diab

NB: I am not a PostgreSQL fanboy Pirate

Initiator and CTO of Eve Corp. Management

Ajurna Jakar
Jian Products Engineering Group
#30 - 2012-05-02 00:12:48 UTC
diabeteman wrote:

NB: I am not a PostgreSQL fanboy Pirate


lies upon lies. but seriously we have run into issue's (mostly me) with mysql and we cant guarantee we wont run into more in the future either :S

http://eve-corp-management.org/ 

diabeteman
Diabete Studios
#31 - 2012-05-02 01:08:30 UTC
Maratha Secda wrote:
Labrena wrote:
diabeteman wrote:

2.0.4.1 is out, it should solve these two problems Pirate


I did the upgrade to 2.0.4.2 and it now works.

Only thing i'm having an issue with now, is the cron jobs.

Under 1.4.9 it was working fine. Updated it to the new cron url in the instructions, but it does not run.

If i goto the url via browser, it runs all of the scheduled tasks though.



My cron jobs are not running either, although manually running them via the browser works.

:ahhh:

ok there are a lot of problems with this scheduler thing. I may have to tear this down soon(tm)

Initiator and CTO of Eve Corp. Management

Controller Vrelk
The Scope
Gallente Federation
#32 - 2012-05-02 02:47:17 UTC  |  Edited by: Controller Vrelk
Ajurna Jakar wrote:
Controller Vrelk wrote:
I have 2 questions:
First of all, I am using shared web hosting (dreamhost), and have a lot of freedom, so I can install whatever to my home directory, such as the custom install of python I'm using.

1) Can I run this as fastcgi or cgi since I can't add apache mods?

2)
http://pastebin.com/LHMpUWdR
(i get a "we were ganked" error when pasting here. already put in a bug report for it.


you are getting this error because when you compiled python you didnt have libbz2-dev on the system. get this installed and then recompile python and this will solve your issue :)

as for your fastcgi issue it seems that django supports this. havent done it myself but the docs are here. https://docs.djangoproject.com/en/1.4/howto/deployment/fastcgi/

Thanks, that helped. Apparently when you compile bzip2 it doesn't automatically compile libbz2.so as well.
Actually, now that I looked up django on the dreamhost wiki, looks like I will be running it through passenger.

Edit:
I could use a little help, do you know what I should put in the first code box listed here?
http://wiki.dreamhost.com/Django#Migrating_an_existing_FastCGI_site

Edit 2:
Got a little more info. If you haven't worked with this before and don't really know, that's fine, but if you have any ideas, it would be greatly appreciated.
http://pastebin.com/NgWYTwVS (passenger_wsgi.py)
http://www.ecm.redshift-gaming.net/
>> raise ImportError("Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'oisecm.settings' (Is it on sys.path? Does it have syntax errors?): No module named ecm
Ajurna Jakar
Jian Products Engineering Group
#33 - 2012-05-02 08:01:54 UTC
seems that it doesnt have the project in the path. print out hte python path in the script and see if you can find out if what you need is missing. or if something is wrong.
eg. i see in your path its '/home/compuwiz/ecm.redshift-gaming.net/oisecm', but if hte import is saying oisecm.settings then it wont find it becasue it will be looking for '/home/compuwiz/ecm.redshift-gaming.net/oisecm/oisecm/settings'

http://eve-corp-management.org/ 

Controller Vrelk
The Scope
Gallente Federation
#34 - 2012-05-02 17:53:51 UTC  |  Edited by: Controller Vrelk
Ajurna Jakar wrote:
seems that it doesnt have the project in the path. print out hte python path in the script and see if you can find out if what you need is missing. or if something is wrong.
eg. i see in your path its '/home/compuwiz/ecm.redshift-gaming.net/oisecm', but if hte import is saying oisecm.settings then it wont find it becasue it will be looking for '/home/compuwiz/ecm.redshift-gaming.net/oisecm/oisecm/settings'

I believe a better understanding of python would help, I'll have to add that to my todo list.
Actually the path also includes '/home/compuwiz/ecm.redshift-gaming.net' (last line, missed that myself until you mentioned it actually). The '/home/compuwiz/ecm.redshift-gaming.net/oisecm' path is so it can import 'paste' so we can see this debug info.
Dir list: http://pastebin.com/ZCnYuxkD

If we figure this out, I will look into writing you a mod_passenger setup guide for you if you want.
Tash Rockski
Silent Raven Accord
#35 - 2012-05-02 22:24:57 UTC
Edit:
I could use a little help, do you know what I should put in the first code box listed here?
http://wiki.dreamhost.com/Django#Migrating_an_existing_FastCGI_site

Maybe this might help: http://www.djangobook.com/en/2.0/chapter12/
Ajurna Jakar
Jian Products Engineering Group
#36 - 2012-05-03 07:59:09 UTC
Controller Vrelk wrote:
Ajurna Jakar wrote:
seems that it doesnt have the project in the path. print out hte python path in the script and see if you can find out if what you need is missing. or if something is wrong.
eg. i see in your path its '/home/compuwiz/ecm.redshift-gaming.net/oisecm', but if hte import is saying oisecm.settings then it wont find it becasue it will be looking for '/home/compuwiz/ecm.redshift-gaming.net/oisecm/oisecm/settings'

I believe a better understanding of python would help, I'll have to add that to my todo list.
Actually the path also includes '/home/compuwiz/ecm.redshift-gaming.net' (last line, missed that myself until you mentioned it actually). The '/home/compuwiz/ecm.redshift-gaming.net/oisecm' path is so it can import 'paste' so we can see this debug info.
Dir list: http://pastebin.com/ZCnYuxkD

If we figure this out, I will look into writing you a mod_passenger setup guide for you if you want.


not sure what passenger is. but here is my wsgi config file. compare it with yours. http://pastebin.com/q1MBvAqV

http://eve-corp-management.org/ 

Controller Vrelk
The Scope
Gallente Federation
#37 - 2012-05-03 23:09:31 UTC  |  Edited by: Controller Vrelk
Ajurna Jakar wrote:
Controller Vrelk wrote:
Ajurna Jakar wrote:
seems that it doesnt have the project in the path. print out hte python path in the script and see if you can find out if what you need is missing. or if something is wrong.
eg. i see in your path its '/home/compuwiz/ecm.redshift-gaming.net/oisecm', but if hte import is saying oisecm.settings then it wont find it becasue it will be looking for '/home/compuwiz/ecm.redshift-gaming.net/oisecm/oisecm/settings'

I believe a better understanding of python would help, I'll have to add that to my todo list.
Actually the path also includes '/home/compuwiz/ecm.redshift-gaming.net' (last line, missed that myself until you mentioned it actually). The '/home/compuwiz/ecm.redshift-gaming.net/oisecm' path is so it can import 'paste' so we can see this debug info.
Dir list: http://pastebin.com/ZCnYuxkD

If we figure this out, I will look into writing you a mod_passenger setup guide for you if you want.


not sure what passenger is. but here is my wsgi config file. compare it with yours. http://pastebin.com/q1MBvAqV


Thank you very much, that worked! Sorta...

EDIT: I had to change settings.py so it would read the host setting, maybe add that by default at some point in time or just assume people know their way around python?

Edit 2: I'm trying to find a way to change which install of python it uses, without getting an internal server error. It loads the dreamhost version, which dosn't have the extensions I need, specifically mysqldb.
"if sys.executable != INTERP:
os.execl(INTERP, INTERP, *sys.argv)" == 500 error (with INTERP defined of course)
"#!/home/compuwiz/bin/python2.7" does nothing

How do you change the mysql host? It is looking for it on the local machine, I tried changing it using "ecm_host = mysql.redshift-gaming.net" under [database] in settings.ini but it is still looking for it locally.

This is passenger by the way ( http://www.modrails.com/ ), it also runs python via wsgi, not just ruby.
diabeteman
Diabete Studios
#38 - 2012-05-04 01:17:52 UTC
Yop controller,

I need to add the handling of the database server host. It is not yet taken into account. I was presuming that people would have the server running in local Pirate

About the bootstrap WSGI script, there is one example in the "apache" folder of your ecm instance normally. It should work with mod_passenger if it behaves the same way than mod_wsgi. Be careful with the ordering of your apache directives. Look at the apache_mod_wsgi httpd config file into the "examples" folder for more info.

o/

Initiator and CTO of Eve Corp. Management

Controller Vrelk
The Scope
Gallente Federation
#39 - 2012-05-04 01:45:22 UTC
I'm going to have to say this is a pain in the ass.

(can't get it to use my python install.)
I copied the dependencies to the folder, and it is loading ecm from there as I have renamed the folder to make sure, but it won't load staticfiles from there. Any idea why? I checked, I copied the right folder & structure (actually, I downloaded staticfiles as it wasn't in my python installs site-packages folder.
(just an fyi, I'm usually pretty good at figuring these things out on my own without asking questions, though I am new to python and this is driving me nuts)


http://pastebin.com/0UgEZ0Yx
Ajurna Jakar
Jian Products Engineering Group
#40 - 2012-05-04 08:07:17 UTC
you need something the equivilent of the following in your vhost config. should be pretty high up on the directives list.


alias "/static" "/var/www/test-instance/static"

http://eve-corp-management.org/