Une Goupelin Autiste utilise witches.town. Vous pouvez læ suivre et interagir si vous possédez un compte quelque part dans le "fediverse".

HEY

I'm remaking witches.academy, and I'm stuck at bundle exec rake secret.

It's super not working and I'm stuck >.>

My error says package configuration for protobuf is not found

Also, this keeps popping up?

An error occurred while installing cld3 (3.1.2), and Bundler cannot
continue.
Make sure that `gem install cld3 -v '3.1.2'` succeeds before bundling.

@sendoshin Apparently I could just do a native install in Digital Ocean and my account is still good so I did it there.

Currently working from this: anystack.xyz/how-to-install-ma

@spiderrobotpig Yeah, it was added as a dependency when language detection was upgraded a few versions back. Took me a while to figure everything out to make that work properly so that Nanobox could handle it automatically.

So the first step is you have to actually install protobuf using the system package manager. Assuming Ubuntu, `sudo apt-get install protobuf-compiler` should pull in everything you need.

@sendoshin It says that package config isn't found, but that the package is installed.

Bluh I forget how frustrating this can get >.<

@spiderrobotpig Yeah, it's pretty much a nightmare managing Ruby dependencies, especially if there are any binaries involved.

So, basically it's trying to build its own version of a library called CLD3, which is the language detection library used in Chrome. It has to build its own because the normal version depends on Chrome itself, and that's just way too much for most uses.

But. It needs help to find the other things it still depends on...

@sendoshin Makes sense. No idea how to fix it though?

Because I've installed the package and the dependencies both with root and the mastodon user and for some reason bundle install can't find them

@spiderrobotpig It's honestly been nearly two months since I tackled this myself, so ... I'm trying to remember all the details... Sorry for the delays.

@sendoshin No worries. I appreciate the help.

If it's too much I'm sure I can figure it out at some point

@spiderrobotpig So, for some reason it's having trouble finding one of the libraries it needs. I'm trying to remember which ones it depends on, other than protobuf. Because there was at least one it didn't actually have a way to detect and warn about in the build process itself...

I wanna say it's zlib? `sudo apt-get install zlib1g`? I mean, that's usually already installed, but I guess you never know...

@sendoshin Yeah it's already there.

Bluuuuuuuuuuh

I guess I'll just wait until I can get $10 up and use nanobox this is bullshit

@spiderrobotpig I can zap you the $10 if you like... I think you get like 20 days free, though, so ... up to you.

@sendoshin Oh yeah, you're right.

KK I'm gonna do that how awful is this gonna be?

@spiderrobotpig Not awful at all, in my experience. I documented the process in the official docs, but I have a much more detailed walkthrough on the Nanobox blog that I highly recommend, especially for the bits about managing it once it's up.

@sendoshin Oh god this looks so much more complicated >^<

@spiderrobotpig Skip the bit about what I did to make it work. It's a lot less intimidating than you think.

@spiderrobotpig Ah, whoops. You can just re-use those values from when you set it up the first time. You'll want to import your database contents anyway, if they're still around, so there will be an extra step or two not in that doc.

Alternately, if you're starting over from nothing completely, you can just clone the Mastodon repo on your computer and run it in that directory. All Nanobox commands are meant to be run in the root folder of your project.

@spiderrobotpig Sorry. The values you're setting in the dashboard are the same values you would have set in the .env file manually. So you can take the values from your existing .env file on DO and just use them, here.

@sendoshin I honestly have no idea what you're asking me to do now tbh

Like, I don't understand how this is supposed to work at all apparently.

@spiderrobotpig Hrm. How to reword...

So, you already have a Mastodon instance running on DO, right?

@sendoshin No, that's the problem. I can't get it running because that awful fucking update

@spiderrobotpig OK, not running, then. Installed? It sounded like it was at least running at one point...

@sendoshin It was at some point, but it's not now. The droplet got deleted

@spiderrobotpig Ah. OK. So you have to regenerate the secrets. Gotcha.

In that case. What OS are you running on your computer?

Une Goupelin Autiste @spiderrobotpig

@sendoshin A little bit? I'm using the app at the moment, and I have a program where I can SSH into the droplets

@spiderrobotpig OK, cool. We don't need to access the droplets at all, really.

So we're gonna need to clone the Mastodon repo from GitHub onto your computer. Not sure which app you use for that, but it should work fine with github.com/tootsuite/mastodon as the origin URL.

@sendoshin Oki. Copying over the variables from the old .env.production at the moment

