Hosting a server on Raspberry pi

    JJ

    Joined
    Apr 7, 2014
    Messages
    3
    Reaction score
    0
    I'm by no means an expert in the use of my raspberry pi but I have gotten a Minecraft server running pretty smoothly (using the java build 1.7.0_40-b43 preinstalled on raspain).

    I'm now trying to host a StarMade server on it, by following this guide:
    http://thenated0g.com/2013/06/29/star-made-ubuntu-server-install/

    I get to the step:

    #startup server for first time to create server.cfg file

    • sudo ./StarMade-dedicated-server-linux.sh


    and it goes wrong, I get this as the output:

    java.lang.RuntimeException: java.io.IOException: Cannot run program "dmidecode": error=2, No such file or directory
    at w.a(SourceFile:30)
    at y.a(SourceFile:87)
    at org.schema.game.common.Starter.main(SourceFile:820)
    Caused by: java.io.IOException: Cannot run program "dmidecode": error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
    at java.lang.Runtime.exec(Runtime.java:617)
    at java.lang.Runtime.exec(Runtime.java:485)
    at w.a(SourceFile:26)
    ... 2 more
    Caused by: java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
    at java.lang.ProcessImpl.start(ProcessImpl.java:130)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
    ... 5 more
    [VERSION] VERSION: 0.157
    [VERSION] BUILD: 20140615_210533
    #################### StarMade #######################
    # version 0.157 - build 20140615_210533 #
    #####################################################
    [SERIAL] "null"
    [LIBLOADER] OS ARCHITECTURE arm
    Exception in thread "main"
    java.lang.UnsatisfiedLinkError: /home/pi/games/StarMade/native/linux/libopenal.so: /home/pi/games/StarMade/native/linux/libopenal.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1957)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1882)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1087)
    at on.a(SourceFile:75)
    at org.schema.game.common.Starter.main(SourceFile:887)


    If anyone has any ideas on how to fix this or any questions, do reply.
     
    Joined
    Aug 25, 2013
    Messages
    180
    Reaction score
    43
    It's not compatible with an ARM processor. You would have to recompile the .so files for ARM in order for it to run.
     

    JJ

    Joined
    Apr 7, 2014
    Messages
    3
    Reaction score
    0
    Thanks for the reply. Got any info to help me compile it? Is it possible to do this without being knowledgeable about code?
     
    Joined
    Aug 25, 2013
    Messages
    180
    Reaction score
    43
    You can find info on compiling it on their website and forums.
    Even if you do get it running, the raspberry pi doesn't have the processing power or the ram to run a starmade server smoothly. It uses a lot more resources than a minecraft server.
     

    JJ

    Joined
    Apr 7, 2014
    Messages
    3
    Reaction score
    0
    I recently tried it again, this time following the guide for linux on this site and it seemed to work fine. I haven't tested the performance yet but now i'm running it on a raspberry pi 2 it should be better than it would've been.
     

    AndyP

    Customer Experience Manager
    Joined
    Aug 15, 2013
    Messages
    1,199
    Reaction score
    264
    • Schine
    • Wired for Logic
    Oh, true, the Pi 2 has a lot more cpu power and ram.
    With moderate ship sizes and not too many players it should work.

    Once you tried it out a bit, please post the experiences with it.

    - Andy
     
    • Like
    Reactions: therimmer96
    Joined
    Dec 2, 2014
    Messages
    23
    Reaction score
    1
    The RPi 2 is much more powerful than the original so you should be fine - especially since you could even run windows 10 for better compatibility if needed but you may have to overclock a bit for better performance
     
    Joined
    Jan 16, 2014
    Messages
    7
    Reaction score
    0
    Hi, I try to bring up a StarMade server on my Raspberry Pi. I know it will be to slow for anything but i want to get it done before i buy a Rapsberry 2.
    I used this 2 sites to create the server:
    http://thenated0g.com/2013/06/29/star-made-ubuntu-server-install/
    http://star-made.org/help/setting_up_a_server

    I used the Command to start the server "./StarMade-dedicated-server-linux.sh"
    Then i get some Text and after a bit it comes all the time:

    [SERVER] Server Autosave Start. Dumping Server State!
    [SERVER] Writing Factions and Catalog!!! Count: 18
    [SERVER] Server Autosave End. ServerState saved!
    [SERVER] Server Autosave Start. Dumping Server State!
    [SERVER] Writing Factions and Catalog!!! Count: 18
    [SERVER] Server Autosave End. ServerState saved!
    ...
    I dont know what that exactly means is the server running? is that the result i should see?
    If yes i cant still connect. I used the IP of my Raspberry 192.168.1.xx and the port :4242.
    Is the Port maybe not free to use? or is it something else or is the server just not finished to install.
    If i try to connect i get this message after a few seconds:
    EncryptionOperationNotPossibleException: null

    If you have any helping advices please help me.
    -Saturas-
     
    Last edited:

    Rasor1911

    Abusing Stealth since the dawn of time
    Joined
    Jun 21, 2013
    Messages
    22
    Reaction score
    5
    • Purchased!
    • Legacy Citizen 4
    Hi, I try to bring up a StarMade server on my Raspberry Pi. I know it will be to slow for anything but i want to get it done before i buy a Rapsberry 2.
    I used this 2 sites to create the server:
    http://thenated0g.com/2013/06/29/star-made-ubuntu-server-install/
    http://star-made.org/help/setting_up_a_server

    I used the Command to start the server "./StarMade-dedicated-server-linux.sh"
    Then i get some Text and after a bit it comes all the time:

    [SERVER] Server Autosave Start. Dumping Server State!
    [SERVER] Writing Factions and Catalog!!! Count: 18
    [SERVER] Server Autosave End. ServerState saved!
    [SERVER] Server Autosave Start. Dumping Server State!
    [SERVER] Writing Factions and Catalog!!! Count: 18
    [SERVER] Server Autosave End. ServerState saved!
    ...
    I dont know what that exactly means is the server running? is that the result i should see?
    If yes i cant still connect. I used the IP of my Raspberry 192.168.1.xx and the port :4242.
    Is the Port maybe not free to use? or is it something else or is the server just not finished to install.
    If i try to connect i get this message after a few seconds:
    EncryptionOperationNotPossibleException: null

    If you have any helping advices please help me.
    -Saturas-
    Ok, so the messages you are getting is the server running the autosave, that is good and that means the server works.

    but you are still unable to connect. issue? EncryptionOperationNotPossibleException: null, this means that the server cannot reach the auth servers to validate your account. Is your Pi connected to the internet and does it work? if it is and still doesn't, just set REQUIRE_STARMADE_AUTHENTICATION = false in the server.cfg file (same folder as your server starter.)
    and if that does not work, also set USE_STARMADE_AUTHENTICATION = false
    Be warned; this means people can log in as you and you have no protection!


    And if none of that works, the port might not be working.
     
    Joined
    Jan 16, 2014
    Messages
    7
    Reaction score
    0
    Thanks Rasor :D
    I checked the server.cfg file (with "sudo nano server.cfg")
    They 2 statements were already on false so i triggerd the port 4242 at the router.
    Now i am able to connect to my Server even with true:
    REQUIRE_STARMADE_AUTHENTICATION = true
    USE_STARMADE_AUTHENTICATIOn = true

    My Pi is to slow for that Game but thats ok it was just a test now i will buy a raspberry pi 2 and try it again.
     
    Last edited:
    Joined
    Jan 16, 2014
    Messages
    7
    Reaction score
    0
    Hi me again.
    My friend trys to connect to my server. but when he tries it he gets the following Error:
    SocketTimeoutException: Failed to connect!
    So he cant connect to my Raspberry? can it be that it works not because he cant connect directly to my PI just over the router. So the IP of my Raspberry and the Port 4242 works not. or is his port maybe blocked?
    i have no idea...
    -----------------------------------------
    My Brother can connect to my server but thats sure because we got the same home-network
     
    Joined
    Jul 21, 2013
    Messages
    2,932
    Reaction score
    460
    • Hardware Store
    Hi me again.
    My friend trys to connect to my server. but when he tries it he gets the following Error:
    SocketTimeoutException: Failed to connect!
    So he cant connect to my Raspberry? can it be that it works not because he cant connect directly to my PI just over the router. So the IP of my Raspberry and the Port 4242 works not. or is his port maybe blocked?
    i have no idea...
    -----------------------------------------
    My Brother can connect to my server but thats sure because we got the same home-network
    I assume you are running the rapberry pi on a linux distro? If so, iptables(the built-in firewall) may have blocked the port.
    If your brother isn't in the same LAN as you are, also make sure, that your router port-forwards to the pi, and that your brother uses the WAN-IP of the router instead.
     

    Rasor1911

    Abusing Stealth since the dawn of time
    Joined
    Jun 21, 2013
    Messages
    22
    Reaction score
    5
    • Purchased!
    • Legacy Citizen 4
    Hi me again.
    My friend trys to connect to my server. but when he tries it he gets the following Error:
    SocketTimeoutException: Failed to connect!
    So he cant connect to my Raspberry? can it be that it works not because he cant connect directly to my PI just over the router. So the IP of my Raspberry and the Port 4242 works not. or is his port maybe blocked?
    i have no idea...
    -----------------------------------------
    My Brother can connect to my server but thats sure because we got the same home-network
    Anytime! :D

    also; is your friend trying to connect from the internet? as in, he isn't on the same home network as you?

    'cause if he is, you probably need to port forward the Pi and get its external ip.
    https://www.whatismyip.com/
    http://portforward.com/
     
    Joined
    Jan 16, 2014
    Messages
    7
    Reaction score
    0
    My brother is in the same LAN.
    My Friend not he trys to connect over the internet. So yes he is not in the same home network. (2 different houses at 2 different spots)
    I have Raspbian on my Pi so linux yes.
    Thanks for the answers i will try to follow your advices today^^.
     
    Last edited:
    Joined
    Jan 16, 2014
    Messages
    7
    Reaction score
    0
    Hm i did portforward with port from 4242 to 4242. and now i to used the external (from whatismyip.com) IP. It connects a while (0.5-2 min) and than i get again the SocketTimeoutException: Failed to connect!
    Its also impossible for me to connect if i use the WAN or external IP however you name it.
    So there is still a problem to connect over the router from the internet.
     
    Joined
    Jul 21, 2013
    Messages
    2,932
    Reaction score
    460
    • Hardware Store
    This definetly looks like iptables blocking the way. I do not know how exactly your LAN is set up(nor should I know, posting that info publicly eases hacking the LAN, if your LAN will ever be a target), so I cannot help your further, except by pointing at iptables.
     
    Joined
    Jan 16, 2014
    Messages
    7
    Reaction score
    0
    This definetly looks like iptables blocking the way. I do not know how exactly your LAN is set up(nor should I know, posting that info publicly eases hacking the LAN, if your LAN will ever be a target), so I cannot help your further, except by pointing at iptables.
    I guess its a problem with IP and Router and port forwarding ^^. We got 2 routers in the house but i guess only one is "reaching" the internet so this one has to send the incoming data to the other router which knows my raspberry and now i have to try some stuff about ports and IPs and whatever ^^ i will post again if i got it.
     
    Joined
    Jan 16, 2014
    Messages
    7
    Reaction score
    0
    OK
    I got it. The Server is working. As i thought it was a problem with the ports and router. I had to forward the port 4242 of the one router to my Raspberry and forward the same port on the other router. I did something wrong at the first try but now its working fine.
    Thanks for everyone who helped me here.