I get this error when I run rails s.
Can anyone help me?
Rails Error: Unable to access log file. Please ensure that
/Users/delejnr/Desktop/ruby_playground/observe/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. Exiting
/Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:345:in
delete': Permission denied -
/Users/delejnr/Desktop/ruby_playground/observe/tmp/pids/server.pid
(Errno::EACCES) from
/Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:345:in
check_pid!' from
/Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:246:in
start' from
/Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/commands/server.rb:84:in
start' from
/Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:76:in
block in <top (required)>' from
/Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:71:in
tap' from
/Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:71:in
<top (required)>' from bin/rails:4:inrequire' from bin/rails:4:in
`'
You don't have permission for that file(s).
Start as admin / sudo and check the file permissions and adjust them accordingly.
Also make sure that file( /Users/delejnr/Desktop/ruby_playground/observe/log/development.log ) even exists.
I received this error and ran the following command to fix the permissions:
sudo chmod 0664 <path to app>/<name of app>/log/development.log
Replace <path to app> and <name of app>
in your case
sudo chmod 0664 /Users/delejnr/Desktop/ruby_playground/observe/log/development.log
For Mac 10.11.5
Related
I had created a project using "heroku create". After changing the name the domain URL was not working so I deleted the project.
Now I'm executing "heroku create" but it is giving an error. I tried many solutions but none of them are working for me. kindly help.
ANAMIKA#W1650044 MINGW64 /c/Sites/myrubyblog (master)
$ heroku create
WARNING: This is the legacy Heroku CLI with limited functionality. Please install the latest CLI.
WARNING: Installation instructions are at https://cli.heroku.com
heroku-cli: Installing CLI... 24.45MB/24.45MBPermission denied # rb_sysopen - C:\Users\ANAMIKA\AppData\Local/heroku/cli/lib/node.exe
C:/Users/ANAMIKA/.heroku/client/lib/heroku/jsplugin.rb:107:in `initialize'
C:/Users/ANAMIKA/.heroku/client/lib/heroku/jsplugin.rb:107:in `open'
C:/Users/ANAMIKA/.heroku/client/lib/heroku/jsplugin.rb:107:in `block (4 levels) in setup'
C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/package/tar_reader.rb:64:in `each'
C:/Users/ANAMIKA/.heroku/client/lib/heroku/jsplugin.rb:98:in `block (3 levels) in setup'
C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/package/tar_reader.rb:28:in `new'
C:/Users/ANAMIKA/.heroku/client/lib/heroku/jsplugin.rb:96:in `block (2 levels) in setup'
C:/Users/ANAMIKA/.heroku/client/lib/heroku/jsplugin.rb:95:in `open'
C:/Users/ANAMIKA/.heroku/client/lib/heroku/jsplugin.rb:95:in `block in setup'
C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/tmpdir.rb:88:in `mktmpdir'
C:/Users/ANAMIKA/.heroku/client/lib/heroku/jsplugin.rb:63:in `setup'
C:/Users/ANAMIKA/.heroku/client/lib/heroku/cli.rb:42:in `start'
C:/Program Files (x86)/Heroku/bin/heroku:29:in `<main>'
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new
Error: Permission denied # rb_sysopen - C:\Users\ANAMIKA\AppData\Local/heroku/cli/lib/node.exe (Errno::EACCES)
Command: heroku create
Version: heroku/toolbelt/3.99.3 (i386-mingw32) ruby/2.1.7
More information in C:/Users/ANAMIKA/.heroku/error.log
this is saying that you need to update your heroku cli, here are the instructions
depending on the way you installed it, you can update it running
heroku update
or
sudo apt-get update && sudo apt-get upgrade heroku
I got the error response package_name': 'package' not found in aapt output (RuntimeError) when I run the calabash-android in docker file. Can anyone please tell me why it is happening like this. The full error response is pasting below.
sh: 1: /usr/local/android-sdk/build-tools/19.1.0/aapt: not found
/usr/local/bundle/gems/calabash-android-0.7.2/lib/calabash-android/helpers.rb:18:in `package_name': 'package' not found in aapt output (RuntimeError)
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:42:in `block (2 levels) in calabash_build'
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:38:in `chdir'
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:38:in `block in calabash_build'
from /usr/local/lib/ruby/2.3.0/tmpdir.rb:89:in `mktmpdir'
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:37:in `calabash_build'
from /usr/local/bundle/gems/calabash-android-0.7.2/lib/calabash-android/helpers.rb:106:in `build_test_server_if_needed'
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-run.rb:16:in `calabash_run'
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android:84:in `<top (required)>'
from /usr/local/bundle/bin/calabash-android:22:in `load'
from /usr/local/bundle/bin/calabash-android:22:in `<main>'
Since I haven't integrated calabash-android in docker before could not figure out the exact issue. All kinda helps are appreciated. Thanks
Reading the error message, it looks like the android tools are not installed in your container.
The issue raises since the android dependencies are not installed.
I fixed the issue by installing the dependencies. And the command to install the dependencies is apt-get install lib32stdc++6 lib32z1 lib32z1-dev
I try to deploy the Rails app to the server. But I got this error when the webpage runs. I did a lot of research on this problem, and most of them are to change the permission. But i absolutely can not change the permission in .socket folder. If anyone knows how to fix this problem, please help me out. Thanks
parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: "/.socket/fcgi/passenger-native-support-d8m77l" (parent directory mode 40777) (ArgumentError)
/.socket/ruby/rubies/ruby-2.2.2/lib/ruby/2.2.0/fileutils.rb:716:in `remove_entry_secure'
/.socket/passenger/lib/phusion_passenger/utils/tmpio.rb:72:in `ensure in mktmpdir'
/.socket/passenger/lib/phusion_passenger/utils/tmpio.rb:72:in `mktmpdir'
/.socket/passenger/lib/phusion_passenger/native_support.rb:147:in `download_binary_and_load'
/.socket/passenger/lib/phusion_passenger/native_support.rb:49:in `start'
/.socket/passenger/lib/phusion_passenger/native_support.rb:405:in `<top (required)>'
/.socket/ruby/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/.socket/ruby/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/.socket/passenger/lib/phusion_passenger.rb:237:in `require_passenger_lib'
/.socket/passenger/helper-scripts/rack-preloader.rb:75:in `init_passenger'
/.socket/passenger/helper-scripts/rack-preloader.rb:157:in `<module:App>'
/.socket/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/.socket/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'
This is a known issue with Passenger. Try this chmod o+t -R /tmp
Read more about the sticky bit here: https://askubuntu.com/questions/432699/what-is-the-t-letter-in-the-output-of-ls-ld-tmp
Doing sudo chmod o-w tmp/ worked for me
This removes world writable permissions for the directory
I accidentally ran the command sudo chmod 600 -R / when I meant to do it to sudo chmod 600 -R Documents/some_directory and my macbook pro's file permissions got messed up. I ran sudo chmod 755 -R /directories_that_don't_need_to_be_secure and tried to fix all the permissions. But when I start my Jekyll server jekyll --server --auto I hit a bunch of errors. I made my whole directory readable, writable, and executable. But the error keeps popping up. This is what I get when the jekyll server generates:
Shalin-Shah-Me:shalin shalinvs$ jekyll --server --auto
Configuration from /Users/shalinvs/Documents/Developer/Websites/shalin/_config.yml
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- sass (LoadError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
from /Users/shalinvs/Documents/Developer/Websites/shalin/_plugins/sass_converter.rb:5
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:78:in `setup'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:77:in `each'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:77:in `setup'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:76:in `each'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:76:in `setup'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:31:in `initialize'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/jekyll:238:in `new'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/jekyll:238
from /usr/bin/jekyll:23:in `load'
from /usr/bin/jekyll:23
I have also tried using Disk Utility to repair my permissions but still no luck.
Thanks in advance!
What do you get with this?
gem list sass
Try this:
gem uninstall sass
gem install sass
Then run your jekyll command again.
I accidentally ran the command sudo chmod 600 -R / when I meant to do it to sudo chmod 600 -R Documents/some_directory and my macbook pro's file permissions got messed up. I ran sudo chmod 755 -R /directories_that_don't_need_to_be_secure and tried to fix all the permissions. But when I start my Jekyll server jekyll --server --auto everything is forbidden. I made my whole directory readable, writable, and executable. But the error keeps popping up. This is what I get when the jekyll server generates
Shalin-Shah-Me:shalin shalinvs$ jekyll --server --auto
Configuration from /Users/shalinvs/Documents/Developer/Websites/shalin/_config.yml
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- sass (LoadError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
from /Users/shalinvs/Documents/Developer/Websites/shalin/_plugins/sass_converter.rb:5
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:78:in `setup'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:77:in `each'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:77:in `setup'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:76:in `each'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:76:in `setup'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:31:in `initialize'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/jekyll:238:in `new'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/jekyll:238
from /usr/bin/jekyll:23:in `load'
from /usr/bin/jekyll:23
I have also tried using Disk Utility to repair my permissions but still no luck.
Thanks in advance!
The jekyll command operates on the directory you are currently in. The output in your question shows that you're running it in your home directory. It seems unlikely that that's really where you have your jekyll site stored (especially since it means that jekyll would have to process everything in your home directory each time it runs).
Assuming that you have your jekyll files somewhere else, change to that directory (where you should see the _config.yml and other jekyll files/dirs) and try running the command there.
Disk Utility.app has a Fix Permissions module. Perhaps that would solve it?