@sendoshin But I still don't understand where I'm supposed to be running these things. Because I can't get bundle install to work on the droplet

@sendoshin And it still won't let me generate a SSL certificate

@spiderrobotpig Right. You won't interact with the droplet directly at all. Nanobox will do that for you.

@sendoshin OKay, but I need to generate the secrets and you said there's something else I need to run?

git checkout $(git tag | tail -n 1)

@sendoshin Like there's a bunch of code here and I have NO idea what to so with it

@spiderrobotpig OK, so in a command prompt (or Powershell, whichever you're more comfortable with), cd to the directory with your Mastodon repo in it.

@spiderrobotpig Nah, you already generated the secrets. I need to update that article for migrating from other places.

As to that git command, it just makes sure you're using the latest tagged version. You've probably done that manually already.

@sendoshin I didn't generate the secrets though, remember? That was the whole reason I tagged you in

@sendoshin The secrets wouldn't generate because bundle install won't work cos that bullshit update

@spiderrobotpig Right, but you copied the old ones from your old .env.production, and they should work just fine.

@sendoshin No I didn't have them there. That was the one I was working on

@spiderrobotpig Ah. Well, then, we can generate them next. You'll need to be in the command prompt I mentioned earlier far that, too.

@sendoshin Trying.

Powershell isn't letting me change directory I swear to fucking god right now

@sendoshin Managed it in CMD.

Okay, thanks again for all of this. What do I do next?

@spiderrobotpig Oh, sorry, I was trying to update the article a bit as we went along.

If you have Nanobox installed, you should be able to run that command to generate the secrets right from there.

@sendoshin From where? I don't know what you mean when you say that

@sendoshin I've already deleted my nanobox account I am literally nonverbal and hurting myself out of rage

@sendoshin It's not your fault I'm just like seething in rage with all of this because something like this happens everytime but at least I could figure it out before

@spiderrobotpig Which is why it would have been `nanobox run bundle exec (etc)` instead...

@sendoshin Bluh >.<

I'm so close to crying at this point.

@sendoshin It's fine. Do you think I should try it again now that I know that?

@sendoshin Because before it was literally just me smashing things together trying to make them work when I knew nothing about them

@spiderrobotpig Up to you. I really need to pay a lot more attention to Masto while you do, if you do, though, because delays in support aren't very supportive...

@sendoshin It's okay, it's not like I'm paying you tbh

I'll try it again and see if I can figure this out

@sendoshin OKay, so what specifically am I supposed to do here? CD to masto and then run that command to get the needed information?

@spiderrobotpig Yeah, that should do it. You'll have to run it three times to get all three values, but the second and third times will be TONS faster.

The first time is when Nanobox runs `bundle install` and so forth for you.

@sendoshin OKay, it looks like it's doing something at least.

Gonna go smoke while it starts and see if I can get verbal again. Thanks again for this

@spiderrobotpig Of course. I'm sorry it's been such a pain! The Nanobox process is usually much simpler than the others, so the trouble we've had this time is annoying and makes me sad.

@sendoshin OKay, it's on building bridge right now, so I spose I just wait?

@sendoshin I think the latest? When I try to update it says I'm updated

@spiderrobotpig Very odd. The latest Mastodon definitely has that. How about one called Gemfile ?

@spiderrobotpig Huh. Yeah, the boxfile.yml should be in the exact same folder with it.

Do you know what URL it's updating from?

@sendoshin I can't see that, but I know it's updating from the master branch of the toosuite/mastodon one

@sendoshin Also apparently they're not going to be able to fix the issue with the SSL thing until tomorrow so that's awesome

@spiderrobotpig Yeah, their coders aren't in today. We live in a very Mormon area, so Sundays are very off limits for working. I'm amazed you were able to chat with the CEO via the site's support chat, tbph.

@spiderrobotpig Yeah, he's a cool dude. Bit too technical to really help much with non-dev users, but he cares a ton, and tries his best. He's the one who invited me to use Nanobox back when it was a private beta, actually.

Still Mormon, but pretty cool otherwise.

@spiderrobotpig (Apparently I'm getting creds to hop on that live chat, myself, sometime tomorrow as well? Which is weird, since I don't actually work for them, but I do tons of support stuff for them in Slack already, so... 🤷🏻 )

@spiderrobotpig Oh, good. I don't have to beat down Gargamel's door to get it put back in. 😁

@sendoshin I have never been so enraged at someone I hardly know tbph

@spiderrobotpig Had to open the conversation stream to see which person you meant. 😄

@sendoshin Yeah haha

Also if you talk to whoever I was talking with or w/e sorry I was kinda bitchy >.> I didn't mean to be but yeah, breakdowns aren't fun for anyway.

@spiderrobotpig It's all good. I already smoothed that one over. And really, he mostly just seemed disappointed he couldn't help.

@sendoshin That's good at least. I don't like being rude to people, especially cos I'm usually the one on the other side of it but bluh. I feel like I could have handled it better, but I was better than Ive seen myself be

@spiderrobotpig I know the feel.

Weird how we actually see ourselves doing shit we dislike having done, rather than see the memory through our own eyes. If that makes any sense.

@spiderrobotpig Is it working better this time?

Please be able to say yes!
Please be able to say yes!
Please be able to say yes!

@sendoshin I mean, it's installing stuff, so maybe? Like, it hasn't crashed yet, but also I still don't have any keys

@sendoshin Also, am I even going to be able to test the site if I don't have https capabilities?

@spiderrobotpig Yeah. Just set LOCAL_HTTPS to false in the environment. Same place you'll set the keys once it gets done installing everything so it can generate them.

@spiderrobotpig You'll want to wait to do anything that would cause federation until you get the certs installed and remove that variable (and redeploy the app so it actually picks up on that change), but you can test everything else without SSL.

@sendoshin Error : failed to execute hook (build) on 1919bacd527efa27b9ac747b581fdb2395cda6e3fe29b4f9b1ece1402ba97340: util:Exec:/opt/nanobox/hooks/build: bad exit code(1):
Context : failed to build the code

Bluuuuuuuuuuuuuuh

@sendoshin So it's not building in nanobox either apparently yay

@spiderrobotpig Which is a serious problem that I want to fix, for you and for everyone. Because not building is bullshit.

@sendoshin

Oh hey, our friend showed up faster this time Error : failed to execute hook (setup) on 9fb0caaf0dc1e65c442151eecebda4673b0d7f45243f956d901a03866301f337: util:Exec:/opt/nanobox/hooks/setup: bad exit code(1):
Context : failed to build the code

@spiderrobotpig Huh. Well, that's good, at least.

The actual error should be a bit further up the output.

@sendoshin Connection timed out is the only other thing I see

@sendoshin downloading packages...
libffi-3.2.1nb2.tgz 100% 54KB 53.7KB/s 53.7KB/s 00:00
libelf-0.8.13nb1.tgz 100% 95KB 94.6KB/s 94.6KB/s 00:00
pciids-20150907.tgz 100% 233KB 232.6KB/s 232.6KB/s 00:01
libpaper-1.1.24.tgz 100% 25KB 24.8KB/s 24.8KB/s 00:01
pkgin: pkgsrc.nanobox.io/nanobox/base: Connection timed out

@sendoshin Ran it again and it got past that part, so I guess I'll just wait again

@spiderrobotpig Oh. Damn. Yeah, they really need to get a CDN in front of that. I'll remind them to boost the priority on that tomorrow.

@sendoshin Sounds good. It does seem to be doing stuff again so I'll just wait and see what happens

@sendoshin Might be stuck here?

- Running bundle install :
bash: bundle: command not found

- Cleaning bundle :
bash: bundle: command not found

- After build hook 1 :
$ envsubst < .env.nanobox > .env

- After build hook 2 :
$ gem install bundler

@sendoshin There's no indicator, but that might be normal

@sendoshin Oh I think it's working. I didn't get an error on bundle and now it's doing yarn

@spiderrobotpig Ah, I spoke too soon. The real install phase is done by the time you get to yarn (an NPM replacement that's like a 100Mbps connection to NPMs dialup).

@spiderrobotpig Nah, yarn is actually installed elsewhere. It's literally almost done with the JavaScript side of installing things.

@sendoshin Oh fair enough. It's stashing the build environment now

@spiderrobotpig Sweet. That means it successfully installed Mastodon and all its dependencies. We're already further than you were on DO directly!

@sendoshin Oh that's good I think? I still have no idea what's going on because I'm used to Linux, but if you say it's working I'll trust you

@spiderrobotpig Oh, it's actually very Linux inside. Right now it's storing a copy of everything it just did so that you can use it elsewhere much more quickly. Roughly the same thing as what docker compose does, really, just a hell of a lot smarter about it.

@sendoshin Okay, I got one key. Hopefully the next one is faster

@spiderrobotpig The first time has to build the environment the commands run in. The second and later times just reuse the build from the first one. HUGE speed difference.

@sendoshin Okay, running deploy, gonna see how that works

@sendoshin Yeah but

Error : failed to execute hook (compile) on 97738c02bdf1b312d94a6b8428d4ff268cdbd5c9937f8823ce3efaef92351615: util:Exec:/opt/nanobox/hooks/compile: bad exit code(1):
Context : failed to build the code

@spiderrobotpig Right, sorry, I was asking you to add the -v and try it again. I wanna see what the actual error is...

@sendoshin

[Webpacker] Compilation Failed

/usr/bin/env: ‘ruby\r’: No such file or directory

Error : failed to execute hook (compile) on 8073cd5ce07fbf794b20128e5a9d4951af6383eaac0e253ef9c7025abb22b41a: util:Exec:/opt/nanobox/hooks/compile: bad exit code(1):
Context : failed to build the code

@spiderrobotpig Gonna try to rebuild mine from scratch and see what I can work out from here.

This still shouldn't be happening. Sorry it's such a headache. 😭

@sendoshin hope so too. I'm so annoyed and frustrated with this

@spiderrobotpig Yeah. It should never be this much effort. With or without Nanobox.

@sendoshin this is pretty awful, and a pretty great example of why "if you don't like it make your own" is total bullshit

@sendoshin so, are you doing a fresh build to try and replicate? I'm not sure what's going on

@spiderrobotpig Yeah, that's exactly what I'm doing. It's almost finished with the initial build.

@sendoshin okay, sounds good. Didn't wanna mess with mine anymore if that's what you were doing

@spiderrobotpig Well fuck. It's already syncing to the production server. I didn't reproduce the issue.

Argh. OK. What else can we try...

Short of having you switch from Windows to Linux because all of this just works so much better there. That would be overkill.

This would be a bit easier if I could see what you're seeing as you see it, but that's a whole privacy thing and ugh.

nanobox deploy -v --debug

That should drop you into the build container after it fails...

@sendoshin /usr/bin/env: ‘ruby\r’: No such file or directory

failed to execute compile hook: failed to execute hook (compile) on 71e1ed7c254ca320b38a42aca4dc394df082bc32c0dfe70b06ed711126dec30d: util:Exec:/opt/nanobox/hooks/compile: bad exit code(1): - Cleaning up any previous releases...
- Copying code...
- After compile hook 1 :
$ NODE_ENV=production bundle exec rake assets:precompile
Webpacker is installed
Using /app/config/webpacker.yml file for setting up webpack paths
[Webpacker] Compiling assets
[Webpacker] Compilation Failed

/usr/bin/env: ‘ruby\r’: No such file or directory

@sendoshin

! FAILED TO AFTER COMPILE: NODE_ENV=PRODUCTION BUNDLE EXEC RAKE ASSETS:PRECOMPILE !

Exit
1

Command
su - gonano -c "cd /app; export PATH=\"/data/sbin:/data/bin:/opt/gonano/sbin:/opt/gonano/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"; export CODE_DIR=\"/app\"; export DATA_DIR=\"/data\"; export APP_DIR=\"/mnt/app\"; export CACHE_DIR=\"/mnt/cache\"; export ETC_DIR=\"/data/etc\"; export ENV_DIR=\"/data/etc/env.d\"; export CONFIG_RUNTIME_TYPE=\"string\"; export CONFIG_RUNTIME_VALUE=\"'ruby-2.4.1'\"; export

@sendoshin

CONFIG_NODES=\"runtime\"; stdbuf -o0 siphon --prefix ' ' -- bash -i -l -c \"NODE_ENV=production bundle exec rake assets:precompile\"
"

Output
Webpacker is installed
Using /app/config/webpacker.yml file for setting up webpack paths
[Webpacker] Compiling assets
[Webpacker] Compilation Failed

/usr/bin/env: ‘ruby\r’: No such file or directory

An error has occurred: ""
Entering Debug Mode
container: 71e1ed7c254ca320b38a42aca4dc394df082bc32c0dfe70b06ed711126dec30d
hook: compile
payload: {}

@spiderrobotpig Wait. I think I know what's happened. And it's absolutely fucking stupid.

So, how much do you know about line endings?

@spiderrobotpig OK, so basically there are three ways to end lines in a text file.

MacOS uses one character that we usually type as \r (because it's pretty much impossible to type any of these directly).

Windows uses two characters, \r\n (again impossible to type either directly).

Literally everything else uses just the one: \n

So. What's happened here? Because you cloned the repo to your Windows system, your git app "helpfully" switched them all to \r\n for you.

@spiderrobotpig I really wish I was. And of course the Linux system doesn't understand that, so it's treating that \r as part of the name of the command it's looking for.

This is literally the stupidest thing that ever happens with cross-platform anything, and all because Microsoft has to be different.

@sendoshin I want to stab Bill Gates in the throat right now

@spiderrobotpig Welcome to the club! The line forms waaaaaaaaaaaaaaaaaaaay back there. 😭

@spiderrobotpig Luckily, I think we can. Gimme a moment to work out the full process, because it's ... not going to be completely straightforward.

And I'm totally making the Nanobox guys aware of this issue so they can look into fixing it.

(While I'm working on that, though, what's the name of the git app you're using? More detail is better detail in this case...)

@sendoshin Github Desktop. I just downloaded it from Github

@spiderrobotpig Ah, cool, we might be able to do something with it, if I'm the luckiest enby alive tonight.

@spiderrobotpig Not as good as I was hoping. Looking at the manual approach now.

@spiderrobotpig OK, not as complicated as I thought it might be. Still have the /app$ prompt?

@spiderrobotpig OK.

sudo apt-get update
sudo apt-get install dos2unix
dos2unix -k bin/*

should do it. To find out, once that's done:

exit

and it should pick up the deploy where it left off.

@spiderrobotpig Note that dos2unix won't pollute your deployed app, because (1) the environment you're in at the moment is a temporary one, and (2) the packages that actually get deployed are installed using a different mechanism altogether than apt-get.

@sendoshin OKay, internet speeds have tanked for some reason so it's taking a bit, but I'll update when I can

@spiderrobotpig I should be around.

It's almost 02:00, here, but I'm usually awake at least another couple of hours anyway. And not tired, yet, tonight. (Actually woke up from a nap not long before the shower I had just gotten out of when you pinged me into this thread... 😄 )

@spiderrobotpig Yup. 😁

I did submit a PR to Gargamel just a bit ago to prevent this from being an issue in the future. There's a way to force git to use the normal line endings (apparently even MacOS uses \n now), but it has to be done in a file that comes with the repo. Which means you can't force the issue after the checkout.

@sendoshin

Same thing happened

Output
Webpacker is installed 🎉 🍰
Using /app/config/webpacker.yml file for setting up webpack paths
[Webpacker] Compiling assets 🎉
[Webpacker] Compilation Failed

/usr/bin/env: ‘ruby\r’: No such file or directory

Error : failed to execute hook (compile) on 71e1ed7c254ca320b38a42aca4dc394df082bc32c0dfe70b06ed711126dec30d: util:Exec:/opt/nanobox/hooks/compile: bad exit code(1):
Context : failed to build the code

@sendoshin This is absolutely ridiculous and I am sad and frustrated

@spiderrobotpig Gods damn it all. GARGAMEL!!!

OK, that means we didn't get the right file, yet. Maybe if we hit the whole damned repo.

nanobox run

Then those commands I sent before, except the last line. Instead, once dos2unix is installed:

find /app -type f -exec dos2unix -k {} \;

It should complain a LOT, but it should hit every damned text file through the entire damned repo.

@sendoshin I have to run through the first thing again cos it dumped me out of /app

@spiderrobotpig But, if you've already started that, you can wait for that instead of doing nanobox run ...

@sendoshin Oh that's convinent. Glad I got this before it dumped me into debug

@sendoshin No biggie tbh I'm super impatient.

Aries and what not

@spiderrobotpig My ex wife is an Aries. Not why we split at all - I can handle impatient fairly well, apparently - but I have some familiarity with what you mean. 😄

@spiderrobotpig Try being a Gemini-Cancer some time.

Like, the cusp isn't usually even a real effect, but even my witch friend who swears it never happens is always super frustrated at me, because somehow it happens with me.

@sendoshin I'm actually Aries-Taurus cusp, Aries Rising, and Aquarius Moon. I'm a goddamn mess tbp

@spiderrobotpig I strongly believe most people are way more of a mess than they believe. Or admit to anyone, at least, sometimes even themselves.

@sendoshin Oh totally. Personal headcannon is most neurotypically people are less neurotypical than they thing tbh

@spiderrobotpig That seems extremely likely, given what I've seen of people in general.

@sendoshin *nodnod* People are weird, and holy crap this is a lot of files that need converting

@spiderrobotpig Yeah, the project is massive. Plus it's converting the dependencies, too... So ... It'll be a bit.

@sendoshin Neato. At least it seems to be doing it fairly quickly

@spiderrobotpig I hate Rails so fucking much after getting Mastodon working, tbph.

@spiderrobotpig I'm pretty sure you already do.

Ruby is an absolute train wreck. I don't get why so many people love it so much. Near as I can tell, they're mostly just burnt out on early PHP.

Not that PHP is perfect by any stretch, but it's a hell of a lot smoother than all this shit.

@sendoshin Literally all of this could just die in a fire and I'd be happy tbph

@spiderrobotpig I'm thinking of redoing everything in PHP, honestly. Or maybe Elixir, since Erlang is LIGHTYEARS ahead of essentially anything else on doing lots of things at once really fast, and then it could be compiled.

No way I'd have the time to actually do it, though.

@sendoshin Yeah, that makes sense ALSO IT'S DONE CONVERTING NOW

@sendoshin GOD FUCKING DAMMIT

Output
Webpacker is installed
Using /app/config/webpacker.yml file for setting up webpack paths
[Webpacker] Compiling assets
[Webpacker] Compilation Failed

/usr/bin/env: ‘ruby\r’: No such file or directory

Error : failed to execute hook (compile) on e08859ac41235e78a4d1ecb2fbdf0d0bd808825bc16a0f32f35bf7ceec331053: util:Exec:/opt/nanobox/hooks/compile: bad exit code(1):
Context : failed to build the code

@sendoshin I think? I can't tell anymore cos there were so many things converted. It was all stuff in that folder tho

@spiderrobotpig Yeah, badly worded, sorry.

What I _meant_ to ask was which console you typed the commands into. The `--debug` one, or the `nanobox run` one?

@sendoshin the --debug one, after I typed exit it just tried installing again

@spiderrobotpig Well, that confirms that fear, then.

Looks like the compile step pulls the code from the filesystem again every time, even after a --debug session. Which is DUMB AS ROCKS.

Gotta do it with nanobox run, then, since that operates directly on the files on the host system (they're mounted in using CIFS, usually).

@spiderrobotpig Yeah. In many cases, that's smarter, but in this case, it's not what we wanted. Like, at all.

Sorry again about all this! We're so fucking close!

@sendoshin No worries just hoping this actually works haha

@spiderrobotpig Same. I love Nanobox so much because I almost never have to dick around with this kind of bullshit. But even it isn't a magic wand to fix all of the things Gargamel won't.

Oh, on that note, I totally stole the awoo.social whitelist changes, and I'm gonna submit them as a PR (once there's more polish on them) for "manual federation". That should help me sneak it past his bullshit.

If not, oh well, I'll just maintain a fork with the feature for others' benefit.

@sendoshin I tried using it before and I had a lot of issues with it. Definitely something I'm interested in tbh

@spiderrobotpig Yeah, part of that polish is adding management from the UI, not the command line. You should never have to use SSH to do daily tasks with a web app. Already added a switch to the UI to flip between "automatic federation" (block list) and "manual federation" (allow list).

Also, did you know that "blacklist" and "whitelist" have racist undertones?

Once that's pointed it, it's pretty obvious, I've found...

@sendoshin Oh yeah that makes sense >.>

Never really thought about it but I am hella white so...

@spiderrobotpig It's not really something _any_ of us think about until somebody else points it out. (I'm a ginger, so it doesn't get much whiter...)

@sendoshin Suppose that's true ALSO IT'S DONE CONVERTING

@spiderrobotpig Oh, good. That _should_ have made the changes directly to the files on your computer, rather than copies.

One more try on the deploy?

@sendoshin Yeah, trying again. If this doesn't work I'm going to have to go to sleep tho because I have work tomorrow

@spiderrobotpig Yeah, I have errands to run before there are people at Walmart, so similar boat here.

IT HAD BETTER WORK THIS TIME, THOUGH, OR I WILL BE VERY CROSS.

(Not my best charm, but worth a try.)

@sendoshin It's a good try. It does look like it might be working?

It's installing things at least

@spiderrobotpig Oh yeah. It probably changed the line endings in boxfile.yaml, plus all the other files I put in there for it to look for changes to. That means it's re-running the build process. Luckily, it's only going to update things, so it should be much faster than the first time, still.

Not as lightning fast as coming back up when generating the secrets, but still fast.

@sendoshin Yeah it's running me through the process again. Installing bundler now

@spiderrobotpig Like I said. Quick. 😁

All your dependencies are already installed using the correct versions, so bundler had nothing to do, and neither did yarn.

@sendoshin Yeah, that makes sense. The stashing is still taking forever but that makes sense I spose

@spiderrobotpig Tossing an entire app repo into a tar.gz isn't quick. Tossing the entire set of installed software in a tar.gz is even slower.

Still faster than some other methods, though.

@sendoshin That makes sense. I don't want to get my hopes up but it looks like it's moving along okay?

@spiderrobotpig

IT HAD BETTER BE.

Sorry. Got a bit carried away reinforcing that charm.

@sendoshin Okay, back at copying code. Once it starts trying to install it we'll know

@spiderrobotpig To be fair, it's not actually installing anything at this point. Just building all the JavaScript, CSS, images, and so on.

Looks a lot like an installation, though.

@sendoshin Yeah, I just meant when it get to the webpacker part it crashes. Which it hasn't yet

@sendoshin Okay it's trying to compile assets for Webpacker, this is the furthest we've gotten yet

@sendoshin Fucking *shrug*

Moving build into live app directory?

@sendoshin Yeah, it says it's deploying now so that's good

@spiderrobotpig In a bit it'll tell you to watch your dashboard for the rest of the process. That's good advice, since any issues after this point will only show up there.

There's supposed to be an update, eventually, that pulls that info into the console as well, so you can watch everything from the same place, but that's a way out, still.

@sendoshin I mean, I think at this point it should be fine? I'm like 33% of the way done sending the tarball to the site apparently

@spiderrobotpig It has two of them to send, but that's still a great sign.

If there _is_ an issue, it's usually with the Droplet not quite keeping up. Rare, but it happens. (AWS is a little bitch about it on the default server size.)

@sendoshin Oh I hope that doesn't happen because that will make me very sad and mad.

@spiderrobotpig It's way easier to fix than any of this bullshit has been. It'll give you a retry button — you just wait a moment, then press that.

@sendoshin Just want this to be done so I can sleep >^<

@spiderrobotpig In the future, when you update to newer releases (with no downtime!), this should be the longest part. I'm hoping Gargle merges the fix I just pushed so you don't have to dos2unix everything again.

@sendoshin I feel like those words should never have to be said about improvements to the code tbph

@spiderrobotpig Totally agreed. Especially ones that don't affect functionality at all.

@spiderrobotpig Every PR I've sent them so far has been merged. The first one, which added Nanobox files (so you didn't have to create them yourself tonight), was the hardest, because it actually changed a couple of things (to be done smarter, and honestly _right_ in a couple of places). The most recent was merged almost instantly. (Though, admittedly, it was just fixing a typo that was a _ where it should have been a - ...)

So I have high hopes for this one.

@sendoshin I'm used to Linux, but my trackpad doesn't work correctly, so I needed to switch back. Usually just SSHing into the droplets work fine but this was quite the sack of bullshit. At least things are happening now haha

@spiderrobotpig Yeah. Linux is just better overall, when your hardware works. When it doesn't, though, it's pretty useless.

Vendor lock-in. It starts at the bottom and works its way right through your entire digestive tract.

@sendoshin So...Nanobox stopped doing stuff, but witches.academy just keeps trying to automatically switch to Https

So I can't access it to see. Might try the IP address

@sendoshin KK I am just super duper pissed off so I'm gonna sleep now and maybe tomorrow things won't be quite so shitty.

Fingers crossed.

Nini and thanks for helping

@spiderrobotpig Hmmm. Then it shouldn't be redirecting anything at all. That's odd.

@sendoshin also, if I manage to get to the page I just get "we're sorry but something went wrong"

@spiderrobotpig OK, that's probably fixable, but we'll need to see the logs to say for sure. Luckily, literally every log in the app — including Masto's — is dumped to the same place. The logs tab on your dashboard.

Also, looking into the domain thing now. I'm actually looking directly at the regex involved myself, so this should be relatively quick. I'm something of a regex wizard, apparently.

@spiderrobotpig Yup. It was something silly, and easily fixed. Should be live in a bit. He's gonna let me know when it's live, and I'll pass that on to you, so you can try creating your certificate again.

I mean, you're at work, so it'll be after you get done with that, I'm sure, but still.

@sendoshin I'm still getting we're sorry, but something went wrong, but at least it's connecting >.>

@spiderrobotpig Awesome. That means I fixed it correctly. 😁

OK, so for the "something went wrong" page, there _should_ be more details on that in your app's logs. In the app dashboard, there's a Logs "tab" that should give you access to literally all of them.

@sendoshin

HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory, swap space, or huge pages. To reduce the request size (currently 165871616 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections. ???

@sendoshin Basically I keep getting cannot allocate memort and the shared memory segment one from Postgresql.

Also connect ECONNREFUSED 192.168.0.9:5432

@spiderrobotpig Hmmm. Odd. May have to scale up the server some. Sounds like the default droplet size doesn't have enough RAM.

@sendoshin Okay, upscaling to the one I usually use, will let you know if I don't leave for work before it's finished

@sendoshin Seems like doing retry cleared them up, so I think it's going okay

@sendoshin ( keep getting a 4207 Error on the Export Final

@spiderrobotpig Hmmm... What's the app name? I'll try to work with the dev team on resolving that...

@sendoshin hook 'export-final' failed on 'mesh.data.portal.1.1'

@spiderrobotpig Odd. That one shouldn't be able to have issues.

What's the app called in the dashboard?

@sendoshin They're both called do.1 as far as I can tell?

@spiderrobotpig That'd be the server name. The app name should be just above that in the UI...

@spiderrobotpig Hmmm. Maybe the error display is covering it.

You should have given the app a name when you created it...

@spiderrobotpig Cool, that's what I needed. 😁 I'll see what we can figure out over here to get that fixed.

@sendoshin Thanks. I'll be MIA most of the day, but I'll be able to check my phone on break and stuff

@spiderrobotpig Sounds good. We're looking at it now. Got at least three other guys on it, which is kinda cool.

@spiderrobotpig When it comes to Nanobox, that's actually quite literally what I do. 😁

@spiderrobotpig 😄

If you're still at your computer, you could add me as a collaborator so I could see your dashboard, if you wanted. Just need my email address — danhunsaker at gmail — to do that.

If not, no worries. I certainly don't need to be in your business.

@sendoshin I'm actually not haha. Otherwise I would probably do that

@spiderrobotpig No worries, like I said. 😁 They've got this. Apparently it's a bug in the hook itself that you uncovered for them, so w2g!

@spiderrobotpig Bug fixed, scaling complete. Still getting fluffy elephant friend. 😞

So we'll have to pick this back up when one of us can look at the logs.

@spiderrobotpig That's either "really exhausting" or "none of your business"... Probably both! (Lots of stuff is none of my business, tbf.)

Hope life isn't being too hard on you, though.

@sendoshin sorry I'm not getting notifications.

It's going well, just exhausting haha

@spiderrobotpig No worries!

Ready when you are to push forward on the academy, by the way.

@sendoshin thank. I may try tomorrow given it's my last day before the weekend

@spiderrobotpig Oh hey, I'm officially on the official support team, now, too... There's a good chance I'd end up being the one you talk to using the live chat feature on the site itself, now. \o/

@sendoshin Nice :3 heading to bed, kinda got super high and now I'm exhausted. Talk tomorrow :3

@spiderrobotpig Heh, fair enough. Have my kids this weekend or I'd be tempted to find a supplier, now. 😄

I'm not in any more rush than you are. Just happy to help! 😊 💜

@spiderrobotpig It'll say that for a few moments sometimes before it connects. Other times you just have to reload the page. Check the Historical ones, though.

@sendoshin Yeah, that's what I'm doing and more stuff is popping up

@sendoshin witches.academy

still no idea why the site isn't working though

@spiderrobotpig GARGAMEL MERGED THE FIX WE NEVER HAVE TO WORRY ABOUT CHANGING LINE ENDINGS IN MASTODON AGAIN THE WORLD IS A BETTER PLACE OMG

@sendoshin It's sending over tarball for the runtime. That seems to be going a bit slower, but also smoothly

@spiderrobotpig It doesn't come with bundler by default (probably by accident), so it tries to install things too early and fails. It really shouldn't be trying to install things too early in the first place, but ... it does.

Anyway, the real install phase is still to come.

And yeah, the lack of indicator is normal with -v added in.

@sendoshin Yeah, it looks like stuff is happening at least. Yarn is stuck at 1165/1166, but that's also probably normal

@spiderrobotpig Gods damn it. I'm gonna have to ask you to re-run that, with a slight change. And it's gonna take just as long to tell us what's wrong.

This should NOT be happening.

nanobox run -v bundle exec rake secret

@spiderrobotpig It should actually be named all lowercase. I'm not entirely sure _why_ all the error messages are shifted to all caps, but they are...

@spiderrobotpig Making Nanobox set everything up and then run bundle commands in its environment instead of directly on your computer.

@sendoshin So, I guess I'm just gonna try and do this again and hope for the best. Thanks for the assist but it's just not working