unable to preview messages

Report bugs and workarounds
Post Reply
ge2000
Posts: 28
Joined: 23 Jan 2013 19:27

unable to preview messages

Post by ge2000 »

Almost everything is working fine. Except when trying to view a message like http://efa/messages/preview/07A16B3ACF.AEA52 an error is shown.

The message is:

Code: Select all

Page unavailable
Sorry the requested page is unavailable due to a server malfunction.
Have I broke something or does anyone know where to look?

Kind regards,
Ge
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: unable to preview messages

Post by darky83 »

This should be logged in the baruwa log file:
/var/log/baruwa/celeryd.log

this is most likely a rabbitmq connection error.
Version eFa 4.x now available!
ge2000
Posts: 28
Joined: 23 Jan 2013 19:27

Re: unable to preview messages

Post by ge2000 »

You're right. There are hundreds of these errors. Although everything else seems to work fine I assume there is more broken than the preview only.

I will look into this but if you have any suggestions to start with please let me know.

Thanks,
Ge


Code: Select all

[2013-01-30 10:41:41,384: ERROR/MainProcess] Consumer: Connection Error: Socket closed. Trying again in 32 seconds...
[2013-01-30 10:42:16,421: ERROR/MainProcess] Consumer: Connection Error: Socket closed. Trying again in 32 seconds...
[2013-01-30 10:42:51,445: ERROR/MainProcess] Consumer: Connection to broker lost. Trying to re-establish connection...
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/celery/worker/consumer.py", line 274, in start
    self.reset_connection()
  File "/usr/lib/pymodules/python2.6/celery/worker/consumer.py", line 483, in reset_connection
    self.connection = self._open_connection()
  File "/usr/lib/pymodules/python2.6/celery/worker/consumer.py", line 529, in _open_connection
    self.app.conf.BROKER_CONNECTION_MAX_RETRIES)
  File "/usr/lib/pymodules/python2.6/kombu/connection.py", line 184, in ensure_connection
    interval_start, interval_step, interval_max)
  File "/usr/lib/pymodules/python2.6/kombu/utils/__init__.py", line 102, in retry_over_time
    return fun(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/kombu/connection.py", line 119, in connect
    return self.connection
  File "/usr/lib/pymodules/python2.6/kombu/connection.py", line 444, in connection
    self._connection = self._establish_connection()
  File "/usr/lib/pymodules/python2.6/kombu/connection.py", line 410, in _establish_connection
    conn = self.transport.establish_connection()
  File "/usr/lib/pymodules/python2.6/kombu/transport/pyamqplib.py", line 252, in establish_connection
    connect_timeout=conninfo.connect_timeout)
  File "/usr/lib/pymodules/python2.6/kombu/transport/pyamqplib.py", line 51, in __init__
    super(Connection, self).__init__(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/amqplib/client_0_8/connection.py", line 140, in __init__
    (10, 30), # tune
  File "/usr/lib/pymodules/python2.6/amqplib/client_0_8/abstract_channel.py", line 89, in wait
    self.channel_id, allowed_methods)
  File "/usr/lib/pymodules/python2.6/amqplib/client_0_8/connection.py", line 198, in _wait_method
    self.method_reader.read_method()
  File "/usr/lib/pymodules/python2.6/amqplib/client_0_8/method_framing.py", line 215, in read_method
    raise m
IOError: Socket closed
[2013-01-30 10:42:54,449: ERROR/MainProcess] Consumer: Connection Error: Socket closed. Trying again in 2 seconds...
[2013-01-30 10:42:59,456: ERROR/MainProcess] Consumer: Connection Error: Socket closed. Trying again in 4 seconds...
ge2000
Posts: 28
Joined: 23 Jan 2013 19:27

Re: unable to preview messages

Post by ge2000 »

ok, found that baruwa password was wrong. After changing it the errors are gone. Will do some more testing.....

Code: Select all

root@efa1:/var/log/rabbitmq# rabbitmqctl change_password baruwa ***************
Changing password for user "baruwa" ...
...done.

Edit: It works fine now..... no idea why the installation password wasn't working
mw308
Posts: 2
Joined: 27 Mar 2013 16:49

Re: unable to preview messages

Post by mw308 »

Hi Ge

I am getting the same error and according to the rabbitmq log the user baruwa cannot log onto the database. In my install (script not VM as using Hyper-V) it chose a random password for the baruwa user which is encrypted in the config files - how did you know what to change it to in rabbitmqctl?

Many thanks in advance
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: unable to preview messages

Post by darky83 »

The build script creates a random password and puts this random password in the config files and sets this random password in rabbitmq

If you change the rabbitmq password manually you should also change this in the baruwa config file: /etc/baruwa/settings.py

look for:

Code: Select all

BROKER_PASSWORD = 
Then restart baruwa and you should be ready to go.
Version eFa 4.x now available!
mw308
Posts: 2
Joined: 27 Mar 2013 16:49

Re: unable to preview messages

Post by mw308 »

Hi

Changing it as above appears to work perfectly.

Many thanks!
Post Reply