you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (44 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 -  (43 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 -  (42 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 -  (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

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

Cool good progress. For the chat iframe that SaidIt tries to load, there's a specific config param that sets that url... You might need to copy that into development.update to set it properly. It starts with "chat", you'll find it.

As far as copying the SSL, I've backed off that and think it's messy. Check out the updated README. You just need to chown your certs, as in readme, and then update the config for unreal and thelounge, to point to the correct cert.

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

Today's issues: Trying to chown my certs, as per the updated README here: Setup SSL cert permissions, start unreal, and cleanup:

$ sudo usermod -aG ssl-cert reddit $ sudo usermod -aG ssl-cert irc $ ./unrealircd start $ rm -rf ~/unrealircd-4.2.3*

I'm still getting permission denied on the cert, meaning there's something about this process that isn't working. I've done quite a bit of googling on this, and I haven't found a chown that really differs from this however.

Second, I've been investigating example.ini and I can't figure out how to create my own file and run make ini on it. Here are the instructions at the top of example.ini:

DO NOT EDIT THIS FILE

This is a base template. To apply changes to your

reddit instance, create a "myreddit.update" config

file, then run 'make ini'. 'make ini' will combine

this template with the myreddit.update file and create a

'myreddit.ini'. ('myreddit.update' is just an example;

any name will do - e.g., 'foo.update' will create

'foo.ini')

I did create a file called portcity.update. But when I run make ini, I get reddit@redditclone:~$ make ini make: *** No rule to make target `ini'. Stop.

I'm thinking maybe I created portcity.update wrong somehow (like is there a special procedure to create a config file?) Can I just use development.update? Or is that bad.

Thanks and happy weekend!

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