Skip to content


This is a general list of questions that we get often. If you find a solution to an issue not mentioned here, please contact us at

Ubuntu Script Bugs

If you get the following error

Failed to fetch
Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

then follow the solution in this post.

Where do I find the MySQL username and password?

If this is your first time logging into MySQL, your username is 'root'. You may also need to set the root password:

Start the server:

sudo /usr/local/mysql/support-files/mysql.server start

Set the password:

mysqladmin -u root password "[New_Password]"

If you lost your root password, refer to the MySQL wiki

Bundle Install Errors

This happens as gems get updated. These fixes are gem-specific, but two common ones are


bundle config build.eventmachine --with-cppflags=-I/usr/local/opt/openssl/include


bundle config build.libv8 --with-system-v8

Run bundle install again

If this does not work, another option would be

bundle update libv8

Because updating libv8 has dependency on other gems, it might fail due to a need to update other gems. Just do

bundle update <gem>

according to the error messages until all gems are up to date.

Run bundle install again

If neither of these works, try exploring this StackOverflow link

Can't connect to local MySQL server through socket

Make sure you've started the MySQL server and double-check the socket in config/database.yml

The default socket location is /tmp/mysql.sock.

I forgot my MySQL root password

You can reset it following the instructions on this Stack Overflow post

If mysql complains that the password is expired, follow the instructions on the second answer on this post

MySQL Syntax Error

If you get the following error

Mysql2::Error: You have an error in your SQL syntax

this may be an issue with using an incompatible version of MySQL. Try switching to MySQL 5.7 if you are currently using a different version.

Undefined method 'devise' for User

You most likely missed the step of copying 'config/initializers/devise.rb.template' to 'config/initializers/devise.rb' and setting your secret key in the setup instructions.