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 -  (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

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

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

[–][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 -  (0 children)

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