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 Alliance Auth - Open Source

First post First post
Author
Dem Nipz
Imperial Academy
Amarr Empire
#341 - 2016-05-16 01:45:42 UTC
Hello, Gents!

Firs off, let me start by saying I am in all rights a noob at this and have been trying to get this stuff working (I am determined!)

I've run in to a bit of an issue here (Again, this is probably EZ PZ to most people to figure out). It looks like I have hit a wall at the highlighted part in this image, as my results can be seen to the right of it.

Error Image

This looks to be failing, as I am unable to continue after this, as the next step prompts this error as well:

Error Image 2

Now, I have installed all Dependencies from the Dependencies page on the Wiki so I am not sure what exactly I am missing here.

The Directory is Home/allianceserver/allianceauth.
I am Running Ubuntu 12.04 on a VPS (RamNode)
My user is a sudoer per sudoer file
I am new but I do pick up things fairly easy so any guidance would be much appreciated. Thank you in advance guys!

Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#342 - 2016-05-16 02:46:08 UTC
Dem Nipz wrote:
Hello, Gents!

Firs off, let me start by saying I am in all rights a noob at this and have been trying to get this stuff working (I am determined!)

I've run in to a bit of an issue here (Again, this is probably EZ PZ to most people to figure out). It looks like I have hit a wall at the highlighted part in this image, as my results can be seen to the right of it.

Error Image

This looks to be failing, as I am unable to continue after this, as the next step prompts this error as well:

Error Image 2

Now, I have installed all Dependencies from the Dependencies page on the Wiki so I am not sure what exactly I am missing here.

The Directory is Home/allianceserver/allianceauth.
I am Running Ubuntu 12.04 on a VPS (RamNode)
My user is a sudoer per sudoer file
I am new but I do pick up things fairly easy so any guidance would be much appreciated. Thank you in advance guys!


Hey there,

Looks like you're missing the requests package. Normally this is installed as part of the python requirements on Ubuntu 14, it could be omitted on 12, not sure. Any reason you're using 12? If not, I'd highly recommending using 14.

The quick fix is to manually install it, then continue from the requirements installation:
sudo pip install requests


That should allow the remaining requirements to install.

Fell free to harass us on gitter if you run into any more trouble.
Dem Nipz
Imperial Academy
Amarr Empire
#343 - 2016-05-16 04:10:52 UTC  |  Edited by: Dem Nipz
Adarnof wrote:
Dem Nipz wrote:
Hello, Gents!

Firs off, let me start by saying I am in all rights a noob at this and have been trying to get this stuff working (I am determined!)

I've run in to a bit of an issue here (Again, this is probably EZ PZ to most people to figure out). It looks like I have hit a wall at the highlighted part in this image, as my results can be seen to the right of it.

Error Image

This looks to be failing, as I am unable to continue after this, as the next step prompts this error as well:

Error Image 2

Now, I have installed all Dependencies from the Dependencies page on the Wiki so I am not sure what exactly I am missing here.

The Directory is Home/allianceserver/allianceauth.
I am Running Ubuntu 12.04 on a VPS (RamNode)
My user is a sudoer per sudoer file
I am new but I do pick up things fairly easy so any guidance would be much appreciated. Thank you in advance guys!


Hey there,

Looks like you're missing the requests package. Normally this is installed as part of the python requirements on Ubuntu 14, it could be omitted on 12, not sure. Any reason you're using 12? If not, I'd highly recommending using 14.

The quick fix is to manually install it, then continue from the requirements installation:
sudo pip install requests


That should allow the remaining requirements to install.

Fell free to harass us on gitter if you run into any more trouble.



This was heaps helpful. I went on your advice and upgraded. That did the trick on 14x. It seems I am having a bit of a directory issue atm that I will mess with. If you are curious:

Ref1 Page is displayed as such. I assume it's a directory issue because Putty is giving me the follow from the debug.

http://i.imgur.com/U2z9wMW.png

The way my current settings.py is set up is
)

TEMPLATE_DIRS = (
    os.path.join(BASE_DIR, '/home/allianceserver/allianceauth/customization/templates'),
    os.path.join(BASE_DIR, '/home/allianceserver/allianceauth/stock/templates'),
)

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, "/home/allianceserver/allianceauth/customization/static"),
    os.path.join(BASE_DIR, "/home/allianceserver/allianceauth/stock/static"),
)


AGAIN, Thank you so much for the advice above. Sorry for the noobness :)

EDIT: Google never fails! - It's formatted appropriately when I run with Debug=True. But when False, and running the collect static it is still funky, hmmmm
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#344 - 2016-05-16 13:49:29 UTC
Dem Nipz wrote:

