Follow

dragon.style update process thread 

Hello stylish dragons! It's update time. I will be working on this throughout today, and we may have some downtime.

Things have started off promisingly, I got 3.4.6 running on my Mac without any visits to dependency hell. Seriously sometimes I have to spend an annoying amount of time just getting the same code that's on the server up and running on my machine.

dragon.style update process thread 

oh hello progress bar to install XCode command line tools on this new machine, thanks for starting at 23h like you always do, very helpful

(it is currently at 4min and dropping, before going up to 20min, but I sure wish Apple would amend all their installing-shit-from-the-internet progress bars to at least say "* probably much less, we're still getting everything set up" in those cases)

anyway time to play with the cat I guess

dragon.style update process thread 

Figure 1: Shemp.

Who looks larger in person, these photos make him look a bit kittenish but he is actually a fine young man of about three years!

dragon.style update process thread 

ugh how do I make homebrew ditch all the old Intel binaries carried across from my old machine and recompile everything for ARM

dragon.style update process thread 

aha, think I found it: database.guide/fix-cannot-inst

"just reinstall homebrew", awesome, thanks for providing an elegant path for a migration you can expect 100% of your Apple users to be taking, homebrew guys *sigh*

.... hasn't worked yet, libffi seems to be my new nemesis, replacing charlock_holmes

anyway time for a break, I need to shower and get ready for a previously scheduled appointment

dragon.style update process thread 

Thinking of trying to stick my local dev instance into Docker. Have discovered that all guides for using Docker that existed back when the docs were on Github are completely gone from docs.joinmastodon.org. I shudder to imagine how many collective hours of dependency hell this choice has already created for new admins who just brought up 3.whatever, never mind how much dependency hell it will create in the future.

dragon.style update process thread 

Okay, I am back from my errand (and from grabbing a turnover at the 130-year-old wikinotable bakery a few blocks form my place) and I am watching my first attempt to get Docker running on my local dev copy of dragon.style. If this works then perhaps I will finally be done with dependency hell forever.

dragon.style update process thread 

Okay this feels like progress, I am watching three of the five processes that make up A Mastodon repeatedly restart themselves in the Docker app's window. I am pretty sure this is because the database is completely uninitialized. Now to find a copy of the Docker setup docs, since the Masto project, in their infinite wisdom, has completely removed any mention of Docker from the official docs site.

dragon.style update process thread 

@anthracite always appreciate the work you put into this place :dragnheart:

dragon.style update process thread 

@Zest

Thank you! Being a lazy-ass dragon I honestly try to put in the bare minimum, "being careful who I let in" and "keeping an eye on fediblock and blocking particularly egregious instances" is most of it.

dragon.style update process thread 

@anthracite you do enough to make this a comfy place! and lazy or not you deserve some gratitude

dragon.style update process thread 

@Zest

I WILL TAKE IT :)

dragon.style update process thread 

@arthurwyatt

VERY. He reminds you to do things like "pet cat" and "play with cat" and "get snack for cat", all of which are crucial to the cryptic and stressful task of "repeatedly typing cryptic shit into a command line and googling error messages".

dragon.style update process thread 

@anthracite @arthurwyatt

I wonder if my present lack of cat is behind my becoming less willing to put up with cryptic computer bs.... 🤔

dragon.style update process thread 

@anthracite

The update cat has advice it seems.

dragon.style update process thread 

@anthracite Cat! :dragn_owo:
*meows at your cat*

dragon.style update process thread 

@anthracite Oh my fucking god am I glad I went with managed hosting. Good luck!

dragon.style update process thread 

@john

It made sense back in 2017 and I still like that I can do some customizations not available to managed hosting, how the fuck do people manage with 500 character limits omfg.

dragon.style update process thread 

@anthracite Yeah, I mean, you've seen me complain about things here that I could change if I I self-hosted, but no way would it be worth it for me.

dragon.style update process thread 

