Natcoso9955

Members
  • Posts

    87
  • Joined

  • Last visited

Everything posted by Natcoso9955

  1. This is actually what i just started doing, noticed that the files arnt actually showing on mnt/disk2 Latest stable release of unraid. Ill let you know how it goes with directly pointing to disk.
  2. Just wondering if this ever got fixed? I seem to be having the same sort of issue. I have my gaming_appdata on a separate drive as a share, so gaming_appdata = /mnt/disk2 see below my config: ... docker just keeps crashing and auto restarting. Log attached. (apologize that its RAW) 514cbc197115266e4927c2d722c113d7a3bb8debdf4c3b57022b6175b6b39183-json.log
  3. any got this working in a vm connection setup in guacamole?
  4. I don't know for certain but I'm going to guess that possibly the issue is that the script can't execute: MEMFREE=$(cat /proc/meminfo | grep MemFree | awk '{print $2}') So when it does the memory check it fails. I'll clone this and test it later tonight.
  5. Hey guys, Im looking to create some dockers but im running into some issues. a) ive never really used docker and still trying to get my head around it. b) I want to clone an official dockerhub image and make an unraid version (need to be able to set some variables etc) on the 2nd point, ive managed to figure out that i can convert the container into an image and then using portainer "upload" the image to my dockerhub repo, however it seems to want a dockerfile present. This is where i run into point "a)" where i dont really know what to do. Using portainer ive bashed around and can see the layers the image has, etc etc, but dont understand how to convert this. If someone knows of a good resource that can help would be great. Here is some background Im trying to create unraid CA versions of Grafana/loki & Grafana/Promtail & Grafana/Loki-canary The problem is: Loki: hard codes where the config file loads from as part of the run/start command in the image (if you dont want to change anything, not critical) Promtail: hard codes where the config file loads from same as above, however this file needs to be edited, also cant configure where to store additional config files properly Loki-Canary: needs to be started with additional switches which cant be set in container (or i cant figure out how to)
  6. Docker: Grafana Loki Documentation can be found here: https://github.com/grafana/loki Docker: Grafana Loki - Promtail Documentation can be found here: https://github.com/grafana/loki/tree/v1.5.0/docs/clients/promtail
  7. Just wondering if you could pre-generate and put the code in a template variable to get around it.
  8. You can enter the steamGuard code into the console of steamcmd, but i dont know how you would incorporate that into the docker container. killing floor has the same thing.
  9. @ich777 I think the issue with tshock is that it's not downloading the prerelease versions which are required for the updated terraria version. Really want to help with this one, so if you don't have the game and need it to test, I'll shout you a copy of it.
  10. Hey @Squid, Love all the work you do, i had a question around the Appdata backup and restore. I have my game server appdata in a separate appdata share since they take up lots more room generally and so i have them on a separate disk. I also would like to back these up more frequently. So my question is, is it possible to allow 2 separate backup plans?
  11. I can probably export the docker template for you. (portainer is great for this) for the always loading, i dont know what the fix is for that. The issue i has was that the initial call to start the program was called with a timeout of 60 seconds, for some reason even though my system runs at only 20% usage max on everything 60 seconds was not long enough for it to build all the tables. if you are missing even 1 table, it looks like its all running but when you try and login with steam, it returns and gives a 502 error. This error was basically a timeout packet was received. The timeout being called by CSMM. Long story short the logs basically pointed to not being able to find tables, which then i fixed by manually running the command with a 5min timeout. (also had tried merging db files which was working, but i always was still missing 1-2 tables.) I'd love to help in anyway i can to get this working for the community.
  12. I ended up getting it working just had to manually run the initial command that creates database. After the database was all there proxy manager was simple. Did you have the issue of it always saying loading on main screen? Mine does, but only on list. I can still fully interact with the server.
  13. I deleted all the files (except the world, and tshock folder) your script does a check for the terraria files, because it wasn't there but the zip was it extracts the zip. Even the zip from terraria website gave me the version mismatch error. (In game when trying to join from client) I am contemplating using the same zip but the windows version on my PC and seeing if I still get error if so, then I think it's a terraria issue. Will keep you posted.
  14. Not sure if this is the issue: Looks like the link was updated, but i dont know if its got extra bits. Im going to try and install manually (place zip in root and see what happens.) Same issue,
  15. OH, hahaha (thats embarrassing. lol) Im guessing the terraria-1404 is the file you where looking for. Also id be willing to help pay for some of these games. (if im needing help getting it working, for instance, Terraria is only $15)
  16. Hmm, short of blowing the app away and pulling again, when i clear appdata and restart with 1.4.0.4 as version. It says it downloads that version, but then after generating world says its an older version. (See attachment) Ill have a play tonight and see what the template is doing. masterLog.0
  17. So i literally had this error 5 hours ago, all i did to fix was rename appdata, recreate and working now. So i can get the server to boot, however when i try and connect says its a different version. client is 1.4.0.4, thats what i put in docker..... any way to 100% check? Thanks ich777
  18. I assume this is what your getting?? ------------------------------------------------------------------------------------ ---------------------------------W A R N I N G-------------------------------------- ---The variable Prefered Version doesn't work anymore for Version 1.4.0.2 and up---- ---The conatainer will always pull the latest version if set to 1.4.0.2 or higher--- ------------------------------------------------------------------------------------ ---Version Check--- ---Terraria Version up-to-date--- ---Version Check of TShock Mod--- ---TShock Mod Version up-to-date--- ---Prepare Server--- ---Server ready--- ---Checking for old logs--- ---Start Server--- at Terraria.RecipeGroup..ctor (System.Func`1[TResult] getName, System.Int32[] validItems) [0x0000d] in <00f37d15da2a4e5eba21c9d37c478226>:0 at Terraria.Recipe.SetupRecipeGroups () [0x00009] in <00f37d15da2a4e5eba21c9d37c478226>:0 at Terraria.Recipe.SetupRecipes () [0x00004] in <00f37d15da2a4e5eba21c9d37c478226>:0 at Terraria.Main.Initialize_AlmostEverything () [0x001b1] in <00f37d15da2a4e5eba21c9d37c478226>:0 at Terraria.Main.Initialize () [0x00136] in <00f37d15da2a4e5eba21c9d37c478226>:0 at Terraria.Main.DedServ () [0x0005c] in <00f37d15da2a4e5eba21c9d37c478226>:0 at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x000ac] in <00f37d15da2a4e5eba21c9d37c478226>:0 Please send crashlog.txt to [email protected] Terminated [?1l>[39;49m
  19. I mean you literally just need to replace one bit of code to be a variable and add the variable to docker template. done. Oh and include a note that if people have issues, check the prod.log and if it says missing table, increase timeout, delete 7dtd.sql file and restart container. I hope you do end up making the change, this is so useful for remote management. (then again it may only be me having this issue but i dont know why, my system is super over spec'd)
  20. I can confirm that unless your timeout 60 nodejs .../app.js command completes in the given time the database doesnt end up with all the tables. If you are missing even 1 entry you cannot sign in, and csmm timesout and that is what was causing my 502 error. (Not the proxy) @ich777 I'd suggest modifying you start-server.sh file to have a longer timeout, or update the container so it can be set as a variable.
  21. So after reloading the docker numerous times and cloning the sql file, i then imported them manually and exported them manually, i have most of the tables. I think manually running the nodejs app.js command with a larger timeout helped, but its not perfect. If im right, im going to suggest that you increase the timeout in your start-server.sh file. Confirming now.
  22. Your not understanding. This issue has nothing to do with proxy. The database is incomplete and as such the command gets dropped by csmm. can you do me a favour, upload you 7dtd.sql file located in data_dir/Database. dont worry it doesnt actually contain you data, just how the database tables are configured. I think the issue may be with CSMM, but thats coming from the call: echo "---Checking if Databse is present---" if [ -f ${DATA_DIR}/Database/7dtd.sql ]; then echo "---Database found, injecting, please wait---" mysql -u "csmm" -p"csmm7dtd" 7dtd < ${DATA_DIR}/Database/7dtd.sql export NODE_ENV=production else echo "--------------------------------------------------------------" echo "---Please wait initializing CSMM this will take ~60 seconds---" echo "-------the CSMM will restart automatically after that it------" echo "--------------------------------------------------------------" sleep 5 cd ${DATA_DIR}/CSMM timeout 60 nodejs ${DATA_DIR}/CSMM/app.js export NODE_ENV=production fi This. This is not exporting correctly to the 7dtd.sql file, everytime i delete and restart the container, it recreates and has different missing tables.
  23. Okay, so after removing mariaDB docker (and appdata) and CSMM (and appdata), absolute brand new grab seems to be working, well working in that i can atleast get to the webpage. I decided to do some digging, in the logs to see whats going on, im still not sure if its an nginx problem or not. I opened the nginx file to see how the code looked backend, and reverse proxy now set to include the location "/" with extra settings. (this may have been what fixed the webpage) Stilling getting error, and nginx log suggests its a timeout somewhere: 2020/05/22 13:27:06 [error] 5821#5821: *200 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.1, server: csmm.xg-gaming.duckdns.org, request: "GET /auth/steam/return?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Flogin&openid.claimed_id=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198024157322&openid.identity=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198024157322&openid.return_to=http%3A%2F%2Fcsmm.xg-gaming.duckdns.org%2Fauth%2Fsteam%2Freturn&openid.response_nonce=2020-05-22T03%3A55%3A06ZuqnNtHZGyjwcvL5Kz8P9ietu634%3D&openid.assoc_handle=1234567890&openid.signed=signed%2Cop_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle&openid.sig=WNR0DE%2FhzbHBxNNdcFbOdlwasXw%3D HTTP/1.1", upstream: "http://192.168.1.129:1337/auth/steam/return?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Flogin&openid.claimed_id=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198024157322&openid.identity=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198024157322&openid.return_to=http%3A%2F%2Fcsmm.xg-gaming.duckdns.org%2Fauth%2Fsteam%2Freturn&openid.response_nonce=2020-05-22T03%3A55%3A06ZuqnNtHZGyjwcvL5Kz8P9ietu634%3D&openid.assoc_handle=1234567890&openid.signed=signed%2Cop_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle&openid.sig=WNR0DE%2FhzbHBxNNdcFbOdlwasXw%3D", host: "csmm.xg-gaming.duckdns.org" Which lines up with the individual proxy log [22/May/2020:13:21:04 +0930] - 304 304 - GET http csmm.xg-gaming.duckdns.org "/" [Client 192.168.1.1] [Length 0] [Gzip -] [Sent-to 192.168.1.129] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-" [22/May/2020:13:21:06 +0930] - 500 500 - GET http csmm.xg-gaming.duckdns.org "/api/stats" [Client 192.168.1.1] [Length 21] [Gzip -] [Sent-to 192.168.1.129] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "http://csmm.xg-gaming.duckdns.org/" [22/May/2020:13:21:10 +0930] - 304 304 - GET http csmm.xg-gaming.duckdns.org "/" [Client 192.168.1.1] [Length 0] [Gzip -] [Sent-to 192.168.1.129] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "http://csmm.xg-gaming.duckdns.org/" [22/May/2020:13:21:10 +0930] - 101 101 - GET http csmm.xg-gaming.duckdns.org "/socket.io/?__sails_io_sdk_version=1.1.13&__sails_io_sdk_platform=browser&__sails_io_sdk_language=javascript&EIO=3&transport=websocket" [Client 192.168.1.1] [Length 96] [Gzip -] [Sent-to 192.168.1.129] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-" [22/May/2020:13:21:11 +0930] - 500 500 - GET http csmm.xg-gaming.duckdns.org "/api/stats" [Client 192.168.1.1] [Length 21] [Gzip -] [Sent-to 192.168.1.129] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "http://csmm.xg-gaming.duckdns.org/" [22/May/2020:13:24:58 +0930] - 302 302 - GET http csmm.xg-gaming.duckdns.org "/auth/steam" [Client 192.168.1.1] [Length 0] [Gzip -] [Sent-to 192.168.1.129] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "http://csmm.xg-gaming.duckdns.org/" [22/May/2020:13:24:59 +0930] - 101 101 - GET http csmm.xg-gaming.duckdns.org "/socket.io/?__sails_io_sdk_version=1.1.13&__sails_io_sdk_platform=browser&__sails_io_sdk_language=javascript&EIO=3&transport=websocket" [Client 192.168.1.1] [Length 120] [Gzip -] [Sent-to 192.168.1.129] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-" [22/May/2020:13:27:06 +0930] - 502 502 - GET http csmm.xg-gaming.duckdns.org "/auth/steam/return?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Flogin&openid.claimed_id=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198024157322&openid.identity=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198024157322&openid.return_to=http%3A%2F%2Fcsmm.xg-gaming.duckdns.org%2Fauth%2Fsteam%2Freturn&openid.response_nonce=2020-05-22T03%3A55%3A06ZuqnNtHZGyjwcvL5Kz8P9ietu634%3D&openid.assoc_handle=1234567890&openid.signed=signed%2Cop_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle&openid.sig=WNR0DE%2FhzbHBxNNdcFbOdlwasXw%3D" [Client 192.168.1.1] [Length 568] [Gzip -] [Sent-to 192.168.1.129] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-" So looking in CSMM log, im 99% sure issue is with database. @ich777 should i be able to access db outside of the docker? ie using adminer docker? Because i dont seem to be able to. 2020-05-22T04:47:45.130Z - warn: Error during steam auth! 2020-05-22T04:47:45.130Z - error: message=Unexpected error from database adapter: ER_NO_SUCH_TABLE: Table '7dtd.user' doesn't exist, name=AdapterError, name=AdapterError, adapterMethodName=find, modelIdentity=user, code=ER_NO_SUCH_TABLE, errno=1146, sqlMessage=Table '7dtd.user' doesn't exist, sqlState=42S02, index=0, sql=select `createdAt`, `updatedAt`, `id`, `steamId`, `discordId`, `username`, `avatar`, `admin`, `banned` from `user` where `steamId` = '76561198024157322' limit 2, isOperational=true, stack=AdapterError: Unexpected error from database adapter: ER_NO_SUCH_TABLE: Table '7dtd.user' doesn't exist at Deferred._.extend._WLModel [as _handleExec] (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/methods/find-or-create.js:220:15) at Deferred.exec (/csmm-7dtd/CSMM/node_modules/parley/lib/private/Deferred.js:286:10) at Deferred.tryCatcher (/csmm-7dtd/CSMM/node_modules/bluebird/js/release/util.js:11:23) at ret (eval at makeNodePromisifiedEval (/csmm-7dtd/CSMM/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:14:23) at Deferred.toPromise (/csmm-7dtd/CSMM/node_modules/parley/lib/private/Deferred.js:572:19) at Deferred.then (/csmm-7dtd/CSMM/node_modules/parley/lib/private/Deferred.js:431:22) at process._tickCallback (internal/process/next_tick.js:68:7), adapterMethodName=find, modelIdentity=user, $ref=$["cause"]["raw"] I have connected via the console and can see that the database is missing all the tables that it failed to inject. So the issue is with CSMM and how it tries to put data into the database. MariaDB [7dtd]> use 7dtd; Database changed MariaDB [7dtd]> show tables; +---------------------------+ | Tables_in_7dtd | +---------------------------+ | analytics | | banentry | | commandreply | | countryban | | cronjob | | customcommand | | customcommandargument | | customdiscordnotification | | customhook | | gblcomment | | gimmeitem | | historicalinfo | | hookvariable | | player | | playerclaimitem | | playerteleport | | playerusedcommand | | playerusedgimme | | role | | sdtdconfig | | sdtdserver | +---------------------------+ 21 rows in set (0.000 sec) So I decided to look through the start.sh, which pointed to start-server.sh Looking in here, i found the command to insert data into the database. (modified with full folder path below) mysql -u "csmm" -p"csmm7dtd" 7dtd < csmm-7dtd/Database/7dtd.sql When you run this manually you get an error. ERROR 1064 (42000) at line 389: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CHARS' at line 13 So i decided to rename the 7dtd.sql file and let it recreate. However this time it is missing player and some other tables. I think the timeout needs to be changed in the start-server.sh script, and/or how its set, as per below its using depreciated code. (node:248) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead. (node:248) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead. Im going to assume that if it times out creating all the tables in DB then it doesnt work.
  24. I wasnt trying with an external, i have MariaDB setup for a completely different docker. Also im fairly sure something is not being removed properly as now a fresh install fails to load the webpage completely. Plan for today is to completely strip mariadb from unraid, and clear appdata, and try and manually go through your docker steps. As you said, hopefully Spectral can eventually comment, It would be good to have step by step guides created (happy to help) for this dockers that are not so straight forward.
  25. Okay so i think i found the issue, just testing it now. So in the docker container it asks for a mariadb port, by default this is 3306, however i had a mariadb already running on that port so i changed the container setting to 3307. However looking csmm log its still trying to go to 3306. { host: 'localhost', port: 3306, schema: true, adapter: 'sails-mysql', url: 'mysql2://csmm:[email protected]:3306/7dtd', identity: 'default' } } } I am now swapping existing instance to 3307, and leaving csmm on 3306 and seeing what happens, however is this possibly a bug in the container config? Okay i dont think it made any difference attached is what im seeing in the log after a fresh install including clearing the appdata. honestly cant understand why this is not working. NOTE: after this first boot, the log never has this info, but always has: ---Checking if UID: 99 matches user--- usermod: no changes ---Checking if GID: 100 matches user--- usermod: no changes ---Setting umask to 000--- ---Checking for optional scripts--- ---No optional script found, continuing--- ---Starting...--- ---Starting MariaDB...--- ---Starting Redis Server--- ---Checking if CSMM is installed--- ---CSMM found--- ---Prepare Server--- ---Configuring Redis--- OK OK Background saving started ---Checking for old logs--- ---Configuring CSMM--- ---Checking if Databse is present--- ---Database found, injecting, please wait--- csmm.log