Page 1 of 1

Can't run the server systemwide

PostPosted: Sun Feb 05, 2012 19:10
by neko259
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

PostPosted: Sun Feb 05, 2012 20:37
by IPushButton2653
It says the builtin.lua isn't there. Might want to check. It is in the default folder

PostPosted: Sun Feb 05, 2012 20:46
by neko259
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.

PostPosted: Mon Feb 06, 2012 02:00
by dannydark
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.

PostPosted: Mon Feb 06, 2012 06:14
by Calinou
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...

PostPosted: Mon Feb 06, 2012 06:16
by neko259
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.

PostPosted: Mon Feb 06, 2012 15:58
by neko259
But I still think it's a bug. If server works run-in-place, it should work systemwide.

PostPosted: Tue Feb 07, 2012 13:40
by celeron55
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";

PostPosted: Tue Feb 07, 2012 14:04
by neko259
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