matpow2 / cuwo

Open server and utilities for Cube World
GNU General Public License v3.0
170 stars 49 forks source link

Server Start error. #189

Closed exposecode closed 7 years ago

exposecode commented 7 years ago

Hello! I have a Problem with CUWO Error: root@mvickido:/home/cuwo# sh run_server.sh Traceback (most recent call last): File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.4/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/cuwo/cuwo/server.py", line 736, in <module> main() File "/home/cuwo/cuwo/server.py", line 721, in main server = CubeWorldServer(loop, config) File "/home/cuwo/cuwo/server.py", line 473, in __init__ base.use_entities) File "/home/cuwo/cuwo/server.py", line 111, in __init__ super().__init__(*arg, **kw) File "/home/cuwo/cuwo/world.py", line 240, in __init__ raise FileNotFoundError('Missing asset file %r' % path) FileNotFoundError: Missing asset file '/home/cuwo/data/data1.db'

m00nyONE commented 7 years ago

same error here

matpow2 commented 7 years ago

You need to place data1.db and data4.db in the data folder. Does that fix the issue?

yakuu commented 7 years ago

Fatal Python error: Segmentation fault

Thread 0x00007f7a4760f700 (most recent call first): File "/srv/www/projects/test/cuwo-master/cuwo/world.py", line 297 in run_gen File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54 in run File "/usr/lib/python3.4/concurrent/futures/thread.py", line 65 in _worker File "/usr/lib/python3.4/threading.py", line 868 in run File "/usr/lib/python3.4/threading.py", line 920 in _bootstrap_inner File "/usr/lib/python3.4/threading.py", line 888 in _bootstrap

Thread 0x00007f7a4b013700 (most recent call first): File "", line 2106 in path_hook_for_FileFinder File "", line 1864 in _path_hooks File "", line 1885 in _path_importer_cache File "", line 1920 in _get_spec File "", line 1954 in find_spec File "", line 2182 in _find_spec File "", line 2226 in _find_and_load_unlocked File "", line 2237 in _find_and_load File "/srv/www/projects/test/cuwo-master/scripts/log.py", line 26 in File "", line 321 in _call_with_frames_removed File "", line 1471 in exec_module File "", line 1129 in _exec File "", line 1468 in exec_module File "/srv/www/projects/test/cuwo-master/scripts/log.py", line 69 in on_load File "/srv/www/projects/test/cuwo-master/cuwo/script.py", line 316 in init File "/srv/www/projects/test/cuwo-master/cuwo/server.py", line 591 in load_script File "/srv/www/projects/test/cuwo-master/cuwo/server.py", line 484 in init File "/srv/www/projects//tcuwo server started on Fri Jul 7 22:20:54 2017 est/cuwo-master/cuwo/server.py", line 721 in main File "/srv/www/projectLoaded script 'log' s/test/cuwo-master/cuwo/server.py", line 736 in File "/usr/lib/python3.4/runpy.py", line 85 in _run_code File "/usr/lib/python3.4/runpy.py", line 170 in _run_module_as_main Segmentation fault

sh run_server.sh

That is what I am getting after the Copy of data with the same error from before.


Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 151, in _run_module_as_main mod_name, loader, code, fname = _get_module_details(mod_name) File "/usr/lib/python2.7/runpy.py", line 113, in _get_module_details code = loader.get_code(mod_name) File "/usr/lib/python2.7/pkgutil.py", line 283, in get_code self.code = compile(source, self.filename, 'exec') File "/srv/www/projects/test/cuwo-master/cuwo/server.py", line 685 def create_datagram_endpoint(self, *arg, port=0, **kw): ^ SyntaxError: invalid syntax

python -m cuwo.server


TheReverend403 commented 7 years ago

Are you running a grsecurity or other PaX-enabled kernel by any chance?

Edit: wait, it's because you're trying to use Python 2.7, cuwo requires Python 3.4

matpow2 commented 7 years ago

Currently, tgen is broken on Linux, so remember to turn it off. Does that fix it for you?

On fre. 7. jul. 2017 at 22.24 Johnny notifications@github.com wrote:

Fatal Python error: Segmentation fault

Thread 0x00007f7a4760f700 (most recent call first): File "/srv/www/projects/test/cuwo-master/cuwo/world.py", line 297 in run_gen File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54 in run File "/usr/lib/python3.4/concurrent/futures/thread.py", line 65 in _worker File "/usr/lib/python3.4/threading.py", line 868 in run File "/usr/lib/python3.4/threading.py", line 920 in _bootstrap_inner File "/usr/lib/python3.4/threading.py", line 888 in _bootstrap

Thread 0x00007f7a4b013700 (most recent call first): File "", line 2106 in path_hook_for_FileFinder File "", line 1864 in _path_hooks File "", line 1885 in _path_importer_cache File "", line 1920 in _get_spec File "", line 1954 in find_spec File "", line 2182 in _find_spec File "", line 2226 in _find_and_load_unlocked File "", line 2237 in _find_and_load File "/srv/www/projects/test/cuwo-master/scripts/log.py", line 26 in File "", line 321 in _call_with_frames_removed File "", line 1471 in exec_module File "", line 1129 in _exec File "", line 1468 in exec_module File "/srv/www/projects/test/cuwo-master/scripts/log.py", line 69 in on_load File "/srv/www/projects/test/cuwo-master/cuwo/script.py", line 316 in init File "/srv/www/projects/test/cuwo-master/cuwo/server.py", line 591 in load_script File "/srv/www/projects/test/cuwo-master/cuwo/server.py", line 484 in init File "/srv/www/projects//tcuwo server started on Fri Jul 7 22:20:54 2017 est/cuwo-master/cuwo/server.py", line 721 in main File "/srv/www/projectLoaded script 'log' s/test/cuwo-master/cuwo/server.py", line 736 in File "/usr/lib/python3.4/runpy.py", line 85 in _run_code File "/usr/lib/python3.4/runpy.py", line 170 in _run_module_as_main Segmentation fault

That is what I am getting after the Copy of data with the same error from before.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/matpow2/cuwo/issues/189#issuecomment-313784208, or mute the thread https://github.com/notifications/unsubscribe-auth/AAs6Jup7dT392yajsVFjwKYcASIk6rlAks5sLpPlgaJpZM4N9Knw .

yakuu commented 7 years ago

( LD_SHOW_AUXV=yes ls ) | grep AT_BASE

AT_BASE: 0x7f22bd77e000

I guess this means i have it enabled? how can I turn it off?

matpow2 commented 7 years ago

Set "use_tgen = False" in config/base.py.

On fre. 7. jul. 2017 at 22.49 Johnny notifications@github.com wrote:

( LD_SHOW_AUXV=yes ls ) | grep AT_BASE

AT_BASE: 0x7f22bd77e000

I guess this means i have it enabled? how can I turn it off?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/matpow2/cuwo/issues/189#issuecomment-313789554, or mute the thread https://github.com/notifications/unsubscribe-auth/AAs6JvPYbWS3DMxA-5ekzYV7x9Gas3XWks5sLpncgaJpZM4N9Knw .

yakuu commented 7 years ago

Yep. Works awesome!