This was heaps helpful. I went on your advice and upgraded. That did the trick on 14x. It seems I am having a bit of a directory issue atm that I will mess with. If you are curious:

Ref1 Page is displayed as such. I assume it's a directory issue because Putty is giving me the follow from the debug.

http://i.imgur.com/U2z9wMW.png

The way my current settings.py is set up is
)

TEMPLATE_DIRS = (
    os.path.join(BASE_DIR, '/home/allianceserver/allianceauth/customization/templates'),
    os.path.join(BASE_DIR, '/home/allianceserver/allianceauth/stock/templates'),
)

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, "/home/allianceserver/allianceauth/customization/static"),
    os.path.join(BASE_DIR, "/home/allianceserver/allianceauth/stock/static"),
)


AGAIN, Thank you so much for the advice above. Sorry for the noobness :)

EDIT: Google never fails! - It's formatted appropriately when I run with Debug=True. But when False, and running the collect static it is still funky, hmmmm


You have the directories wrong: remove the /home/allianceserver/allianceauth part.
Domminique Francon
Contorta Redux
#345 - 2016-05-17 20:06:05 UTC  |  Edited by: Domminique Francon
Hey there guys,

Having a bit of a problem installing this.

In
Quote:
python manage.py shell < run_alliance_corp_update.py
part I get a VERY long traceback, concluding in Connection Refused:


error                                     Traceback (most recent call last)
----> 1 run_corp_update()

/usr/local/lib/python2.7/dist-packages/celery/app/task.pyc in __call__(self, *args, **kwargs)
    418             if self.__self__ is not None:
    419                 return self.run(self.__self__, *args, **kwargs)
--> 420             return self.run(*args, **kwargs)
    421         finally:
    422             self.pop_request()

/home/ubuntu/workspace/allianceauth/celerytask/tasks.pyc in run_corp_update()
    603         # update existing corp models
    604         for corp in EveCorporationInfo.objects.all():
--> 605             update_corp.delay(corp.corporation_id)
    606
    607         # update existing alliance models
.
.
.

/usr/local/lib/python2.7/dist-packages/amqp/transport.pyc in __init__(self, host, connect_timeout)
     93         if not self.sock:
     94             # Didn't connect, return the most recent error message
---> 95             raise socket.error(last_err)
     96
     97         try:

error: [Errno 111] Connection refused


The debug is not enough to understand what connection is refused, and why. Halp?
Full traceback here

All of the extension are set to false:
ENABLE_AUTH_FORUM
ENABLE_AUTH_JABBER
ENABLE_AUTH_MUMBLE
ENABLE_AUTH_IPBOARD
ENABLE_AUTH_TEAMSPEAK3
ENABLE_AUTH_DISCORD
ENABLE_AUTH_DISCOURSE
ENABLE_AUTH_IPS4
ENABLE_AUTH_SMF
ENABLE_AUTH_MARKET
ENABLE_AUTH_PATHFINDER
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#346 - 2016-05-17 23:22:51 UTC
Domminique Francon wrote:
Hey there guys,

Having a bit of a problem installing this.

In
Quote:
python manage.py shell < run_alliance_corp_update.py
part I get a VERY long traceback, concluding in Connection Refused


Looks like celery isn't able to connect to RabbitMQ. Make sure it is installed and the service is started.
Domminique Francon
Contorta Redux
#347 - 2016-05-17 23:57:47 UTC
Adarnof wrote:

Looks like celery isn't able to connect to RabbitMQ. Make sure it is installed and the service is started.


Yup, that did it! Thanks
Henry Jennings
Perkone
Caldari State
#348 - 2016-05-18 04:41:07 UTC
Need help getting the IPB module to work.

Everything is setup, api key is entered.. but when I click the wonderful yellow button it does not create a user for me to log into on the forums.


Any ideas?

IPB 3.4
Domminique Francon
Contorta Redux
#349 - 2016-05-23 05:12:33 UTC  |  Edited by: Domminique Francon
I get the feeling there's something very basic that I'm missing.

I set up the AllianceAuth in stages. First getting Mumble to work, then Discord, now I'm trying to make phpbb3 to work.
I set up DATABASES.'phpbb3', I enabled ENABLE_AUTH_FORUM, but I'm still not getting the Forums setting in 'Services'.
What am I missing?

EDIT: I'm missing is restarting apache :p
Ncc 1709
Fusion Enterprises Ltd
Pandemic Horde
#350 - 2016-05-24 17:55:42 UTC
hi
been running fine for a couple of weeks.
yesterday did a server restart and now the corporation member data is having issues

registered main char's is fine, but the char's without api says "good Job! every character seems to be tied to an api"
but theres 166 unregistered char's.

