so I was looking at NextCloud and they have a installation script

and the first actual lines:

# Prefer IPv4
sed -i "s| ::ffff:0:0/96 100|precedence ::ffff:0:0/96 100|g" /etc/gai.conf

how to get me annoyed with your software in 30s right there

and it does it without letting the person running the script know, no echo "we are changing your system's IP version preference BTW"

Show thread

I'm checking the git commit history for the file to see why that was added

Show thread

I'm about to fork this, remove that bit and submit a pull request

Show thread

okay so the maintainer tells me there is a second script that changes the value back to preferring IPv6

I'm still not sure /why/ the script needs to set that preference, even temporarily, so I asked

Show thread

"It has to do with the functions regarding the network, checks and so forth. I don't remember 100% to be honest, but I remember that when I removed it, weird stuff started to happen."

Closed #1033.

🤷🏾‍♂️ 🤷🏾‍♂️ 🤷🏾‍♂️ 🤷🏾‍♂️ 🤷🏾‍♂️

Show thread

I guess I’ll add testing and debugging a Bash script to my to do list because I’m curious what exactly breaks if the gai.conf preference is not changed

Show thread

time to fire up a testing VPS to run the version of the script that doesn't make any changes to gai.conf to see what happens

Show thread

so I fire up my usual 1GB Linode to do this and:

Error: 2 GB RAM required to install Nextcloud!
Current RAM is: (1 GB)

Show thread

the cloud gods are not pleased with my paltry offering of 1GB of RAM

Show thread

so the script with the modifications to gai.conf removed finished the install with no issues

Show thread

so I've confirmed that the script runs just fine on a dual stack system with no need for modification to IP version preference

I don't really want to fight with the maintainer over another pull request so I'm just gonna terminate this VM and move the fuck on

Show thread

@packetcat ayyy 🎉🎉 I've had my own nextcloud troubles recently lmao

@packetcat My opinion of Nextcloud was already pretty low. This thread is lowering it even more.

@packetcat hey it's like when you give them DB password, they create another user than the one you provided, give it privileges and then use created user.
Except they fail to do that for Postgress (still, I think) and you are wondering what privileges you failed to give but you didn't fail, it's just fucking eternal alpha-quality software.
Seriously, I've tried three times and it's always disaster.

@charlag 😬 installing this is sounding less appealing by the moment

Sign in to participate in the conversation
Ten Forward

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!