SIMPLE ALL IN ONE: From nothing to a fully working dedicated server on Ubuntu

Discussion in 'Basic' started by Don Daniello, Mar 27, 2014.

  1. Itutorial

    Itutorial Well-Known Member

    Joined:
    Dec 23, 2014
    Messages:
    1,363
    Likes Received:
    291
    Best Answers:
    23
  2. Tinkz

    Tinkz Active Member

    Joined:
    Feb 14, 2012
    Messages:
    191
    Likes Received:
    38
    Best Answers:
    8
    @Don Daniello

    Server crash and this appear on console. What does it mean and what makes it occur?
    [​IMG]
     
  3. Mister Budex

    Mister Budex Thats Not Me

    Joined:
    Jun 22, 2016
    Messages:
    921
    Likes Received:
    139
    Best Answers:
    16
    Just an crash.
    You have to install gdb and you can see crash error
    write this in your putty console :
    apt-get install gdb
    then start it with gdb and u can see errors :)
     
  4. Itutorial

    Itutorial Well-Known Member

    Joined:
    Dec 23, 2014
    Messages:
    1,363
    Likes Received:
    291
    Best Answers:
    23
    How can I add SSL to my website? Most tutorials tell me to look for: apache2/enables-sites or httpd folder. I do not have either of those. What do I need to do?
     
  5. Don Daniello

    Don Daniello /root Staff Member Administrator

    Joined:
    Apr 11, 2008
    Messages:
    3,348
    Likes Received:
    655
    Best Answers:
    11
    e..g using "certbot --nginx"
     
  6. tanii

    tanii Empire-war.com

    Joined:
    Jan 16, 2015
    Messages:
    380
    Likes Received:
    9
    Best Answers:
    1
    For enable ssl certificate u should go to domain settings.
     
  7. jesse.b

    jesse.b New Member

    Joined:
    Nov 30, 2018
    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Hello I am trying to get this running on ubuntu 16.04 and I have a few issues:

    First there is a date command issue:
    Code (Text):
    1. $ duedate
    2. date: option requires an argument -- 'd'
    3. Try 'date --help' for more information.
    But more importantly I can't seem to get the server to start:

    Code (Text):
    1. $ log tfs
    2. -- Logs begin at Thu 2018-11-29 23:31:18 UTC, end at Thu 2018-11-29 23:39:50 UTC. --
    3. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Started The Forgotten Server.
    4. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[2195]: tfs.service: Failed at step EXEC spawning /home/otsmanager/forgottenserver/build/tfs: No such file or directory
    5. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Main process exited, code=exited, status=203/EXEC
    6. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Unit entered failed state.
    7. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Failed with result 'exit-code'.
    8. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Service hold-off time over, scheduling restart.
    9. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Stopped The Forgotten Server.
    10. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Started The Forgotten Server.
    11. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[2197]: tfs.service: Failed at step EXEC spawning /home/otsmanager/forgottenserver/build/tfs: No such file or directory
    12. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Main process exited, code=exited, status=203/EXEC
    13. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Unit entered failed state.
    14. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Failed with result 'exit-code'.
    15. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Service hold-off time over, scheduling restart.
    16. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Stopped The Forgotten Server.
    17. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Started The Forgotten Server.
    18. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[2199]: tfs.service: Failed at step EXEC spawning /home/otsmanager/forgottenserver/build/tfs: No such file or directory
    19. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Main process exited, code=exited, status=203/EXEC
    20. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Unit entered failed state.
    21. Nov 29 23:38:05 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Failed with result 'exit-code'.
    22. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Service hold-off time over, scheduling restart.
    23. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Stopped The Forgotten Server.
    24. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Started The Forgotten Server.
    25. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[2201]: tfs.service: Failed at step EXEC spawning /home/otsmanager/forgottenserver/build/tfs: No such file or directory
    26. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Main process exited, code=exited, status=203/EXEC
    27. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Unit entered failed state.
    28. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Failed with result 'exit-code'.
    29. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Service hold-off time over, scheduling restart.
    30. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Stopped The Forgotten Server.
    31. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Started The Forgotten Server.
    32. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[2203]: tfs.service: Failed at step EXEC spawning /home/otsmanager/forgottenserver/build/tfs: No such file or directory
    33. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Main process exited, code=exited, status=203/EXEC
    34. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Unit entered failed state.
    35. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Failed with result 'exit-code'.
    36. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Service hold-off time over, scheduling restart.
    37. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Stopped The Forgotten Server.
    38. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Start request repeated too quickly.
    39. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: Failed to start The Forgotten Server.
    40. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Unit entered failed state.
    41. Nov 29 23:38:06 b7ffcf8c-39c5-44a0-b21f-c831f718d957 systemd[1248]: tfs.service: Failed with result 'start-limit-hit'.
    Contents of the directory it's looking for the tfs file in:

    Code (Text):
    1.  
    2. $ ls -l /home/otsmanager/forgottenserver/build/
    3. total 20
    4. -rw-r--r-- 1 otsmanager otsmanager 12685 Nov 29 23:29 CMakeCache.txt
    5. drwxr-xr-x 4 otsmanager otsmanager  4096 Nov 29 23:29 CMakeFiles
    6.  
    Any suggestions? Please let me know if you need any more information.
     
  8. Don Daniello

    Don Daniello /root Staff Member Administrator

    Joined:
    Apr 11, 2008
    Messages:
    3,348
    Likes Received:
    655
    Best Answers:
    11
    @jesse.b The duedate command only works when you purchase hosting service from me, otherwise it will throw an error.

    It looks like the compilation step didn't work when you ran the playbook via Ansible and you don't have tfs compiled.
    Go into /home/otsmanager/forgottenserver/build/ and run make ..
     
  9. jesse.b

    jesse.b New Member

    Joined:
    Nov 30, 2018
    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Yeah it's failing on that step:

    Code (Text):
    1. TASK [Cmake forgottenserver source] ********************************************
    2. fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["cmake", ".."], "delta": "0:00:02.259513", "end": "2018-11-30 11:51:15.124128", "failed": true, "rc": 1, "start": "2018-11-30 11:51:12.864615", "stderr": "CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):\n  Could NOT find Crypto++ (missing: Crypto++_INCLUDE_DIR Crypto++_LIBRARIES)\nCall Stack (most recent call first):\n  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)\n  cmake/FindCrypto++.cmake:11 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)\n  CMakeLists.txt:24 (find_package)", "stdout": "-- The C compiler identification is GNU 5.4.0\n-- The CXX compiler identification is GNU 5.4.0\n-- Check for working C compiler: /usr/bin/cc\n-- Check for working C compiler: /usr/bin/cc -- works\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Detecting C compile features\n-- Detecting C compile features - done\n-- Check for working CXX compiler: /usr/bin/c++\n-- Check for working CXX compiler: /usr/bin/c++ -- works\n-- Detecting CXX compiler ABI info\n-- Detecting CXX compiler ABI info - done\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\n-- cotire 1.7.6 loaded.\n-- Performing Test COMPILER_KNOWS_CXX11\n-- Performing Test COMPILER_KNOWS_CXX11 - Success\n-- Performing Test COMPILER_KNOWS_STDLIB\n-- Performing Test COMPILER_KNOWS_STDLIB - Failed\n-- Performing Test COMPILER_KNOWS_LTO\n-- Performing Test COMPILER_KNOWS_LTO - Success\n-- Configuring incomplete, errors occurred!\nSee also \"/home/otsmanager/forgottenserver/build/CMakeFiles/CMakeOutput.log\".\nSee also \"/home/otsmanager/forgottenserver/build/CMakeFiles/CMakeError.log\".", "stdout_lines": ["-- The C compiler identification is GNU 5.4.0", "-- The CXX compiler identification is GNU 5.4.0", "-- Check for working C compiler: /usr/bin/cc", "-- Check for working C compiler: /usr/bin/cc -- works", "-- Detecting C compiler ABI info", "-- Detecting C compiler ABI info - done", "-- Detecting C compile features", "-- Detecting C compile features - done", "-- Check for working CXX compiler: /usr/bin/c++", "-- Check for working CXX compiler: /usr/bin/c++ -- works", "-- Detecting CXX compiler ABI info", "-- Detecting CXX compiler ABI info - done", "-- Detecting CXX compile features", "-- Detecting CXX compile features - done", "-- cotire 1.7.6 loaded.", "-- Performing Test COMPILER_KNOWS_CXX11", "-- Performing Test COMPILER_KNOWS_CXX11 - Success", "-- Performing Test COMPILER_KNOWS_STDLIB", "-- Performing Test COMPILER_KNOWS_STDLIB - Failed", "-- Performing Test COMPILER_KNOWS_LTO", "-- Performing Test COMPILER_KNOWS_LTO - Success", "-- Configuring incomplete, errors occurred!", "See also \"/home/otsmanager/forgottenserver/build/CMakeFiles/CMakeOutput.log\".", "See also \"/home/otsmanager/forgottenserver/build/CMakeFiles/CMakeError.log\"."], "warnings": []}
    3.  
    Trying to run manually:
    Code (Text):
    1. [email protected]:/home/otsmanager/forgottenserver/build$ sudo make
    2. make: *** No targets specified and no makefile found.  Stop.
    3.  
    Code (Text):
    1. [email protected]:/home/otsmanager/forgottenserver/build$ sudo cmake .
    2. -- cotire 1.7.6 loaded.
    3. CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
    4.   Could NOT find Crypto++ (missing: Crypto++_INCLUDE_DIR Crypto++_LIBRARIES)
    5. Call Stack (most recent call first):
    6.   /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
    7.   cmake/FindCrypto++.cmake:11 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
    8.   CMakeLists.txt:24 (find_package)
    9.  
    10.  
    11. -- Configuring incomplete, errors occurred!
    12. See also "/home/otsmanager/forgottenserver/build/CMakeFiles/CMakeOutput.log".
    13. See also "/home/otsmanager/forgottenserver/build/CMakeFiles/CMakeError.log".
    14.  
    CMakeOutput.log: Contents of CMakeOutput.log

    CMakeError.log:
    Code (Text):
    1. $ cat /home/otsmanager/forgottenserver/build/CMakeFiles/CMakeError.log
    2. Performing C++ SOURCE FILE Test COMPILER_KNOWS_STDLIB failed with the following output:
    3. Change Dir: /home/otsmanager/forgottenserver/build/CMakeFiles/CMakeTmp
    4.  
    5. Run Build Command:"/usr/bin/make" "cmTC_66554/fast"
    6. /usr/bin/make -f CMakeFiles/cmTC_66554.dir/build.make CMakeFiles/cmTC_66554.dir/build
    7. make[1]: Entering directory '/home/otsmanager/forgottenserver/build/CMakeFiles/CMakeTmp'
    8. Building CXX object CMakeFiles/cmTC_66554.dir/src.cxx.o
    9. /usr/bin/c++     -DCOMPILER_KNOWS_STDLIB   -stdlib=libc++ -o CMakeFiles/cmTC_66554.dir/src.cxx.o -c /home/otsmanager/forgottenserver/build/CMakeFiles/CMakeTmp/src.cxx
    10. c++: error: unrecognized command line option '-stdlib=libc++'
    11. CMakeFiles/cmTC_66554.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_66554.dir/src.cxx.o' failed
    12. make[1]: *** [CMakeFiles/cmTC_66554.dir/src.cxx.o] Error 1
    13. make[1]: Leaving directory '/home/otsmanager/forgottenserver/build/CMakeFiles/CMakeTmp'
    14. Makefile:126: recipe for target 'cmTC_66554/fast' failed
    15. make: *** [cmTC_66554/fast] Error 2
    16.  
    17. Source file was:
    18. int main() { return 0; }
    19.  
     
  10. jesse.b

    jesse.b New Member

    Joined:
    Nov 30, 2018
    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    I started with a fresh install and ensured to install Crypto++ before running ansibile and it seems to work now. I still get a failed to connect to bus error initially but I was able to solve that using:

    Code (Text):
    1. export XDG_RUNTIME_DIR=/run/user/`id -u`
    Which I saw you recommend earlier in the thread. I am using su - though but I will just add that line to otsmanager's bashrc.

    Thanks for the help!
     
  11. Don Daniello

    Don Daniello /root Staff Member Administrator

    Joined:
    Apr 11, 2008
    Messages:
    3,348
    Likes Received:
    655
    Best Answers:
    11
    @jesse.b I see now what it is. I've fixed the playbook.
    libcrypto++-dev package was missing.
     

Share This Page

Loading...