you are viewing a single comment's thread.

view the rest of the comments →

[–]portcity[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (18 children)

Ok, we've got a partial victory ... Unreal is running!! (again!) I tried literally everything, and after just googling a bunch of stuff (because I truly don't want to keep messaging you all day for fear of burning you out, when I know I'm gonna really need you on much bigger stuff later ...) These are the commands I found that worked:

sudo chgrp -R ssl-cert /etc/letsencrypt
sudo chmod -R g=rX /etc/letsencrypt

I had a hunch that it had something to do with the ssl-cert group not having the right permissions, so I googled that, and that's what led me to the above commands which "let me in" so to speak.

All that said, don't release the balloon drop just yet ... the chatbox is still greyed out, with the same link inside it.

This is what sudo ls -l gives me: chatuser@redditclone:~/unrealircd$ sudo ls -l /etc/letsencrypt/live/portcity.online/fullchain.pem lrwxrwxrwx 1 reddit ssl-cert 44 Jul 20 01:48 /etc/letsencrypt/live/portcity.online/fullchain.pem -> ../../archive/portcity.online/fullchain1.pem

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (17 children)

Good work! Thank you for learning and researching on your own. All of this frustrating little stuff is great linux admin experience.

the chatbox is still greyed out, with the same link inside it

What's in it? Does TheLounge load?

Can you restart unrealircd without issue?

Can you start TheLounge without issue?

[–]portcity[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (14 children)

Unrealircd restart without issue in terminal. Thelounge starts without issue in terminal.

Inside the grey box is this link (which used to read reddit.local's ip address cannot be found but now reads this): https://portcity.online:2053/?tls=true&lockchannel&autologin&user=VtFOG9xkX3JrlbYFog00RJnWW5HxmM&al-password=sAUfvG5XAgKOpR1xyzNFp9Mlk8KR1G&autoconnect&nick=portcity&username=portcity&realname=portcity&join=%23%255BDEV%255D%2520saidit

I honestly can't tell if TheLounge is loading or not ... it does have that "chat in new window" button.

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (13 children)

The lounge is not using the correct cert, you can see so when you try to visit the link. Stopping and starting TheLounge is a challenge. I'd use our script in Reddit/r2/scripts/saidit-flush-thelounge.sh (git pull to update your repo if you don't see it)

[–]portcity[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (12 children)

drum roll ........................... IT'S WORKING!!! YAY!!! I almost can't believe it. I couldn't figure out how to run that script so I just looked at it on github and ran each line by hand (lol).

The only thing that looks weird is it thinks the front page is something called:

%5BDEV%5D%20saidit

But honestly, after all this, I'm willing to live with that for a while.

Next question: when I try to turn on admin, it asks me for a one time verification code. I know this user is set as an admin in my config because early on my password alone turned on the admin. I must have flipped something on that made it start asking for this verification code thing.

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (11 children)

nice work!

%5BDEV%5D%20saidit

You'll have to read through example.ini and override the appropriate settings in your development.update. This text is from 'brander_site' or 'brander_site_urlencoded'. You should check out all of the settings from 809 to 882, and from lines 1087 to the end, that's where most of the fun SaidIt stuff is.

when I try to turn on admin, it asks me for a one time verification code

That is setting 'disable_require_admin_otp'. If you remove it from development.update, it falls back to the value in example.ini which is false.

[–]portcity[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (10 children)

Hey, just checking in. Everything is going well (that lounge flush is my best friend). Those brander_xxxx things are tricky. Changing some turns the site into a 503, but changing it back to brander_site fixes it again. I'm basically just figuring things out. Could you tell me where the appearance/design pieces are, like where 0eye the designer is changing images? Thanks so much again for all the help! I obviously couldn't do this without you. x

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (9 children)

You can't change any configuration parameters, on their values. And no changes to a sane value should cause a 503. Beware that after a reddit-restart or start, the site may throw 503 and be inaccessible for up to 3 minutes (cron jobs are overwhelming the system).

The appearance is all in .html and .less files. After you change .less, you've gotta run refresh-css.sh to rebuild css (in production mode, if uncompressedJs is false).

Images are in r2/r2/public/static.

[–]portcity[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (8 children)

Could you tell me how to access these files in my server: https://github.com/libertysoft3/saidit/blob/master/r2/r2/public/static/css/theme-custom.less https://github.com/libertysoft3/saidit/blob/master/r2/r2/public/static/css/themes/daymode.less

And also: where should I go to change the links in the footer?

Thank you!!

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (7 children)

The footer links are hardcoded somewhere (yuck), you can find them by searching.

This file https://github.com/libertysoft3/saidit/blob/master/r2/r2/public/static/css/theme-custom.less

Is here: /home/reddit/src/reddit/r2/r2/public/static/css/theme-custom.less

[–]portcity[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (1 child)

I've been looking at development.update. Does this look right:

Chat

chat_home_channel = %(portcity.online)s chat_all_channel = %(portcity.online)s chat_front_channel = %(portcity.online)s chat_client_url = https://%(domain)s:2053

Should that last line read "portcity.online" where it says "domain"?

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

The chat_client_url is fine, but the rest should be simply

portcity

(I don't think period in a channel name is valid and no need for config variables here))