WSGI mod, Python, Django, Celery and a nice fella virtualenv

Here I’ll show how to use Python (3.8.0 in the current example, but legit for latest 3.+ versions, not for os.name == ‘NT’) and virtualenv to setup WGSI enabled website on Django (or any) with implemented Celery + Flower + RabbitMQ. This example is my own path used for automated test framework: Octopus (not available now, but have dev branch opened: Lobster) Here only configurations and setup for Python 3.8.0, virtualenv, WSGI, Django, Celery (worker and beat services), Flower and that’s it. Later I’ll show Django + Celery configuration when they run together (sort of). You may want to install Python at first: Read When your modern and fancy python is installed, we’ll make a virtual environment for our website.Short Read more…

Django, Apache2, Sublime Text 3 build system and developing process.

At first be sure that you are using this path to run pure apache: http://www.trianglesis.org.ua/django-python-3-4-wamp-apache-2-4-23-pycharm This topic for those who wants to develop ON THE FLY with python and django and do not want to manually restart dev server each time when code changes AND you don’t like built in python web-server and want to run your dev site as it should run on apache. Sublime Text 3 I use it for fast code changing and writting because PyCharm can’t work fine with multiline carrets, for example. Also PyCharm is too heavy when you want just copy&paste some features and see how it work on web. So my PyCharm will be used for debug purposes. I hope you know what isShort Read more…

Installation Perforce Helix Proxy

From here Download here Installation on Windows Just using installer: Windows evidence: C:\Program Files\Perforce\Proxy>p4p.exe -V Perforce – The Fast Software Configuration Management System. Copyright 1995-2015 Perforce Software. All rights reserved. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) See ‘p4 help legal’ for full OpenSSL license information Version of OpenSSL Libraries: OpenSSL 1.0.1l 15 Jan 2015 Rev. P4P/NTX64/2015.1/1028542 (2015/03/20). And looks like there is nothing different with p4d.exe in logic. As service: C:\Program Files\Perforce\Proxy>p4p -p 1668 -t 192.168.1.26:1666 Perforce Proxy starting…   Installation on Centos from guide: To install P4P on UNIX or Linux, do the following: Download the p4p executable to the machine on which you want to run the proxy. Select aShort Read more…

from VmWare to Windows Hyper-V

So! This time has come! I will switch my virtual enviroment from Vmware to Windows Server 2012 + Hyper-v. I’m tired because of ESXi leak of RAM and CPU and unaviability to check a lot of health statements of my tower. If you are interested in this, grab y’r popcorn and check my tag “VMvsHyperV” in blog to watch my struggle! Let the battle begins!   Useful stuff: http://redmondmag.com/articles/2014/06/01/migrate-to-hyperv.aspx http://www.microsoftvirtualacademy.com/training-courses/vmware-to-hyper-v-migration For convertion: http://www.microsoft.com/en-us/download/details.aspx?id=42497 http://interface31.ru/tech_it/2014/03/konvertiruem-virtualnye-mashiny-vmware-v-hyper-v-i-obratno.html http://blogs.technet.com/b/canitpro/archive/2013/03/24/step-by-step-migrating-from-vmware-to-microsoft-hyper-v-server-2012.aspx https://social.technet.microsoft.com/Forums/windowsserver/en-US/bbcfd6d6-10d6-4c56-8129-0fd10374f1ed/convert-vmfs-volumes-to-hyperv?forum=winserverhyperv http://cmsource.net/2014/02/02/convert-vmware-vmdk-files-to-vhdx-for-use-with-hyper-v-for-free/ How to access to VMFS: https://code.google.com/p/vmfs/wiki/CLI http://woshub.com/how-to-access-vmfs-datastore-from-linux-windows/ http://digfor.blogspot.com/2011/04/accessing-vmfs-partitions.html http://www.ryanbelanger.com/access-a-vmfs-drive-under-windows/ http://www.vm4.ru/2011/02/vmfs-troubleshooting.html VMplayer: http://www.vmware.com/products/player/playerpro-evaluation.html Read more…

Perforce – Windows start investigation and install

Perforce is a commercial, proprietary revision control system developed by Perforce Software, Inc. by wiki Installation: Perforce requires at least two executables: the Perforce service (p4d), and at least one Perforce application (such as p4 on UNIX, orp4.exe on Windows). The Perforce service and applications are available from the Downloads page on the Perforce web site: http://www.perforce.com/downloads/complete_list Go to the web page, select the files for your platform, and save the files to disk. pics Windows installation is very easy. Config files and settings can be found and modified: This also can be used for Linux version of P4 Read more…

All about Atlassian JIRA 2.1 – Atlassian JIRA “AJiraLockedError” and JIRA Startup Failed

