en
Language
  • en
  • cs
  • hu
  • de
  • fr
  • es
  • br
  • ru
  • kr
  • jp
AI translation
  • it
  • pl
  • tr

Troubleshooting Internal Error Containing "Permission Denied"

Introduction

This guide will help you fix internal errors that contain "Permission denied" during the installation or operation of Easy8. These errors usually appear when the installation is not performed according to the original Easy8 installation instructions, especially when run under a user without the correct permissions.

By correcting file and folder ownership and using the right user for installation, you can solve this issue and avoid further complications.

Target Audience

  • Administrator

Prerequisites

  • Terminal access to the server
  • Permission to use chown, chgrp, and restart services
  • Easy8 files installed correctly (e.g., in /srv/easyredmine)

How to Fix "Permission Denied" Internal Errors

Step 1: Identify the Problem

The error typically looks like:

Internal error containing "Permission denied"

This is a sign that certain directories or files do not have the correct user or group ownership.

Step 2: Correct Permissions Manually

Use these commands to set proper ownership:

chgrp -R www-data public_html
chown -R www-data public_html

Note: Replace www-data with the appropriate user or group for your server.

Step 3: Run the Installer with the Correct User

Do not run the installer as root. Instead, run:

bundle exec rake easyproject:install RAILS_ENV=production

This will also clear the cache correctly.

Step 4: If You Use an Easy Software Virtual Machine

Run the following as the easy user:

sudo chown -R easy /srv/easyredmine/public_html
sudo chgrp -R easy /srv/easyredmine/public_html

cd /srv/easyredmine/public_html
bundle exec rake easyproject:install RAILS_ENV=production

sudo service puma@your.domain.name restart

Step 5: Check Permissions on All Required Folders

Make sure folders like tmp, log, and public also have correct ownership and permissions to avoid runtime errors.

Conclusion

You have resolved the "Permission denied" error by setting correct ownership and using the proper installation steps. Following the original Easy8 setup instructions is essential to avoid permission-related errors in future operations.

Related Topics and Further Reading

Try Easy8 in 30 days free trial

Access all features, SSL protected, no credit card required.