Failed to create pid file: [Errno 13] Permission denied

Discussion in 'Hosting Advice' started by LTDogman, Mar 27, 2020.

  1. Just did a fresh install of Ubuntu 16.04 and installed Multicraft

    Seemed like at every step there was a problem that required a lot of digging

    this is the first one that stumped me.

    Gonna try to chown it to see if i can make anything happen

    Not using 777, I think I chose 755

    03.27 15:35:46 ERROR Failed to create pid file: [Errno 13] Permission denied:
    u'/home/minecraft/multicraft/multicraft.pid'
    Failed to create pid file: [Errno 13] Permission denied: u'/home/minecraft/multicraft/multicraft.pid'
    03.27 15:35:46 ERROR Failed to delete the pid file: [Errno 2] No such file or directory: '/home/minecraft/multicraft/multicraft.pid'
    [email protected]:~# Failed to create pid file: [Errno 13] Permission denied: u'/home/minecraft/multicraft/multicraft.pid'

    Edit: I will literally pay someone $20 on paypal if they can help me fix this
     
    #1 LTDogman, Mar 27, 2020
    Last edited: Mar 27, 2020
  2. What is the output of the following command:
    Code (Text):
    ls -l /home/minecraft/multicraft
     
  3. total 424
    dr-x------ 4 minecraft minecraft 4096 Mar 27 11:20 bin
    drwxrwx--- 2 minecraft www-data 4096 Mar 27 11:20 data
    -rwxrwxrwx 1 mc3 mc3 338 Mar 10 06:21 default_server.conf.dist
    drwxrwxrwx 4 mc3 mc3 4096 Mar 10 06:28 downloader
    -rwxrwxrwx 1 mc3 mc3 5335 Mar 10 06:21 eula.txt
    drwxr-xr-x 4 minecraft minecraft 4096 Mar 27 15:12 jar
    dr-xr-xr-x 2 minecraft minecraft 4096 Mar 10 06:22 launcher
    -r-------- 1 root root 24966 Mar 27 15:17 multicraft.conf
    -rwxrwxrwx 1 mc3 mc3 24957 Mar 10 06:21 multicraft.conf.dist
    -r-------- 1 root root 20 Mar 27 11:20 multicraft.key
    -rw-rw---- 1 minecraft minecraft 312033 Mar 27 15:59 multicraft.log
    drwxrwxrwx 2 mc3 mc3 4096 Mar 10 06:21 scripts
    -rwxrwxrwx 1 mc3 mc3 1582 Mar 10 06:21 server_configs.conf.dist
    drwx--x--x 3 minecraft minecraft 4096 Mar 27 12:45 servers
    drwxrwxrwx 2 mc3 mc3 4096 Mar 10 06:21 ssl
    drwxr-x--x 3 minecraft minecraft 4096 Mar 10 06:21 templates
     
  4. Edit: I made a realization as i was changing the permissions of some stuff

    I found this other page that has the same issue but it still persists.

    I tried the chgrp to my account dogman

    then I did the command again as to try and allow the group minecraft to access the /home/minecraft/multicraft folder to make the server pid

    realized that, one it didnt solve it, but it took it away access from dogman. Found out by trying to ftp in to check logs

    currently have it switched back to dogman
     
  5. Edit again: I fixed the current issue at hand. I can now launch the daemon again.

    Now its just this thats stopping me

    27.03 18:42:57 [Multicraft] Failed to adapt server configuration
    27.03 18:42:57 [Multicraft] Server stopped
    27.03 18:43:27 [Multicraft] Received start command
    27.03 18:43:27 [Multicraft] Loading server properties
    27.03 18:43:27 [Multicraft] Starting server!
    27.03 18:43:27 [Multicraft] Loaded config for "Default Minecraft Server"
    27.03 18:43:27 [Multicraft] JAR file not found. Go to "Settings"-"Update Minecraft" to download the JAR file.
    27.03 18:43:27 [Multicraft] Failed to adapt server configuration
    27.03 18:43:27 [Multicraft] Server stopped
     
  6. Running the install script for the daemon will occasionally fix the permissions issue. Although you're able to execute a few sets of chown commands (is an option but if you're not well experienced this might give you some headache.).
    Go to settings and on the left sidebar > update Minecraft
     
  7. Ill let you know how it goes! :)
     
  8. Says it downloaded it, went to server console to try and start. Same thing
     
  9. I even changed where it could view jars and I tried bungee, paper, and spigot. no avail
     
  10. Now my only issue is with the FTP, I keep getting

    Error 400
    The CSRF token could not be verified.
     
  11. BTW jesse your donate button isnt working, might wanna fix that :p
     
  12. Execute this command and send the output: ls -lh /home/minecraft/multicraft/jar

    If jar is not found, add an 's' after jar
    I abandoned that URL as I'm planning to create a new one with a connection to my payment service provider