EnigmaticaModpacks / Enigmatica4

The official repository and issue-tracker for Enigmatica 4
https://www.curseforge.com/minecraft/modpacks/enigmatica4
19 stars 24 forks source link

Bash-Execute on Debian 9 #311

Closed iInjection closed 4 years ago

iInjection commented 4 years ago

Modpack version Newest

Issue Bash-executing server-start.sh does not work

Logs https://pastebin.com/WFd8UTFu

NielsPilgaard commented 4 years ago

Did you use the server files, or the repository? :) I found a _ that should've been a - in there, so might've fixed it.

Edit: We found the solution. The settings-linux.cfg file could not be read, and had to be replaced with a version where all lines end with ; This file worked: https://gist.github.com/NillerMedDild/6ccc07fc5a977059c64b920b370d3503

iInjection commented 4 years ago

Hey Niels,

Thanks for your response. I used the most recent server files on curseforge. I am gonna try it in the evening and let you know if it is working nor not.

Niels Pilgaard Grøndahl notifications@github.com schrieb am So., 15. März 2020, 19:37:

Did you use the server files, or the repository? :) I found a _ that should've been a - in there, so might've fixed it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NillerMedDild/Enigmatica4/issues/311#issuecomment-599247858, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJ6XRVRZH6PTZTHXHBZA6TRHUN77ANCNFSM4LLHJXQA .

iInjection commented 4 years ago

Does not install forge / can't find it:

:~/Enigmata$ bash server-start.sh
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)

About to start server. Force re-install (y/n)?  y
User chose to manually re-install server files
Starting install of Forge/Minecraft server binaries
https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.14.4-28.2.3/fo                                                                                                                                                             rge-1.14.4-28.2.3-installer.ja
Moving unneeded files/folders to ./DELETEME
Installing Forge Server, please wait...
Deleting Forge installer (no longer needed)
server-start.sh: line 160: [: -eq: unary operator expected
Ping to Google DNS successfull
Ping to L4 successfull
Required files not found, need to install Forge
Starting install of Forge/Minecraft server binaries
https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.14.4-28.2.3/fo                                                                                                                                                             rge-1.14.4-28.2.3-installer.ja
Moving unneeded files/folders to ./DELETEME
Installing Forge Server, please wait...
Deleting Forge installer (no longer needed)
Required files not found, need to install Forge
Starting install of Forge/Minecraft server binaries
https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.14.4-28.2.3/fo                                                                                                                                                             rge-1.14.4-28.2.3-installer.ja
Moving unneeded files/folders to ./DELETEME
Installing Forge Server, please wait...
Deleting Forge installer (no longer needed)
Could not find eula.txt starting server to generate it

Starting server
**Error: Unable to access jarfile forge-1.14.-28.2..jar**

Closing to give user a change to accept the eula
NielsPilgaard commented 4 years ago

Please link the contents of your settings-linux.cfg file.

iInjection commented 4 years ago

Please link the contents of your settings-linux.cfg file.

https://pastebin.com/sRvgRNuu

Pastebin
settings-linux - Pastebin.com
NielsPilgaard commented 4 years ago

You did accept the eula right?

iInjection commented 4 years ago

it won't let me start the server even.

Error: Unable to access jarfile forge-1.14.-28.2..jar

but it is not even there!

FTP-view on the folder:

https://i.imgur.com/RbWfaO0.png

Edit: when I extracted the server files from curseforge, it looked like this.

NielsPilgaard commented 4 years ago

Right, it does look like that when you extract the server files, but the script downloads forge - Do you see any forge jars in your server folder?

NielsPilgaard commented 4 years ago

I see that it says Error: Unable to access jarfile forge-1.14.-28.2..jar, but it writes about the eula below that - Have you made sure your eula's contents ends with eula=true? No whitespaces or newlines after true.

iInjection commented 4 years ago

It does not generate an eula file. the eula file will be generated after the server jar was executed, but it won't since there is none. I just created an eula.txt with eula=true in it, nothing else.

I checked the console and it threw following error lines:

server-start.sh: line 160: [: -eq: unary operator expected
[...]
Error: Unable to access jarfile forge-1.14.-28.2..jar
server-start.sh: line 289: [: 1: unary operator expected

I don't code java and am no expert in Unix, so idk haha

NielsPilgaard commented 4 years ago

Alright, thanks - I'll try to fix it. :)

NielsPilgaard commented 4 years ago

Please try with this settings-linux.cfg file: https://gist.github.com/NillerMedDild/6ccc07fc5a977059c64b920b370d3503

Gist
settings-linux.cfg
GitHub Gist: instantly share code, notes, and snippets.
iInjection commented 4 years ago

This worked!