cantailme-server icon indicating copy to clipboard operation
cantailme-server copied to clipboard

logs do not arrive.

Open xtavras opened this issue 12 years ago • 8 comments

I have installed server (as in manual), but no log line has arrived. When I start tornado this error appears.

./manage.py runpush
WARNING:root:Connect error on fd 10: ECONNREFUSED
ERROR:stormed-amqp:ERROR in on_disconnect() callback
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/stormed/connection.py", line 142, in on_closed_stream
    self.on_disconnect()
TypeError: on_closed() takes exactly 2 arguments (1 given)

my local.py looks like this

DATABASES = {

    'default': {

        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.

        'NAME': '/home/xtavras/work/git/cantailme-server/db/db_sqlite',                      # Or path to database file if using sqlite3.

        'USER': '',                      # Not used with sqlite3.

        'PASSWORD': '',                  # Not used with sqlite3.

        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.

        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.

    }

}

 

# Absolute path to the directory static files should be collected to.

# Don't put anything in this directory yourself; store your static files

# in apps' "static/" subdirectories and in STATICFILES_DIRS.

# Example: "/home/media/media.lawrence.com/static/"

STATIC_ROOT = '/home/xtavras/work/git/cantailme-server/static'

 

# Absolute filesystem path to the directory that will hold user-uploaded files.

# Example: "/home/media/media.lawrence.com/media/"

MEDIA_ROOT = '/home/xtavras/work/git/cantailme-server/media'

 

DEBUG = True

TEMPLATE_DEBUG = DEBUG

TORNADO_PORT = 8001

STORE_PATH = ''

STORE_URL = ''

PIKA_HOST = ''

PIKA_QUEUE = ''

xtavras avatar Jul 17 '12 13:07 xtavras

Try install rabbitmq

nvbn avatar Jul 18 '12 17:07 nvbn

thanks, it helps, but I have another one.

./manage.py runpush 
WARNING:stormed-amqp:Soft Error. channel=1 code='ACCESS_REFUSED'. ACCESS_REFUSED - operation not permitted on the default exchange

I suppose it's rabbitmq problem, but have not idea what exactly, never use it.

xtavras avatar Jul 19 '12 06:07 xtavras

Try to change PIKA_QUEUE value in settings/local.py

nvbn avatar Jul 19 '12 12:07 nvbn

Does it matter which value? I've tested "1" and "10" and "test", have no errors at start anymore, but no client-logs too. there is a cantail-server-log or something?

xtavras avatar Jul 19 '12 13:07 xtavras

Hm, I can see logs in files (e.g. d02560dd) in cantail's root directory, but can't see anything on the page.

UPD: hm, when I open the page, this come at ./manage.py runserver

[19/Jul/2012 08:53:02] "GET /tail/d02560dd/d02560dd HTTP/1.1" 301 0
[19/Jul/2012 08:53:02] "GET /assync/info HTTP/1.1" 404 2789
[19/Jul/2012 08:53:02] "GET /tail/d02560dd/d02560dd/ HTTP/1.1" 404 1646 

my cantail's root directory doesn't have "tail" folder, its ok?

xtavras avatar Jul 19 '12 13:07 xtavras

PIKA_QUEUE is a string like "tailme" Logs stored in /media/store/ And '/tail/' is url specified in app/urls.py Strange url - /tail/d02560dd/d02560dd/. In normal situation it should be /tail/d02560dd/

nvbn avatar Jul 20 '12 19:07 nvbn

And set in local.py: STORE_PATH = 'PATH_TO_CANTAILME_SERVER/media/store/' STORE_URL = '/media/store/'

nvbn avatar Jul 20 '12 19:07 nvbn

Yes, this solves the problem, I see the logs, thx. Maybe add this info in install manual?

xtavras avatar Jul 25 '12 10:07 xtavras