Продолжаем мучать свой мозг новыми сюрпризами от JIRA или это я просто такой неудачник: Причина: JIRA Startup Failed The following plugins are required by JIRA, but have not been started: Atlassian JIRA – Plugins – Gadgets Plugin (com.atlassian.jira.gadgets) Atlassian Navigation Links Plugin (com.atlassian.plugins.atlassian-nav-links-plugin) Atlassian JIRA – Plugins – Issue Search (com.atlassian.jira.jira-issue-nav-plugin) Atlassian JIRA – Plugins – Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin) Atlassian REST – Module Types (com.atlassian.plugins.rest.atlassian-rest-module) JIRA Project Config Plugin (com.atlassian.jira.jira-project-config-plugin) Atlassian JIRA – Plugins – REST Plugin (com.atlassian.jira.rest) Opensocial Plugin (com.atlassian.gadgets.opensocial) Applinks Product Plugin (com.atlassian.applinks.applinks-plugin) Atlassian OAuth Service Provider Plugin (com.atlassian.oauth.serviceprovider) Embedded Gadgets Plugin (com.atlassian.gadgets.embedded) Gadget Directory Plugin (com.atlassian.gadgets.directory) Gadget Dashboard Plugin (com.atlassian.gadgets.dashboard) Способ из этого моего поста  может быть бессилен. Копаю дальше. Как оказалось, Jira крайне требовательна к ресурсам,Short Read more…

All about Atlassian JIRA 2

Первые пролблемы возникают на Windows. Линуксовая установка работает норм. JIRA Startup Failed The following plugins are required by JIRA, but have not been started: Atlassian JIRA – Plugins – Gadgets Plugin (com.atlassian.jira.gadgets) Atlassian Navigation Links Plugin (com.atlassian.plugins.atlassian-nav-links-plugin) Atlassian JIRA – Plugins – Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin) Gadget Directory Plugin (com.atlassian.gadgets.directory) Первая возможная причина, как может показаться – нехватка ресурсов оперативной памяти, и как говорит хелп: читать нужно или дать больше РАМ или увеличить время для старта всех плагинов. Так как на виндовой машине у меня 4 Гб рам, а на Центосе всего 2 и все работает, я решил не идти на поводу жадной твари, и просто увеличить время: Plugins require more time to startup: Resolution You would have to edit someShort Read more…

centos mount smb

Shitty task I can`t resolve: [root@web-server tmp]# smbclient -L 192.168.1.22 -U samba WARNING: The security=share option is deprecated Enter samba’s password: Domain=[TET-AD] OS=[Windows Server 2008 R2 Enterprise 7601 Service Pack 1] Server=[Windows Server 2008 R2 Enterprise 6.1] Sharename Type Comment ——— —- ——- ADMIN$ Disk Remote Admin C$ Disk Default share Data Disk Programms install, Driverpacks, Backups etc. E$ Disk Default share F$ Disk Default share Files Disk An old IDE 160Gb disk for files and torrents H (Daemon tools) Disk Home Disk Install Disk Installation of programms IPC$ IPC Remote IPC J$ Disk Default share Music Disk Music from tet-server Photos Disk session request to 192.168.1.22 failed (Called name not present) session request to 192 failed (Called name notShort Read more…

Could not connect to one or more vCenter Server systems

Сразу разбираю проблему, чтобы не забыть: Первый же гугл-ответ:  шлет на KB тут https://localhost/sdk тоже недоступен. Но сдаваться я не намерен, КВшка предлагает танцы с бубном – тоже не вариант, вот еще что интересное есть: http://geeksilver.wordpress.com/2012/12/04/vsphere-5-1-x-vsphere-web-client-cannot-connect-to-vsphere-server/ Хотя все отвалилось вот почему: If changes occur to any of these entities, re-register the Inventory Service with vCenter Single Sign-On using: IP address of the vCenter Single Sign-On instance vCenter Inventory Service host DNS or IP address vCenter Inventory Service certificates Я пытался отвязать vCenter сервер от одного адреса и повесить его на ДХЦП – временной смены адреса хватило, чтобы все пошло не так. Так что, думаю, зная причину – нет смысла все-таки реинсталлить, запущу процедуру перепривязки, как указано в КВ: Стоп! Не та хрень, это вообщеShort Read more…

Web server redirect

Во-первых, чтобы найти статьи на интересующую меня тему, пришлось по изгаляться с поиском, правильно это называется так: “Redirect a frontend URL to another backend webserver” – потому как поисковики завалены завалены статьями по веб-редиректам – 301-302 и проч, что вообще не устраивает меня и работать в моей ситуации не будет. Спасибо упорству и линуксу, который позволяет настроить это как “два пальца” – потому что Windows Server 2008 r2 IIS – предлагает костыли, как бы странно это не звучало. В общем, пришлось гнать этот IIS тряпками. Итак, ситуация: И ранее, вся эта поебта работала каждая на своем порте, мне то конечно было пофиг,  до тех пор, пока шальная мысль меня не посетила: “Почему я, имея три веб сервера, практически ничем неShort Read more…