all 56 comments

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

try

sudo reddit-stop
sudo reddit-flush
sudo reddit-start

I've never used this "LocalizedDefaultSubreddits.set_global_srs(srs)" command before

/u/d3rr might know something more helpful, maybe he can chime in

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

Thanks for responding u/magnora7. I tried this stop/flush/start sequence twice and that didn't work. Maybe u/d3rr could chime in, sure enough. It also occurred to me that maybe the problem had something to do with me running the following (located just under the lounge setup on the github): SaidIt Dev Guide Logging $ sudo tail -f /var/log/syslog

g.log.warning("hello log") Profiling Set profile_directory in development.update to an absolute path and create the directory first. cProfile results can be viewed with pstats.

Mounting VM files locally You can mount the reddit open source app's files as a folder on your host machine for easy editing and searching. On your host/development machine:

$ sudo apt-get install sshfs $ mkdir ~/vm $ sshfs reddit@reddit.local:/home/reddit/src/reddit ~/vm

optionally unmount it later with:

$ fusermount -u ~/vm

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

It looks like you set uncompressedJs = false?

Please do the refreshing css procedure as detailed on the README page. If that doesn't do it, try to load a page and send me any errors printed to /var/log/syslog

[–]portcity[S] 3 insightful - 2 fun3 insightful - 1 fun4 insightful - 2 fun -  (52 children)

The refreshing CSS procedure worked! YAY!! Really can't thank you both enough (y'all will get tired of hearing me say this). Also, I spent literally weeks banging my head against a wall trying to figure out how to make the old Reddit codebase work by myself (with no one to help me, just googling every problem and clumsily trying to fix everything with the help of message board answers) so I'm afraid I may have picked up some bad habits from doing that. Like, on my install of the old reddit codebase it was hugely important to have my IP pointed to reddit.local so I may have figured it was the same here. Can't thank you enough for your generosity again. x cc: /u/magnora7

[–]magnora7 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

Awesome! Glad to hear it's resolved and that we could help get portcity.online back online. :) Cheers

[–]d3rr 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (50 children)

I spent literally weeks banging my head against a wall trying to figure out how to make the old Reddit codebase work by myself

I've been there!

it was hugely important to have my IP pointed to reddit.local

Yeah that's part of the dev machine setup, where you modify your hosts file, but now with your real domain name DNS can find it normally.

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

I'm reinstalling all the chat features to try to change all the reddit.local's ... and now when I run ./unrealircd start I get "is a directory" I reinstalled unrealircd and running ./unrealircd start worked but gave me an error on line 244

So I carefully fixed it, then ran ./unrealircd start again, and got "is a directory" again. (???)

So this pastebin shows the only section I changed during all this. Can you see an error or what I did wrong here?

https://pastebin.com/MSUgfsgU

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

What directory are you in when starting it? ./ Means the current directory, so you have to be in the right place before starting.

If you consistently get the line 244 error then we can work on it.

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

That section I pastebin'ed to you was line 244. After I "fixed" it, it gave me "is a directory" again.

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

chatuser@redditclone:~$ ./unrealircd start -su: ./unrealircd: Is a directory

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

Ok, I tried loading cd ~/unrealircd first and then running the start command and that started to work, but then I got this (It seems to think IRCd is already running?):

Error binding stream socket to IP :: port 6900 - :Address already in use Failed to bind to *:6900 Error binding stream socket to IP 0.0.0.0 port 6900 - :Address already in use Failed to bind to *:6900 Error binding stream socket to IP :: port 6697 - :Address already in use Failed to bind to *:6697 Error binding stream socket to IP 0.0.0.0 port 6697 - :Address already in use Failed to bind to *:6697 Error binding stream socket to IP :: port 6667 - :Address already in use Failed to bind to *:6667 Error binding stream socket to IP 0.0.0.0 port 6667 - :Address already in use Failed to bind to *:6667

IRCd could not listen on any ports. If you see 'Address already in use' errors above then most likely the IRCd is already running (or something else is using the specified ports). If you are sure the IRCd is not running then verify your listen blocks, maybe you have to bind to a specific IP rather than "*".

UnrealIRCd failed to start. Check above for possible errors.

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

Yeah you've gotta be aware of if things are running or not. It accepts commands stop start restart and more. So do a restart instead of a start with:

$ ./unrealircd restart

ps aux | grep unreal

To check if running.

Edit: about the error, you have to tell me what the error was. Maybe you missed adding editing 'ulines' to look like:

ulines {
  services.portcity.online;
};

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

All right, I def changed the ulines beforehand ... your command to restart unrealircd worked .... (thanks!) .... now I'm installing anope and when I ran make install I got this:

Install the project... -- Install configuration: "RELEASE" -- Up-to-date: /home/chatuser/services/conf/example.chk -- Up-to-date: /home/chatuser/services/conf/botserv.example.conf CMake Error at data/cmake_install.cmake:36 (FILE): file INSTALL cannot set permissions on "/home/chatuser/services/conf/botserv.example.conf" Call Stack (most recent call first): cmake_install.cmake:49 (INCLUDE)

make: *** [install] Error 1 chatuser@redditclone:~/anope-2.0.6-source/build$

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

Because of that "permission denied" I ran sudo ls -la and it showed that somehow anope installed itself in root again?? (ugh). So I fully removed anope, reinstalled it all again, and still got the following when I ran sudo ls -la

chatuser@redditclone:~/services/conf$ sudo ls -la [sudo] password for chatuser: total 304 drwxr-xr-x 2 root root 4096 Jul 21 03:14 . drwxrwxr-x 8 chatuser chatuser 4096 Jul 20 22:46 .. -rw-r--r-- 1 root root 14536 Mar 28 2017 botserv.example.conf -rw-r--r-- 1 root root 34000 Mar 28 2017 chanserv.example.conf -rw-r--r-- 1 root root 1795 Jul 30 2016 chanstats.example.conf -rw-r--r-- 1 chatuser root 952 Mar 28 2017 example.chk -rw-r--r-- 1 root root 40293 Mar 30 2017 example.conf -rw-r--r-- 1 root root 3007 Jul 30 2016 global.example.conf -rw-r--r-- 1 root root 4921 Jul 30 2016 hostserv.example.conf -rw-r--r-- 1 root root 2471 Jul 30 2016 irc2sql.example.conf -rw-r--r-- 1 root root 6036 Mar 28 2017 memoserv.example.conf -rw-r--r-- 1 root root 20067 Oct 9 2017 modules.example.conf -rwxr-xr-x 1 root root 22701 Jul 24 21:23 nickserv.conf -rwxr-xr-x 1 root root 22701 Mar 28 2017 nickserv.example.conf -rwxr-xr-x 1 root root 22240 Jul 24 21:37 operserv.conf -rwxr-xr-x 1 root root 22240 Mar 28 2017 operserv.example.conf -rw-r--r-- 1 root root 40369 Jul 21 03:27 services.conf -rw-r--r-- 1 root root 14767 Jul 30 2016 stats.standalone.example.conf chatuser@redditclone:~/services/conf$

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

Well I think something must have gone wrong with the remove and reinstall, lots of those files still belong to root. I'll double check how they look to me later.

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

What's weird is I was super paranoid about making sure I wasn't installing to root so I ran sudo ls -la before ./Config and it showed me that anope was all installed in chatuser (this go-around, before the rest of the installation). I really don't know how it got screwed up this bad!

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

Check line 244 like it says, it's trying to help you