Setting Up a Server Issue

  • Tech Support section is for getting help with FTB related problems. If there's a repeatable issue that can be labeled as a bug, then please use the issue tracker for the pack or the app at GitHub issue trackers - If there's no repository for a pack that means that the pack is old and/or will not be updated. Bugs for older packs will not be fixed, unless they are critical.
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Moldplayer

New Member
Jul 29, 2019
4
0
0
Title:
Server Setup Glitch
Launcher Version:
1.4.8
Modpack:
Infinity
Modpack Version:
1.11.2-1.7.10
Log Link:
Details of the issue:
Setting up a server and this error pops up: 'cat' is not recognized as an internal or external command,operable program or batch file.

It does not seem to be a Java issue as we are on version 7 which the guides state is the correct one (unless things have changed) cat is a linux command.


Any advice?
 
Last edited:

Henry Link

Forum Addict
Dec 23, 2012
2,601
553
153
USA - East Coast
We need some more detail. Your post is to generic. What OS are you launching the server on. How are you launching it? Screen shots or logs would also help.
 

DeathOfTime

New Member
Jul 29, 2019
823
0
1
Java 8 sounds more likely to work better. Are you using the Minecraft Wiki setup guide? Whichever one it is it sounds a little outdated.

What is the server being set up on? Is it a computer at home or using a online server provider?

If it is at home try running the "ServerStart.bat" that is in with the rest of the files. Make sure to extract the downloaded compressed package into into its own folder first.
 

Moldplayer

New Member
Jul 29, 2019
4
0
0
Using a Windows Server Box via rcon. Java version 7.

Ran the FTB install batch file then ran the serverstart which failed to execute the cat command.

Here is the bit of code that causes the issue:

REM Test JVM
REM e.g. 32-bit JVM does not have server\jvm.dll library
java -server -version > java-test.log 2>&1

if %ERRORLEVEL% NEQ 0 (
echo Detected following JVM error:
echo =======================================
cat java-test.log
echo =======================================
echo JVM test failed. Can't run server, Exiting...
pause
exit /B
)
 

Henry Link

Forum Addict
Dec 23, 2012
2,601
553
153
USA - East Coast
Not sure what the cat command or why they included it in that batch file. But the batch file isn't finding java which is why you get that error. The key part is

java -server -version > java-test.log 2>&1
if %ERRORLEVEL% NEQ 0 (

They are doing a java version check and if the check falls then it tries to use that cat command to display the error log. So you need to fix java somehow.
 

DeathOfTime

New Member
Jul 29, 2019
823
0
1
Using a Windows Server Box via rcon. Java version 7.

Ran the FTB install batch file then ran the serverstart which failed to execute the cat command.

Here is the bit of code that causes the issue:

REM Test JVM
REM e.g. 32-bit JVM does not have server\jvm.dll library
java -server -version > java-test.log 2>&1

if %ERRORLEVEL% NEQ 0 (
echo Detected following JVM error:
echo =======================================
cat java-test.log
echo =======================================
echo JVM test failed. Can't run server, Exiting...
pause
exit /B
)
Never heard of "Windows Server Box" until now, and I know nothing about rcon. Does sound like you are trying to run a program on a remote computer. Also see that 32bit and java 7 are referenced. Got to be careful when running a program on another machine that the other machine is running the program, Not the one you are currently using. I usually get dependency issue errors similar to yours when I accidentally try to run something on another computer. It may be accessing the data from that one file. It has a hell of a time finding the rest of the files (mostly cause it is looking on my pc), and it is still my computer running the program.

Google didn't at all enlighten me to what windows server box and rcon are. Though it does make the box sound like a barebones pc, and rcon something like a remote control to operate that box. If that is the case you won't want to run the "ServerStart.bat". You will want the windows box to do it. Also "ServerStart.bat" and "ServerStart.sh" are just automation script files. You should be able to open both in any program that can open .txt files. .bat is for use in windows and works through cmd or dos depending on windows edition. .sh is the linux version.
 

Baaleos

New Member
Jul 29, 2019
100
0
0
Not sure if this is the solution.
But Cat sounds more like a linux command.
Are you sure you are running the correct batch file and not running the linux startup script by accident?
Cat is not part of the windows operating system - so it would not be expected to work.
 
  • Like
Reactions: DeathOfTime

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
Not sure if this is the solution.
But Cat sounds more like a linux command.
Are you sure you are running the correct batch file and not running the linux startup script by accident?
Cat is not part of the windows operating system - so it would not be expected to work.
If I remember correctly windows can't even run .sh files. The error however is that it can't find the correct java version like others have said.

@Moldplayer I tried to google for ways to control a windows machine and couldn't find anything. What program are you using to connect to the windows server?
Can you let the server run java -version and post the output? Maybe the installation of java went wrong
 
  • Like
Reactions: DeathOfTime

Moldplayer

New Member
Jul 29, 2019
4
0
0
Hello everyone, thanks for the input!

The issue was that Infinity is 64 bit and our server is still 32 bit. So I ask if there is a Infinity version or a FTB modpack that works with a 32 bit one. If there is not an Infinity version, then please go with one that is about the scale of Infinity.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
None of the modpacks are 64 bit HOWEVER the amount of memory needed to run them makes it that 32 bit can't run them.
Either update the OS to a 64 bit one if possible or if it already is a 64 bit OS update java to 64 bit.
If you can't run a modpack you probably can't run any modpack that has the same amount of mods.
 

DeathOfTime

New Member
Jul 29, 2019
823
0
1
I seem to remember running modpacks on a 32bit machine successfully. I haven't tried since 1.5 I think. Possibly 1.2. I do know it was getting to be a reach that my 32bit windows xp machine could barely handle a mopack on the last minecraft verions I ran on it. I upgraded to windows 7 64bit awhile back. Will look that up and see if I can cross reference it with a minecraft version.

Looks like I bought windows 7 in 2012. So now to look up minecraft version. Looks like minecraft 1.8 beta might have been the last version my Windows XP pc played on. Now gonna lookup modpacks made for that version and make certain. Hhhmmmm, looks like the last modpack I played might have actually been from Minecraft 1.1. Could have sworn I played something newer on it. Well, then. Guess they don't exist anymore.

I tried look around and even the threads I used back then to find modpacks and download them no longer exist. I can't seem to find any launcher that has one of the modpacks from back then (or anywhen close) either. Sorry about that. It might still be possible. Best bet would be to see if you can upgrade that server's memory and get a 64bit version of linux installed on it. Then try to get a modpack setup on that from one of launchers. Might still need to be a old modpack. Might be worth looking into though.

Good luck. Whatever you decide to do.