there anyways to get this back to showing which toons are not connected to an api?
Joseph North
Jolly Dodgers Rogering Codgers
Tactical Narcotics Team
#351 - 2016-05-26 01:58:30 UTC
I have a similar issue in that the corp management shows no main characters or characters without API's. I have the two scripts to automate api's in the Quick Setup wiki running but no main characters or characters without api's show up. People are still able to register for services though.
Domminique Francon
Contorta Redux
#352 - 2016-05-28 06:44:27 UTC
Can someone explain to me how the groups flow from auth to forum/discord/mumble? What happens to groups that are renamed or deleted in auth? Do they get deleted in connected services?
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#353 - 2016-05-28 17:56:53 UTC
Joseph North wrote:
I have a similar issue in that the corp management shows no main characters or characters without API's. I have the two scripts to automate api's in the Quick Setup wiki running but no main characters or characters without api's show up. People are still able to register for services though.


Not sure what caused this but you're not alone. An issue has been opened to investigate this.

Domminique Francon wrote:
Can someone explain to me how the groups flow from auth to forum/discord/mumble? What happens to groups that are renamed or deleted in auth? Do they get deleted in connected services?


In short, auth checks for service groups with the same name as the auth group to assign them. If it doesn't find one, it creates it. Auth will not delete groups on your services, rather just removing members from them if they're deleted in auth. Renaming isn't a scenario I had considered, and will be writing in support for it shortly (triggering group update on group name change).
Don Abele
The Terrifying League Of Dog Fort
Deepwater Hooligans
#354 - 2016-06-08 20:23:48 UTC
Do people still do the setup for this service? Also does it support discord?
Edward Sanmora
The Scope
Gallente Federation
#355 - 2016-06-09 01:44:44 UTC
I'm attempting to install and hitting and error. Been search without luck for an answer:


