Архив рубрики: Проблемы и решения

Описания различных проблем и способы их решения

Django: нет файлов CSS, JS и другой статитики

30 мая 2015
 

 После запуска проекта под NGINX + uWSGI вместо простого python runserver — в админпанели не загружаются стили, не отображаются иконки и другие статичные файлы: Ниже — одно из (!) решений, которое поможет решить эту проблему.

uWSGI: django.core.exceptions.AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready.

18 мая 2015
 

 После обновления Django с 1.3 до 1.8 и uWSGI с 2.0.8 до 2.0.10 — при запуске приложения на Django возникает ошибка: 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.

Bamboo: OutOfMemoryError: PermGen space

9 мая 2015
 

 Во время билда — Bamboo падает с такой ошибкой в логе: build 19-Mar-2015 15:14:10 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile (default-testCompile) on project limits-batch: Compilation failure build 19-Mar-2015 15:14:10 [ERROR] Failure executing javac, but could not parse the error: build 19-Mar-2015 15:14:10 [ERROR] build 19-Mar-2015 15:14:10 [ERROR] build 19-Mar-2015 15:14:10 [ERROR] The system is out… Читать далее »

CentOS: обновление Python до 2.7 и установка Django 1.8

7 мая 2015
 

 По умолчанию — CentOS 6 использует Python 2.6, и Django 1.3. Задача — установить Python 2.7, Setuptools, PIP и Django 1.8. Ещё одно замечание, прежде чем вы начнёте — с вероятностью в 99% — проекты на Django 1.3 не «взлетят» на Django 1.8. Основная проблема при обновлении (которая почему-то почти нигде не указывается) — это… Читать далее »

NGINX: getpwnam("nginx") failed

5 мая 2015
 

 При проверке NGINX — система сообщает об ошибке: nginx: [emerg] getpwnam(«nginx») failed Например: # nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] getpwnam(«nginx») failed nginx: configuration file /etc/nginx/nginx.conf test failed

Debian: version `GLIBC_2.14′ not found

3 мая 2015
 

 Проблема возникает на Debian GNU/Linux 7.8 (wheezy). Важно: если вы не знаете что такое glibc — почитайте тут>>>. Настоятельно не советую выполнять такое обновление на production-серверах. Проверяем текущую версию: # dpkg -l | grep libc6 ii libc6:amd64 2.13-38+deb7u8 amd64 Embedded GNU C Library: Shared libraries ii libc6-dev:amd64 2.13-38+deb7u8 amd64 Embedded GNU C Library: Development Libraries and Header Files

Windows Server 2012: установка .NET Framework 3.5

29 апреля 2015
 

 При попытке установки с помощью установочного файла — Windows Server 2012 сообщает: Windows Server roles and features cannot be automatically installed or uninstalled via the Windows Features Control Panel. To install Windows Server roles and features, start Server Manager, or use the Server Manager cmdlets for Windows PowerShell. For more information, see: Server Manager Help.

NGINX: client intended to send too large chunked body

23 апреля 2015
 

 Имеется центральный репозиторий Git. Настроен по статье Git: свой репозиторий под NGINX + WebDAV + uWSGI. При добавлении новых файлов в удалённый репозиторий — Git сообщает об ошибке: $ git push zeus master Counting objects: 5483, done. Delta compression using up to 4 threads. Compressing objects: 100% (5343/5343), done. error: RPC failed; result=22, HTTP code… Читать далее »