(Multicraft) Failed to initialize server: [Errno 13] Permission denied [SOLVED]

Discussion in 'Systems Administration' started by AlekseyN, Jul 3, 2019.

  1. Hello all !!!
    help to start up the server on a VPS (Ubuntu) under Multicraft control

    the "chmode -r 777" and "chown -r mc1: mc1" commands applied already

    here is my useless log:
    2019-07-03 13:31:41,201 INFO server 1: Received start command
    2019-07-03 13:31:41,214 INFO server 1: Loading server properties
    2019-07-03 13:31:41,216 INFO server 1: Starting server!
    2019-07-03 13:31:41,220 DEBUG server 1: Loading server config from minecraft_server.jar.conf
    2019-07-03 13:31:41,235 INFO server 1: Loaded config for "Default"
    2019-07-03 13:31:41,236 DEBUG server 1: Stream encoding for subprocess: ISO-8859-1 in, ISO-8859-1 out, latin-1 file
    2019-07-03 13:31:41,243 DEBUG server 1: Failed to initialize server: [Errno 13] Permission denied
    2019-07-03 13:31:41,244 WARNING server 1: Failed to initialize server
    2019-07-03 13:31:41,245 TRACE Closing client connection (127.0.0.1:38472)
    2019-07-03 13:31:42,452 TRACE New client connected (127.0.0.1:38478)
    2019-07-03 13:31:42,458 TRACE Client (127.0.0.1:38478) succesfully authorized
    2019-07-03 13:31:42,461 TRACE Closing client connection (127.0.0.1:38478)
    2019-07-03 13:31:44,533 TRACE New client connected (127.0.0.1:38484)
    2019-07-03 13:31:44,535 TRACE Client (127.0.0.1:38484) succesfully authorized
    2019-07-03 13:31:44,556 TRACE Closing client connection (127.0.0.1:38484)
    2019-07-03 13:31:46,593 TRACE New client connected (127.0.0.1:38490)
    2019-07-03 13:31:46,598 TRACE Client (127.0.0.1:38490) succesfully authorized
    2019-07-03 13:31:46,603 TRACE Closing client connection (127.0.0.1:38490)
    2019-07-03 13:31:47,466 TRACE New client connected (127.0.0.1:38496)
    2019-07-03 13:31:47,469 TRACE Client (127.0.0.1:38496) succesfully authorized
    2019-07-03 13:31:47,533 TRACE Closing client connection (127.0.0.1:38496)
    2019-07-03 13:31:49,881 TRACE New client connected (127.0.0.1:38502)
    2019-07-03 13:31:49,883 TRACE Client (127.0.0.1:38502) succesfully authorized
    2019-07-03 13:31:49,902 TRACE Closing client connection (127.0.0.1:38502)
    2019-07-03 13:31:51,983 TRACE New client connected (127.0.0.1:38508)
    2019-07-03 13:31:51,986 TRACE ...

    and so on with only port numbers changes

    what could be the problem? where to looking for?
     
    • Like Like x 1
  2. Did you make a typo in your post or actually run these commands? You need to specify the path, and -R has to be uppercase:
    Code (Text):
    chown -R mc1:mc1 /path/to/server/dir
    chmod -R 777 /path/to/server/dir
    Though setting the permissions to 777 isn't necessary if the file owner is correct.
     
  3. Add me on Discord Intelligence#2376, I can help you out! :)
     
  4. Yes, I run of course:
    chown -R mc1:mc1 /home/minecraft/multicraft/servers/server1/
    chmod -R 777 /home/minecraft/multicraft/servers/server1/

    And then checked all visually by FileZilla
     
  5. HERE IS DECISION for a clean server:
    Instruction Was Created for "Ubuntu 16" But It Works on "Ubuntu 18"
    I am not sure whether it will work on version lower than 16 or even on another OS
    To Connect to the Hosting Console I used PuTTy
    To Copy Commands to the console, press "Ctrl + C" and "RMB" [Ctrl + V in the console does not work!]
    Remember Always when asked, “Do you want to Continue?” Press 'Y'

    Install MqSql:
    1.wget http://dev.mysql.com/get/mysql-apt-config_0.3.7-1debian7_all.deb
    2. dpkg -i mysql-apt-config_0.3.7-1debian7_all.deb
    2.1 [You Will Have To Make a Choice, Select "Apply"]
    3. apt-get update
    4. apt-get install mysql-server mysql-client
    [We write the Password from "root"]

    Install PhpMyAdmin:
    1. apt-get install phpmyadmin
    1.1 [We do this: | Y | Skipping | Skipping | Skipping | Apache2 |]
    2.sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
    3.sudo a2enconf phpmyadmin
    4.sudo /etc/init.d/apache2 reload
    5. apt-get install php7.0-sqlite

    Install Java-8 (OpenJDK):
    1. apt-get install openjdk-8-jre

    Install Zip:
    1. apt-get install zip
    2. apt-get install unzip
    3.a2enmod rewrite
    4. /etc/init.d/apache2 restart

    Installing MultiCraft:
    1.wget http://www.multicraft.org/download/linux64?version=preview -O multicraft.tar.gz
    2. tar xvzf multicraft.tar.gz
    3.cd multicraft
    4. ./setup.sh
    [Doing so: | Y | Skipping | Y | Skipping | Skipping | Skipping | Y | Skipping | Skipping | Skipping | Y | Skipping | Y |]
    5. apt-get install nano
    7.cd / etc / apache2
    8.nano apache2.conf
    6. Find the directory:

    <Directory / var / www />
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
    </Directory>

    and replace None with All, so that would be like this:

    <Directory / var / www />
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
    </Directory>

    7. /etc/init.d/apache2 restart

    Checking What Mysqld Works [Must-Do]
    1. mysqld --verbose --help
    2. mysqld --no-defaults --verbose --help

    Login to sites
    1. <ip> /multicraft/install.php
    2. <ip> / phpmyadmin
    [Login = root | Password = Password that you entered when installing phpmyadmin]

    Installation No. 1
    Database 1: PANEL
    1. Choose MySQL
    2. Add the database "multicraft_panel" to phpmyadmin
    3. Where "Database Username" write "root"
    Where "Database Password" write the password that you entered when installing MySQL
    4. Click Save and Continue.

    Database 2: DAEMON "
    1. Choose MySQL
    2. Add the database "multicraft_daemon" to phpmyadmin
    3. Where "Database Username" write "root"
    Where "Database Password" write the password that you entered when installing MySQL
    4. Click Save and Continue.

    Mini Setting
    1. Where "Administrator contact Email" We write your email
    2. Where "Enable the Multicraft API" Set to "True"
    3. We don’t touch anything else

    Installation No. 2
    1. Next, go to the Console. Write
    2. nano / home / <username that was created when installing multicraft> /multicraft/multicraft.conf
    3. And then we search and change the lines that multicraft wrote to you (Daemon configuration)
    4. We write the command to start Daemon "/ home / minecraft / multicraft / bin / multicraft start"
    5. Click "Refresh" and then Continue there.
    6. Done! Delete the file "install.php" from "var / www / multicraft" and rejoice that everything turned out)

    Thank you for using this manual!

    Link to the crack = https://www.multicraft.org/files/translation/multicraft-translation-ru.zip
    Russifier needs to be unpacked and dropped using FTP with replacement in var / www / multicraft
     
    #5 AlekseyN, Sep 16, 2019
    Last edited: Sep 16, 2019