Create a backup of the database and the server before the upgrade Place an instance with a maintenance screen in the load balancer, Remove the TeamCity server from the load balancer, Disable the Chef-Client scheduled task and Chef-Client service to make sure Chef does not alter the server during the upgrade. Disable the authorized agents …
Category Archives: DevOps
`pwd’: No such file or directory – getcwd (Errno::ENOENT)
When you rename a subdirectory under the directory where your Linux or MacOS terminal is open you may get the error message /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.4.19/lib/chef/knife/cookbook_download.rb:45:in `pwd’: No such file or directory – getcwd (Errno::ENOENT) You need to refresh the directory cache of the terminal. Go one level higher cd .. Go back to the directory cd MY_DIRECTORY …
Continue reading “`pwd’: No such file or directory – getcwd (Errno::ENOENT)”
Switching to a new Chef server
The administrator of the Chef organization Download the validation key Do this only once for the organization. This step resets the validation key, so the existing server images will not be able to connect to the Chef organization. On the Administration tab on the left select Organizations > Reset validation Key Click the Reset Key …
MySQL Installation
To install the MySQL database server, download the installer from https://dev.mysql.com/downloads/ Download the MySQL Community Server from https://dev.mysql.com/downloads/ On the Generally Available (GA) Releases tab select the operating system and click the Go to Download Page button, Click the Download button next to the web or offline installer, If you don’t want to register at Oracle, click the No …
Migrate a WordPress web site to DreamHost
DreamHost is one of the recommended WordPress hosting providers. The DreamHost website has an extensive knowledge base, but the necessary steps to move your live site from another provider are scattered over multiple pages at https://help.dreamhost.com/hc/en-us/articles/214693178-How-to-manually-migrate-WordPress-to-DreamHost. These steps will guide you through the streamlined migration process. At your old provider Create a site and database …
Continue reading “Migrate a WordPress web site to DreamHost”
Waiting for SSH service on …:22, retrying in 3 seconds
When you try to launch a new EC2 instance in AWS using Chef Test Kitchen and the process times out with the message: Waiting for SSH service on …:22, retrying in 3 seconds $$$$$$ [SSH] connection failed, terminating (#<Net::SSH::AuthenticationFailed: Authentication failed for user …@…>) >>>>>> ——Exception——- >>>>>> Class: Kitchen::ActionFailed >>>>>> Message: 1 actions failed. …
Continue reading “Waiting for SSH service on …:22, retrying in 3 seconds”
Failed to complete #create action: [undefined method `version’ for nil:NilClass] on …
When you execute kitchen converge to launch an EC2 instance in AWS with Chef Test Kitchen, you get the error message: >>>>> ——Exception——- >>>>>> Class: Kitchen::ActionFailed >>>>>> Message: 1 actions failed. >>>>>> Failed to complete #create action: [undefined method `version’ for nil:NilClass] on … >>>>>> ———————- >>>>>> Please see .kitchen/logs/kitchen.log for more details >>>>>> Also …
Could not load the ‘ec2’ driver from the load path
When you execute kitchen list and the driver in your .kitchen file is “ec2“, the following error message appears: >>>> ——Exception——- >>>>>> Class: Kitchen::ClientError >>>>>> Message: Could not load the ‘ec2’ driver from the load path. Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler. >>>>>> ———————- …
Continue reading “Could not load the ‘ec2’ driver from the load path”
Could not load the ‘vagrant’ driver from the load path
When you execute the kitchen converge command to launch a virtual machine on your workstation with the Vagrant driver, you may get the error message: >>>>> ——Exception——- >>>>>> Class: Kitchen::ClientError >>>>>> Message: Could not load the ‘vagrant’ driver from the load path. Please ensure that your driver is installed as a gem or included in …
Continue reading “Could not load the ‘vagrant’ driver from the load path”
Vagrant installation
Vagrant Installation Warning! The new versions of Vagrant delete the contents of the /opt/vagrant directory. If you want to keep old versions of Vagrant, first move them out of the /opt directory. Download Vagrant from https://www.vagrantup.com/ and follow the instructions to install it. Select DOWNLOAD… Select the operating system of your workstation. For Ubuntu: Debian RedHat: Centos …