python manage.py shell < run_alliance_corp_update.pyauth/celerytask/tasks.py
Python 2.7.10 (default, Dec 8 2015, 18:25:23)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
[09/Jun/2016 01:39:09] INFO [util:35] Bootstrapped permissions for auth and created default groups.
[09/Jun/2016 01:39:10] INFO [services.managers.eve_api_manager:112] Verified API server is online and reachable.
Traceback (most recent call last):
File "console", line 1, in module
File "/usr/local/lib/python2.7/site-packages/celery/app/task.py", line 420, in __call__
return self.run(*args, **kwargs)
File "/home/oiserver/allianceauth/celerytask/tasks.py", line 657, in run_corp_update
update_corp.delay(corp.corporation_id)
File "/usr/local/lib/python2.7/site-packages/celery/app/task.py", line 453, in delay
return self.apply_async(args, kwargs)
File "/usr/local/lib/python2.7/site-packages/celery/app/task.py", line 565, in apply_async
**dict(self._get_exec_options(), **options)
File "/usr/local/lib/python2.7/site-packages/celery/app/base.py", line 354, in send_task
reply_to=reply_to or self.oid, **options
File "/usr/local/lib/python2.7/site-packages/celery/app/amqp.py", line 310, in publish_task
**kwargs
File "/usr/local/lib/python2.7/site-packages/kombu/messaging.py", line 172, in publish
routing_key, mandatory, immediate, exchange, declare)
File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 457, in _ensured
interval_max)
File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 369, in ensure_connection
interval_start, interval_step, interval_max, callback)
File "/usr/local/lib/python2.7/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
return fun(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 237, in connect
return self.connection
File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 742, in connection
self._connection = self._establish_connection()
File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 697, in _establish_connection
conn = self.transport.establish_connection()
File "/usr/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
conn = self.Connection(**opts)
File "/usr/local/lib/python2.7/site-packages/amqp/connection.py", line 165, in __init__
self.transport = self.Transport(host, connect_timeout, ssl)
File "/usr/local/lib/python2.7/site-packages/amqp/connection.py", line 186, in Transport
return create_transport(host, connect_timeout, ssl)
File "/usr/local/lib/python2.7/site-packages/amqp/transport.py", line 299, in create_transport
return TCPTransport(host, connect_timeout)
File "/usr/local/lib/python2.7/site-packages/amqp/transport.py", line 95, in __init__
raise socket.error(last_err)
error: [Errno 111] Connection refused
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#356 - 2016-06-09 15:47:02 UTC
Edward Sanmora wrote:
I'm attempting to install and hitting and error. Been search without luck for an answer:

File "/usr/local/lib/python2.7/site-packages/amqp/transport.py", line 95, in __init__
raise socket.error(last_err)
error: [Errno 111] Connection refused


Your message broker isn't responding. Please make sure RabbitMQ is properly configured and running. On RHEL it does not start automatically upon install Read more here.
Luna Pappotte
CUTTHROATS
The Forsaken Empire
#357 - 2016-06-13 04:29:02 UTC
I'm trying to get fleet-up to work but when i click on fleet-up->fittings->(any ship)

I get this error.

Request Method:    GET
Request URL:    http://XXXXXX.org/fleetup/fittings/93013/
Django Version:    1.6.5
Exception Type:    IndexError
Exception Value:    
list index out of range
Exception Location:    /home/allianceserver/allianceauth/services/managers/fleetup_manager.py in get_fleetup_doctrineid, line 143
Python Executable:    /usr/bin/python
Python Version:    2.7.6
Python Path:    
['/home/allianceserver/allianceauth',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']
Server time:    Mon, 13 Jun 2016 04:26:16 +0000



Environment:


Request Method: GET
Request URL: http://XXXXX.org/fleetup/fittings/93013/

Django Version: 1.6.5
Python Version: 2.7.6
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'django_evolution',
'djcelery',
'celerytask',
'bootstrapform',
'authentication',
'portal',
'registration',
'services',
'eveonline',
'groupmanagement',
'hrapplications',
'timerboard',
'srp',
'sigtracker',
'optimer',
'corputils',
'fleetactivitytracking',
'notifications')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  22.                 return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  22.                 return view_func(request, *args, **kwargs)
File "/home/allianceserver/allianceauth/fleetup/views.py" in fleetup_fitting
  78.     doctrinenumber = FleetUpManager.get_fleetup_doctrineid(fittingnumber)
File "/home/allianceserver/allianceauth/services/managers/fleetup_manager.py" in get_fleetup_doctrineid
  143.             return fdoctrineid['Data']['Doctrines'][0]['DoctrineId']

Exception Type: IndexError at /fleetup/fittings/93013/
Exception Value: list index out of range



Anyone able to give me a hand?
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#358 - 2016-06-13 14:08:44 UTC
Luna Pappotte wrote:
I'm trying to get fleet-up to work but when i click on fleet-up->fittings->(any ship)

I get this error.


Exception Type:    IndexError
Exception Value:    
list index out of range
Exception Location:    /home/allianceserver/allianceauth/services/managers/fleetup_manager.py in get_fleetup_doctrineid, line 143

Anyone able to give me a hand?


That's a known bug I thought I'd fixed last week. Appears not.

I just added proper handling for this error. Try updating your installation of auth and see if the problem is resolved.
Luna Pappotte
CUTTHROATS
The Forsaken Empire
#359 - 2016-06-14 05:54:31 UTC  |  Edited by: Luna Pappotte
just ran the update and still getting an error.

NameError at /fleetup/fittings/93013/
global name 'logger' is not defined
Request Method:    GET
Request URL:    http://XXXXXXX.org/fleetup/fittings/93013/
Django Version:    1.6.5
Exception Type:    NameError
Exception Value:    
global name 'logger' is not defined
Exception Location:    /home/allianceserver/allianceauth/services/managers/fleetup_manager.py in get_fleetup_doctrineid, line 151
Python Executable:    /usr/bin/python
Python Version:    2.7.6
Python Path:    
['/home/allianceserver/allianceauth',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']
Server time:    Tue, 14 Jun 2016 05:53:28 +0000


Environment:


Request Method: GET
Request URL: http://XXXXXX.org/fleetup/fittings/93013/

Django Version: 1.6.5
Python Version: 2.7.6
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'django_evolution',
'djcelery',
'celerytask',
'bootstrapform',
'authentication',
'portal',
'registration',
'services',
'eveonline',
'groupmanagement',
'hrapplications',
'timerboard',
'srp',
'sigtracker',
'optimer',
'corputils',
'fleetactivitytracking',
'notifications')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  22.                 return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  22.                 return view_func(request, *args, **kwargs)
File "/home/allianceserver/allianceauth/fleetup/views.py" in fleetup_fitting
  78.     doctrinenumber = FleetUpManager.get_fleetup_doctrineid(fittingnumber)
File "/home/allianceserver/allianceauth/services/managers/fleetup_manager.py" in get_fleetup_doctrineid
  151.             logger.debug("Fleetup fitting number %s not in a doctrine." % fittingnumber)

Exception Type: NameError at /fleetup/fittings/93013/
Exception Value: global name 'logger' is not defined
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#360 - 2016-06-14 14:04:24 UTC
Luna Pappotte wrote:
just ran the update and still getting an error.

NameError at /fleetup/fittings/93013/
global name 'logger' is not defined


That's been corrected.

It really helps with response times if you post these problems to the github issue tracker.