1 am

Mautic upgrade

1. Try to clear cache

When the upgrade failed in the last step, it’s possible that only the cache is outdated. Try to clear it manually.

php app/console cache:clear

If this command throws a PHP error, you can try to nuke the cache folder like this:

rm -rf app/cache

If clearing cache didn’t help, continue with next step.
2. Trigger update manually

Firstly, let’s find out if there is some version to update to.

php app/console mautic:update:find

Output of this command should tell you clearly if there is a new version waiting to update to. If so, run:

php app/console mautic:update:apply

If there is no update to run, try next step.
3. Try to run database migrations

Let’s check if there are any migrations to run.

php app/console doctrine:migration:status

If there are any, be sure you have backup of your database and then run:

php app/console doctrine:migration:migrate

4. Try to update database schema

If the upgrade failed in the step of database update, this could solve it. Let’s check if the database schema is up to date.

php app/console doctrine:schema:update --dump-sql

This command outputs if the database schema is up to date with the code. If there are some queries to execute, backup the database! if you haven’t already and run:

php app/console doctrine:schema:update --force


Windows 2003 x64 VSS error of 0x8000FFFF

On 64bit systen path to DLL’s must be entered differently.. SysWOW64 section of the WINDOWS directory. e.g.

Net stop vss
Net stop swprv
regsvr32.exe /i %windir%\system32\eventcls.dll
regsvr32.exe /i %windir%\system32\swprv.dll
regsvr32.exe %windir%\SysWOW64\ole32.dll
regsvr32.exe %windir%\SysWOW64\oleaut32.dll
regsvr32.exe %windir%\SysWOW64\es.dll
regsvr32.exe %windir%\SysWOW64\comsvcs.dll
regsvr32.exe %windir%\system32\vssui.dll
regsvr32.exe %windir%\SysWOW64\vss_ps.dll
regsvr32.exe %windir%\SysWOW64\msxml.dll
regsvr32.exe %windir%\SysWOW64\msxml2.dll
regsvr32.exe %windir%\SysWOW64\msxml3.dll
regsvr32.exe %windir%\SysWOW64\msxml4.dll

vssvc /register

Useful tools for Kubernetes

Kube-applier is a service that enables continuous deployment of Kubernetes objects by applying declarative configuration files from a Git repository to a Kubernetes cluster.

Kubetop is a top(1)-like tool for Kubernetes.

Chaos Monkey for Kubernetes clusters 

Kubediff: a tool for Kubernetes to show differences between running state and version controlled configuration.

Kubectx  switch between Kubernetes contexts/namespaces


Python todo 2017

It’s 2017 and you are still looking for good python tutorial, right?
Meet Guru 99’s Python Tutorial for Beginners: Learn in 7 Days

What is covered

      Python Environment Setup: Install Aptana Studio IDE
      Creating Your First Python Program
      Learn Python Main Function with Examples: Understand __main__
      Variables in Python
      Learning Python Strings: Replace, Join, Split, Reverse
      Python TUPLE – Pack, Unpack, Compare, Slicing, Delete, Key
      Python Dictionary Methods: Copy, Update, Items, Len, Cmp, Str, Sort
      Python Operators: Logical, Comparison, Assignment, Arithmetic, Bitwise & Precedence
      Python Functions Tutorial – Define, Call, Indentation & Arguments
      Python Conditional Statements: IF, ELIF, ELSE Nested IF
      Learn Python For & While Loop with Examples
      Python Class & Objects: Define Class, Inheritance – OOP Tutorial
      Python Regex Tutorial: re.match(),re.search(), re.findall(), Flags
      Python Date & Time Tutorial: Timedelta, Datetime, & Strftime
      Python CALENDAR Tutorial with Example
      Python FILE Tutorial: Create, Append, Read, Write
      Python OS Module, Shell Script Commands
      Internet Access with Python Tutorial: Open, Parse & Read URL
      Python XML Parser Tutorial: Create & Read XML with Examples
              Python vs RUBY vs PHP vs TCL vs PERL vs JAVA

And if you still looking for a good tool to manage packages, dependencies and environment for Python – Conda might cover your needs