Giter Site home page Giter Site logo

mpseed's People

Contributors

jperelli avatar mxlian avatar

Watchers

 avatar  avatar  avatar  avatar

mpseed's Issues

django.core.exceptions.AppRegistryNotReady


Author Name: Maxi (@mxlian)
Original Redmine Issue: 572, http://redmine.mainstorconcept.de/issues/572
Original Date: 2015-03-02
Original Assignee: Maxi


django.core.exceptions.AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time.
[pid: 8598|app: 0|req: 2/2] 192.168.10.44 () {44 vars in 936 bytes} [Mon Mar  2 16:47:12 2015] GET / => generated 0 bytes in 43 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 1)


Vagrant does not start uwsgi properly


Author Name: Julian (@jperelli)
Original Redmine Issue: 755, http://redmine.mainstorconcept.de/issues/755
Original Date: 2015-04-11
Original Assignee: Maxi


When doing "vagrant up" uwsgi cannot start

There is a screenshot attached of what happens when the machine is up first time.

This is /var/log/uwsgi/app/vtfx.log

Sat Apr 11 00:50:17 2015 - *** Starting uWSGI 1.9.17.1-debian (64bit) on [Sat Apr 11 00:50:17 2015] ***
Sat Apr 11 00:50:17 2015 - compiled with version: 4.8.2 on 23 March 2014 17:15:32
Sat Apr 11 00:50:17 2015 - os: Linux-3.13.0-46-generic #75-Ubuntu SMP Tue Feb 10 15:24:04 UTC 2015
Sat Apr 11 00:50:17 2015 - nodename: vtfx
Sat Apr 11 00:50:17 2015 - machine: x86_64
Sat Apr 11 00:50:17 2015 - clock source: unix
Sat Apr 11 00:50:17 2015 - pcre jit disabled
Sat Apr 11 00:50:17 2015 - detected number of CPU cores: 1
Sat Apr 11 00:50:17 2015 - current working directory: /
Sat Apr 11 00:50:17 2015 - writing pidfile to /run/uwsgi/app/vtfx/pid
Sat Apr 11 00:50:17 2015 - detected binary path: /usr/bin/uwsgi-core
Sat Apr 11 00:50:17 2015 - chdir(): No such file or directory [core/uwsgi.c line 2468]

Then running
"vagrant ssh main1"
"sudo service uwsgi start"
Fixes the issue
The log of the service start looks like this

Sat Apr 11 00:54:00 2015 - *** Starting uWSGI 1.9.17.1-debian (64bit) on [Sat Apr 11 00:54:00 2015] ***
Sat Apr 11 00:54:00 2015 - compiled with version: 4.8.2 on 23 March 2014 17:15:32
Sat Apr 11 00:54:00 2015 - os: Linux-3.13.0-46-generic #75-Ubuntu SMP Tue Feb 10 15:24:04 UTC 2015
Sat Apr 11 00:54:00 2015 - nodename: vtfx
Sat Apr 11 00:54:00 2015 - machine: x86_64
Sat Apr 11 00:54:00 2015 - clock source: unix
Sat Apr 11 00:54:00 2015 - pcre jit disabled
Sat Apr 11 00:54:00 2015 - detected number of CPU cores: 1
Sat Apr 11 00:54:00 2015 - current working directory: /
Sat Apr 11 00:54:00 2015 - writing pidfile to /run/uwsgi/app/vtfx/pid
Sat Apr 11 00:54:00 2015 - detected binary path: /usr/bin/uwsgi-core
Sat Apr 11 00:54:00 2015 - your processes number limit is 11714
Sat Apr 11 00:54:00 2015 - your memory page size is 4096 bytes
Sat Apr 11 00:54:00 2015 - detected max file descriptor number: 1024
Sat Apr 11 00:54:00 2015 - lock engine: pthread robust mutexes
Sat Apr 11 00:54:00 2015 - thunder lock: disabled (you can enable it with --thunder-lock)
Sat Apr 11 00:54:00 2015 - uwsgi socket 0 bound to UNIX address /run/uwsgi/app/vtfx/socket fd 7
Sat Apr 11 00:54:00 2015 - setgid() to 33
Sat Apr 11 00:54:00 2015 - setuid() to 33
Sat Apr 11 00:54:00 2015 - Python version: 2.7.6 (default, Mar 22 2014, 23:03:41)  [GCC 4.8.2]
Sat Apr 11 00:54:00 2015 - Set PythonHome to /var/www/vtfx/env
Sat Apr 11 00:54:00 2015 - Python main interpreter initialized at 0x1c41b00
Sat Apr 11 00:54:00 2015 - python threads support enabled
Sat Apr 11 00:54:00 2015 - your server socket listen backlog is limited to 100 connections
Sat Apr 11 00:54:00 2015 - your mercy for graceful operations on workers is 60 seconds
Sat Apr 11 00:54:00 2015 - mapped 249360 bytes (243 KB) for 4 cores
Sat Apr 11 00:54:00 2015 - *** Operational MODE: preforking+threaded ***
Sat Apr 11 00:54:01 2015 - WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x1c41b00 pid: 2240 (default app)
Sat Apr 11 00:54:01 2015 - *** uWSGI is running in multiple interpreter mode ***
Sat Apr 11 00:54:01 2015 - spawned uWSGI master process (pid: 2240)
Sat Apr 11 00:54:01 2015 - spawned uWSGI worker 1 (pid: 2254, cores: 2)
Sat Apr 11 00:54:01 2015 - spawned uWSGI worker 2 (pid: 2255, cores: 2)
Sat Apr 11 00:54:01 2015 - *** Stats server enabled on 127.0.0.1:9191 fd: 15 ***

It might be that the /repo directory mounts before uwsgi tries to start.

Separate the uwsgi log


Author Name: Maxi (@mxlian)
Original Redmine Issue: 969, http://redmine.mainstorconcept.de/issues/969
Original Date: 2015-05-20
Original Assignee: Julian


The stdout/stderr from django application should be in a separated file. All loging in the uwsgilog is complex to debug, because on every request a new line is logged.

Add timestamps to each line if possible

puppet failing


Author Name: Maxi (@mxlian)
Original Redmine Issue: 939, http://redmine.mainstorconcept.de/issues/939
Original Date: 2015-05-13
Original Assignee: Maxi


Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ntpd' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package ntpd

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.