Can't run the server systemwide

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

Can't run the server systemwide

by neko259 » Sun Feb 05, 2012 19:10

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
23:12:03: ACTION[main]: minetest with SER_FMT_VER_HIGHEST=22, VER=0.4.dev-20120122-1 RUN_IN_PLACE=0 USE_GETTEXT=1 INSTALL_PREFIX=/usr/local BUILD_TYPE=Release


        .__               __                   __   
  _____ |__| ____   _____/  |_  ____   _______/  |_
 /     \|  |/    \_/ __ \   __\/ __ \ /  ___/\   __\
|  Y Y  \  |   |  \  ___/|  | \  ___/ \___ \  |  | 
|__|_|  /__|___|  /\___  >__|  \___  >____  > |__| 
      \/        \/     \/          \/     \/       


AuthManager: loading from /home/minetest/.minetest/world/auth.txt
BanManager: loading from /home/minetest/.minetest/world/ipban.txt
23:12:03: ERROR[main]: Failed to load and run script from /usr/local/bin/../data/builtin.lua:
23:12:03: ERROR[main]: [LUA]
23:12:03: ERROR[main]: [LUA] cannot open /usr/local/bin/../data/builtin.lua: No such file or directory
23:12:03: ERROR[main]: [LUA]
23:12:03: ERROR[main]: Server: Failed to load and run /usr/local/bin/../data/builtin.lua
BanManager: saving to /home/minetest/.minetest/world/ipban.txt
AuthManager: saving to /home/minetest/.minetest/world/auth.txt
23:12:03: ERROR[main]: ModError: Failed to load and run /usr/local/bin/../data/builtin.lua


Installed with -DRUN_IN_PLACE=0 -DBUILD_CLIENT=0
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Sun Feb 05, 2012 20:37

It says the builtin.lua isn't there. Might want to check. It is in the default folder
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Sun Feb 05, 2012 20:46

IPushButton2653 wrote:It says the builtin.lua isn't there. Might want to check. It is in the default folder

There is not /usr/local/share/minetest like when you build a client. And there isn't builtin.lua anywhere.
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

User avatar
dannydark
Member
 
Posts: 428
Joined: Fri Aug 12, 2011 21:28

by dannydark » Mon Feb 06, 2012 02:00

According to your error its trying to find the builtin.lua file here: "/usr/local/data/builtin.lua". Which obviously this doesn't exist otherwise it would have found it.

Also is there a reason your trying to install the server rather than have it run in place? I find it much easier to manage with the server being run in place.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Mon Feb 06, 2012 06:14

You need a client to run a server... The server doesn't have any mods/textures by default. Also, having a run in place server (or in .minetest, that's also nice) is much easier to manage. You need root access to edit /usr/local or /usr/share...
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Mon Feb 06, 2012 06:16

Calinou wrote:You need a client to run a server... The server doesn't have any mods/textures by default. Also, having a run in place server (or in .minetest, that's also nice) is much easier to manage. You need root access to edit /usr/local or /usr/share...

I can't build a client because server doesn't have X. Run-in-place works, I'll have to use that.
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Mon Feb 06, 2012 15:58

But I still think it's a bug. If server works run-in-place, it should work systemwide.
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

celeron55
Member
 
Posts: 430
Joined: Tue Apr 19, 2011 10:10

by celeron55 » Tue Feb 07, 2012 13:40

You need to build it with -DRUN_IN_PLACE=0 AND install it with so. You seem to currently have a -DRUN_IN_PLACE=1 build, because it refers to "../data".

This is the path it will use for builtin.lua; porting::path_data is "/usr/local/share/minetest" or similar for a properly built and installed version.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
std::string builtinpath = porting::path_data + DIR_DELIM + "builtin.lua";
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Tue Feb 07, 2012 14:04

You seem to currently have a -DRUN_IN_PLACE=1 build, because it refers to "../data".

23:12:03: ACTION[main]: minetest with SER_FMT_VER_HIGHEST=22, VER=0.4.dev-20120122-1 RUN_IN_PLACE=0 USE_GETTEXT=1 INSTALL_PREFIX=/usr/local BUILD_TYPE=Release
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 3 guests