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 -  (23 children)

One. Whether or not chat gets embedded in saidit is controlled by feature_chat and some related config settings shown in example.ini (copy whatever you want to change to development.update, don't edit this one). It's all kind of destined to fail until youve setup TheLounge.

Two. Skipping that line sounds fine, we can get that dialed in later. It just increases some chat user limits.

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

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

Trying to start TheLounge with this command: start TheLounge:

$ cd ~/lounge-autoconnect $ nohup npm start ./ > thelounge.log 2>&1 &

I'm getting Permission denied

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

I can't tell which part is saying permission denied... can you try

$ cd ~/lounge-autoconnect
$ npm start

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

cd ~/lounge-autoconnect npm start returned this: https://pastebin.com/HdPntYa5

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

It says private paste, I can't read it

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

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

Weird, it seems to be choking on permissions for this folder:

/home/chatuser/.lounge

Maybe that is accidentally owned by root? Try

$ ls -la /home/chatuser/.lounge

And see. You can chown it back to 'chatuser'

$ sudo chown -R chatuser /home/chatuser/.lounge

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

I'm still getting "permission denied" even after I ran

sudo chown -R chatuser /home/chatuser/.lounge

I also ran a variety of other sudo chmod and sudo chown commands I found online before I even asked you because I hate to keep bothering you with every little thing! :(

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

It's possible that you are getting a new permission denied error, but let's make sure this .lounge folder gets squared away. Did you get the permissions changed there? From your last comment, yes, root owns all of it.

We need this to not say root at all:

 ls -la /home/chatuser/.lounge

It's not a big deal if you just want to run this as user 'reddit'.

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

ls -la /home/chatuser/.lounge

I'm not totally sure how to read this. Also, my formatting gets removed so it makes it harder for you to read this:

chatuser@redditclone:~/lounge-autoconnect$ ls -la /home/chatuser/.lounge total 24 drwx------ 4 chatuser root 4096 Jul 21 03:36 . drwxr-xr-x 10 chatuser chatuser 4096 Jul 21 03:01 .. -rw-r--r-- 1 chatuser root 7801 Jul 21 03:42 config.js drwxr-xr-x 2 chatuser root 4096 Jul 21 00:37 storage drwxr-xr-x 2 chatuser root 4096 Jul 21 03:44 users

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

Running it as user 'reddit' I get "no such file or directory'

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

chatuser@redditclone:~/lounge-autoconnect$ sudo ls -la /home/chatuser/.lounge total 24 drwx------ 4 root root 4096 Jul 21 03:36 . drwxr-xr-x 10 chatuser chatuser 4096 Jul 21 03:01 .. -rw-r--r-- 1 root root 7801 Jul 21 03:42 config.js drwxr-xr-x 2 root root 4096 Jul 21 00:37 storage drwxr-xr-x 2 root root 4096 Jul 21 03:44 users

Looks like it does think root owns it? Even though I was carefully to install it all under "chatuser" since the instructions say to install all the IRC stuff under a dedicated user ...