Sometimes when uploading new files, you may see a permission denied error thrown by the server. This means the server cannot execute the files it needs in order to run.
To resolve this issue, you will require an SFTP program, such as FileZilla installed.
1. Open Your Control Panel
Log in to your control panel with the username and password provided to you in our billing panel. Once successfully logged in, you will see a list of servers you have access to. Click on the one that you wish to fix.
2. Go To SFTP Settings
From the console page of the server, click on the configuration drop down from the left sidebar menu. Next, select SFTP settings from this dropdown.
3. Open FileZilla
Open FileZilla, and connect to your server via SFTP using the information provided. Your password is the same password as your account! Note: SFTP may not work with two-factor authentication enabled, you may need to temporarily disable this to allow for an SFTP connection.
4. Locate The File
To correctly identify the file that is causing the issue, you will need to look at your server logs. To help in understanding these, we will provide an example:
[Pterodactyl Daemon] Server marked as STARTING [Pterodactyl Daemon] Checking size of server data directory... [Pterodactyl Daemon] Disk Usage: 316M / 10000M [Pterodactyl Daemon] Ensuring correct ownership of files. [Pterodactyl Daemon] Running server preflight. [Pterodactyl Daemon] Starting server container. /entrypoint.sh: line 13: ./bedrock_server: Permission denied [Pterodactyl Daemon] Server marked as OFF [Pterodactyl Daemon] ---------- Detected server process in a crashed state! ---------- [Pterodactyl Daemon] Exit Code: 126 [Pterodactyl Daemon] Out of Memory: false [Pterodactyl Daemon] Error Response: [Pterodactyl Daemon] Server process detected as entering a crashed state; rebooting.
The error line in this example is the 7th line down. The file that needs to be resolved is the last file named in this line. The file can be found by following the path specified, for reference "./" is your root directory (topmost directory).
5. Change File Permissions
Once you have located the file, right-click it in order to be able to change the permissions that it has. In the box titled, "Numeric Value:" replace this number with 755. Then, click ok, and start your server.
You should no longer be receiving errors created by this file, however, other files could still have incorrect permissions. If this is the case, you will simply just need to follow this process again with the other files creating issues.
If you have any trouble changing your file permissions, feel free to create a ticket through our billing panel, and we will happily resolve the issues for you!