(DM) Jason NY & Jake AR
RocketChat ID: 6AZpoAX3J8Pbm3aNrknQHoBXHDucDnvidj
283 total messages. Viewing 100 per page.
Prev |
Page 2/3
| Next
i didnt remove the ones not downloadable from the list, so just a minor error and wait
mongo shell is confusing and sucks
but I just spent a few hours figuring out how to work it
so I might be able to fix schema errors that arise
cool
that will come in handy
I am updating script so it will work simply whenever we want to update without us having to do resrarch on versions
excellent, how is the updating process going?
it was working, but it kept hitting versions it could not download, so I wanted to have it auto skip them
gotcha
so far so good
Oh damn
takes about 1:15 per version to update
I just started it again a bit ago, it hasnt been going that slow
Awesome I thought this'd be way more of a headache
Glad the script didn't have to be super complicated
<br>#!/bin/bash<br><br>#CONFIG<br>#set max version to reach to for each component<br>#a.b.c (3.5.2)<br>maxA=99<br>maxB=30<br>maxC=9<br><br><br><br>#https://hub.docker.com/r/rocketchat/rocket.chat/tags<br><br><br>cd /home/andrewj<br>currentVersion="`grep -oP '(?<=rocket.chat:)\d.\d.\d' /home/andrewj/docker-compose.yml`"<br>versionParts=(${currentVersion//./ })<br>a=${versionParts[0]}<br>b=${versionParts[1]}<br>c=${versionParts[2]}<br>v="$a.$b.$c"<br><br>echo "Current Version: $v"<br>sleep 5<br><br>function docker_tag_exists() {<br> curl --silent -f -lSL https://index.docker.io/v1/repositories/$1/tags/$2 > /dev/null<br>}<br><br>while true<br>do<br> let c=$(($c + 1))<br> if (("$c" > "$maxC"))<br> then<br> let c=0<br> let b=$(($b + 1))<br> if (("$b" > "$maxB"))<br> then<br> let b=0<br> let a=$(($a + 1))<br> if (("$a" > "$maxA"))<br> then<br> exit 0<br> fi<br> fi<br> fi<br> v="$a.$b.$c"<br> <br> if docker_tag_exists rocket.chat $v; then<br> #update compose file with next version<br> sed -i "s/rocket.chat:$currentVersion/rocket.chat:$v/g" /home/andrewj/docker-compose.yml<br> currentVersion=$v<br> #stop container and remove and recreate (will pull version defined in compose)<br> docker-compose rm -f -s rocketchat<br> docker-compose up -d rocketchat<br> echo "Waiting for RC to boot up (45 seconds)"<br> sleep 45<br> else <br> echo "$v not available"<br> fi<br>done<br>
lol well it is simple now
it just iterates through every possible version and skips if it doesnt find the image
Based
Banged out what vincent tx thought would be a 1 week project in a few hours
PF pajeet team #1 in the world
lol we pajeets baby
bash script cant make me poo in loo
its nice because now we just run it whenever since it auto detects current version and everything. We just need to find the what the IP is for the docker image hosting server so we can allow it through the firewall
shouldn't be too hard to do that
looks like 3.224.144.203
unless its multiple IPs
might be a cdn
yea
worst case is we turn off outgoing connections during the update, which will sparingly
Ye no big deal
after it finished updating, then I will create a checklist of things to verify work that we can check each time we do updates
Okay, I know what the problems were last time we tried to update and it broke the schema
will check for any of those
so now I have the issue I ran out of space on the VM
i need to find where the rocketchat images are being saved so I can purge the old ones
You can use du command to find it
du -cha --max-depth=1
or in / directory
du -aBM -d 1 . | sort -nr | head -20
trying that now
Also the update broke it once it hit doubledigits 3.10.0
it was dowloading them but not updating the docker compose file
broke schema or broke script?
so some schema may not have updated, but worst case we just need to resart the snapshot and do it again, I fixed the script
i dont know what version it left off of, so it may have skipped some
I will have a look for schema issues
so what do I do from here
du -sh /var/*/
okay so search each largest folder
Ya
stuff is starting to look weird
okay one sec, checking it out now
UI changes
will have to fix CSS
not too bad tho
I'm not seeing any issues w/ the db schema
css issues, ya
cool
so how do you know schema is good?
Last time certain tabs in admin panel didn't open properly, threw red error at top of screen
and also I checked if db queries worked as expected and they did
generally not seeing anything that isn't working as expected
Michael TX might know more about what schema issues arise w/ bad update
also, in "View Logs" section of admin panel there's no errors being thrown
I sent "hello world" and it was logged correctly
okay cool
so this is working, just ran out of space and also a small bug in script
Okay. Are we going to have to do this process all over again or is Thomas cool w/ losing everything that was sent to database since the clone was made?
<br>
Actually I'll just assume we will have to restart this process because I'm sure Thomas will also want to give input with sorting out the css
that cleans it I think
cleans the images?
yea
Epic
I think we will do this all over again since I will have to go through CSS and fix stuff and hide/disable new features
Ye figured, at least we have the script now
yea, If we do overnight and already have the CSS fixes, then it should just run and take a couple hours
also I will have to test all custom scripts to make sure they are working too
Right
We'll want to have Thomas make a clone of vetting and do them both at the same time
we can do one at a time
but yea, should be straight forward to do vetting. Same issues between both
:thumbsup:
just incase there is stuff we missed, I just wanna do one at a time
pruned 30gb, nice
back in business, off to 3.12.3
prunes right after RC starts up again, so we wont run out of space, each version takes up 800mb
Awesome. The arrows and message identifier scripts are broken but the in-built debugger in firefox should make that very easy to fix.
yea, I bet element names changes
Correct
getElementByClassName is undefined
yea, something to do tomorrow lol
pajeet running out of curry to burn
I like to think we have a good operation here. I can't imagine anyone accurately estimating the infrastructure we have here. Solid team
Madam... Madam... MAAM! GO TO BEST BUY GET GOOGLE PLAY CARD OR I DONT FIX ROCKET CHAT! DO IT NOW!
LMAO
283 total messages. Viewing 100 per page.
Prev |
Page 2/3
| Next