you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (47 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 -  (46 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

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (45 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 -  (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.

[–][deleted] 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$

[–][deleted] 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!

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

Yeah that's weird. Maybe you did a sudo wget or a sudo tar.

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

Ok I think I'm almost there. Here is what I've learned: I figured out that even though I had done the full remove procedure on anope in all my users multiple times, there was this lingering anope-2.0.6-source.tar.gz file that was showing up under user:chatuser but was installed in root. It wasn't being removed because it was labeled with a "1" on the end (I presume because of the multiple installations). So I manually removed it and now all the chat features appear to be installed.

I'm still getting the "reddit.local's IP address cannot be found" in the box on my sidebar but I'm about to scour the config files on all the chat features and see if I can't find somewhere where it should have my domain.

Meanwhile, earlier you wrote this which I'm confused by: "One thing you will need to do for the full chat setup is configure both TheLounge and Unrealircd to use your SSL cert. How I do it is copy and rename the certs to here, and have theLounge and Unreal use these copies (unreal expects these names, no config change needed for unreal):

/home/reddit/unrealircd/conf/ssl/server.cert.pem
/home/reddit/unrealircd/conf/ssl/server.key.pem

So if my user is chatuser, should those read /home/chatuser/ ? Do you mean I change those in the Lounge config file but I don't need to worry about it in Unrealircd?

Thanks again. x

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

This was the only place I used sudo on the anope install: sudo apt-get install cmake build-essential

I'm going to try removing it again and re-installing it again. I feel like maybe this has something to do with the fact that I've installed and re-installed it so many times. Maybe I'll go into root and remove it there too this time.

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

I just removed anope from root and reddit (users) and went through the anope install again only to find it installed in root again. Again, I checked before ./Configure to make sure it was only installed in chatuser. So something is happening here to put it in root: $ ./Config # press [Enter] a bunch, accept defaults $ cd build/ $ make $ make install