Rails Error: Unable to access log file. Please ensure that /home.../log/development.log exists and is chmod 0666

database-migration, ruby, ruby-on-rails

Solution

Maybe just do what it asks you to do?:

$ touch the_required_path/development.log
$ chmod 0666  the_required_path/development.log

Problem

Im trying to migrate a `db2` database to Ruby on Rails, but just when I run `rails g scaffold`, I get this: `Rails Error: Unable to access log file. Please ensure that /home/.../log/development.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.` I have checked and my `development.log` does not exist! I'm not sure why, since I followed every step during the installation, but still my file doesn't exist. How can I create it? I have already tried uninstalling and installing Rails again, but the problem remains.

Original source

Related problems