@anthracite If you have a database dump from the existing system, you should be able to import them to the new one.

I'd need to see your docker-compose.yaml to see what's what in your setup.

dragon.style update process thread 

@anthracite If you are trying to do this off of the main branch, and didn't check out the tagged version, it can have...issues...as well. It may be worth a *gasp* call/chat after I have dinner to go over it and see if I can help since I've been running docker since day 1.

dragon.style update process thread 

@ksonney

WHAT IS VOICE OMFG

I've been running the one on the server in docker since forever, I'm just trying to cram the local copy on my Mac in there too now so I can leave Dependency Hell forever.

dragon.style update process thread 

@anthracite I don't know if this is useful, but this script keeps me from having to build shit over and over again.

gist.github.com/ksonney/2ff09a

dragon.style update process thread 

@ksonney

Oh that is interesting, yes. I am still using the same docker-compose that ships from Masto, last updated 5y ago and calling for postgres 9.6/redis6.0...

dragon.style update process thread 

@ksonney

(current status: containerizing my local dev copy of 3.4.6 in prep for upgrading to 4.0.2, probably glitch fork)

dragon.style update process thread 

@ksonney

Can you share the database section of your .env.production? With secrets/passwords scrubbed, obviously.

dragon.style update process thread 

@ksonney

hmm, never mind - I managed to finally guess at the right name for the database in .env.production and am now as far as "it runs but I can't connect" :)

WHICH IS PROGRESS ENOUGH TO KNOCK OFF AND PLAY VIDEO GAMES, thanks for trying to help!

dragon.style update process thread 

@anthracite there are some instructions for using containerized Postgres to upgrade the db files from 9->14, but I do not have them handy.

dragon.style update process thread 

@ksonney

I think this may be useful for the future once I get my local copy containerized!

dragon.style update process thread 

@anthracite any updates on this? ^^'

dragon.style update process thread 

@saphire

Not yet, might poke at it some more soon.

dragon.style update process thread 

@anthracite @saphire do you have the dragon style changes in a public repo? I wouldn't mind poking at it every once in a while to keep it up to date

dragon.style update process thread 

@anthracite I found that there’s a docker developer environment for vs code in at least the glitch soc repo and possibly the mainline repo and I’ve started using that so I don’t get stuck in dependency hell 🙃

dragon.style update process thread 

@catgoat

yeah one of these days I should probably figure out how to cram my five-year-old local dev copy into a docker container, maybe today's that day, maybe it isn't

re: dragon.style update process thread 

@anthracite i just started over from scratch with the source code I had because it was faster than fixing my local dev env 😬

re: dragon.style update process thread 

@catgoat

yeah part of why I hate upgrading is that I always spend hours bashing my head against dependency hell just getting the local copy up on the new version, it's maddening. Works fine on the remote copy, which *is* in a Docker container...

re: dragon.style update process thread 

@anthracite yeah, totally! i have the same problem. if you end up wanting to try it, lmk i can definitely help

re: dragon.style update process thread 

@catgoat

It looks like the path on OSX involves downloading an app from docker.com and figuring out how to point that to the Dockerfile lurking in the Mastodon directory, guess I know what I'm doing when I get back from going out to kick the Louisiana DMV into finally giving me an ID with an F on it. I have sworn at Homebrew's insistence on trying to use some library compiled for Intel instead of recompiling it for Apple Silicon too many times today! :ds_sweatdrop:

re: dragon.style update process thread 

@anthracite I can write up a little, too! If you use vscode and grab that app from docker.com, there’s a .devcontainer folder in the mastodon repository that has everything you need for a VS Code Dev container: github.com/mastodon/mastodon/t

dragon.style update process thread 

@anthracite

Thank you for your struggle!!!

dragon.style update process thread 

@anthracite

Thank you!!

Sign in to participate in the conversation
Dragon Style

I'm a grumpy queer dragon lady and this is my quiet cave for me and some friends.