/ot/ - testing for OPchan

gotta catch 'em all


New Thread:



Max Message Length: 4096
Files:
Spoiler Max File Size: 1.00 MB
File Limit Per Post: 3
Remember to follow the rules .


Anonymous 09/09/2017 (Sat) 09:35:08 [Preview] No. 48 [Reply]
poop



senseless 03/27/2017 (Mon) 20:17:27 [Preview] No. 1 [Reply]
● lynxchan.service - LynxChan
Loaded: loaded (/etc/systemd/system/lynxchan.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-03-27 15:53:19 EDT; 22min ago
Process: 1020 ExecStart=/usr/bin/lynxchan (code=exited, status=1/FAILURE)
Main PID: 1020 (code=exited, status=1/FAILURE)

Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at Connection.<anonymous> (/home/node/LynxChan/src/be/node_modules/mongodb-core/lib/connection/pool.js:260:12)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at Connection.g (events.js:291:16)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at emitTwo (events.js:106:13)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at Connection.emit (events.js:191:7)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at Socket.<anonymous> (/home/node/LynxChan/src/be/node_modules/mongodb-core/lib/connection/connection.js:162:49)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at Socket.g (events.js:291:16)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at emitOne (events.js:96:13)
Mar 27 15:53:19 localhost.localdomain systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Mar 27 15:53:19 localhost.localdomain systemd[1]: Unit lynxchan.service entered failed state.
Mar 27 15:53:19 localhost.localdomain systemd[1]: lynxchan.service failed.
33 posts and 2 images omitted.

senseless 04/03/2017 (Mon) 17:49:01 [Preview] No. 38
>>37
I did

sudo rm -r node_modules
sudo -u node /bin/bash
npm install
exit

Everything works now

senseless 04/03/2017 (Mon) 18:03:26 [Preview] No. 39
[senseless@why be]$ lynxchan -m true -nd
/home/node/LynxChan/src/be/node_modules/mongodb/lib/utils.js:123
process.nextTick(function() { throw err; });
^

Error: Cannot find module '/home/node/LynxChan/src/be/node_modules/bcrypt/lib/binding/bcrypt_lib.node'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/node/LynxChan/src/be/node_modules/bcrypt/bcrypt.js:6:16)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
[senseless@why be]$ sudo -u node /bin/bash
Message too long. Click here to view full text.

senseless 04/04/2017 (Tue) 02:44:41 [Preview] No. 40
>>38
>>39
Because the setgid bit was straight up ignored in one of the node_modules.

senseless Anonymous 04/20/2017 (Thu) 19:38:02 [Preview] No. 41
Apr 18 10:00:56 why.r.u.looking.at.me lynxchan[3176]: gzip: stdin: unexpected end of file
Apr 18 10:00:56 why.r.u.looking.at.me lynxchan[3176]: at ChildProcess.exithandler (child_process.js:206:12)
Apr 18 10:00:56 why.r.u.looking.at.me lynxchan[3176]: at emitTwo (events.js:106:13)
Apr 18 10:00:56 why.r.u.looking.at.me lynxchan[3176]: at ChildProcess.emit (events.js:191:7)
Apr 18 10:00:56 why.r.u.looking.at.me lynxchan[3176]: at maybeClose (internal/child_process.js:877:16)
Apr 18 10:00:56 why.r.u.looking.at.me lynxchan[3176]: at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Apr 18 10:00:56 why.r.u.looking.at.me lynxchan[3176]: killed: false,
Apr 18 10:00:56 why.r.u.looking.at.me lynxchan[3176]: code: 1,
Apr 18 10:00:56 why.r.u.looking.at.me lynxchan[3176]: signal: null,
Apr 18 10:00:56 why.r.u.looking.at.me lynxchan[3176]: cmd: 'curl https://www.stopforumspam.com/downloads/listed_ip_1.zip | gunzip -' }

senseless 09/08/2017 (Fri) 23:17:14 [Preview] No. 47
[senseless@localhost tmp]$ systemctl status lynxchan
● lynxchan.service - LynxChan
Loaded: loaded (/etc/systemd/system/lynxchan.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Thu 2017-09-07 17:13:15 PDT; 22h ago
Process: 5245 ExecStart=/usr/bin/lynxchan (code=killed, signal=TERM)
Main PID: 5245 (code=killed, signal=TERM)

Sep 07 05:00:04 localhost.localdomain lynxchan[5245]: at emitTwo (events.js:106:13)
Sep 07 05:00:04 localhost.localdomain lynxchan[5245]: at ChildProcess.emit (events.js:191:7)
Sep 07 05:00:04 localhost.localdomain lynxchan[5245]: at maybeClose (internal/child_process.js:886:16)
Sep 07 05:00:04 localhost.localdomain lynxchan[5245]: at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Sep 07 05:00:04 localhost.localdomain lynxchan[5245]: killed: false,
Sep 07 05:00:04 localhost.localdomain lynxchan[5245]: code: 1,
Sep 07 05:00:04 localhost.localdomain lynxchan[5245]: signal: null,
Sep 07 05:00:04 localhost.localdomain lynxchan[5245]: cmd: 'curl https://www.stopforumspam.com/downloads/listed_ip_1.zip | gunzip -' }
Sep 07 17:13:15 localhost.localdomain systemd[1]: Stopping LynxChan...
Sep 07 17:13:15 localhost.localdomain systemd[1]: Stopped LynxChan.



certbot Anonymous 05/10/2017 (Wed) 22:32:24 [Preview] No. 42 [Reply]
to get certs in the first place:

systemctl stop lynxchan
sudo certbot certonly --standalone --rsa-key-size 4096
systemctl start lynxchan

--standalone, because the other modules depend on the server software being apache or nginx, or the server being able to serve arbitrary files from the base directory, ie. mychan.org/right-here, which lynxchan won't do, at least not without using mongofiles, which certbot isn't programmed to deal with. So you might be able to do it with certbot certonly --manual, but then you can't use that for automatically renewing your certs.

4096-bit rsa key, because why not?

add to /etc/crontab Anonymous 05/10/2017 (Wed) 22:52:31 [Preview] No. 43
05 05 * * * root certbot renew --pre-hook "systemctl stop lynxchan" --post-hook "systemctl start lynxchan" --renew-hook "/path/to/renew-cert-hook.sh" --rsa-key-size 4096 --quiet

5:05 am, because that seemed like a time when few people would be on the site, anyway, and also doesn't run right on the hour, to help Let's Encrypt not be hit with all the requests in the same minute. This command is run every day, but only updates the certs if they're within 30 days of expiring. Note this means the certs will be updated every 60 days, not every 90.

--pre-hook is run before attempting to renew the certs
--post-hook is run after attempting to renew the certs
--renew-hook is run after successfully renewing the certs

The --renew-hook script must be set chmod u+x. (I have it set ug+x) If it isn't, certbot will complain that it couldn't find the file on the PATH, which obviously isn't very helpful.

The cronjob must be run by root for the systemctl commands to be successfully executed.

/path/to/renew-cert-hook.sh Anonymous 05/10/2017 (Wed) 22:58:39 [Preview] No. 44
#!/bin/bash

#Modified from /path/to/renew-hook-script listed on
#https://certbot.eff.org/docs/using.html

#Referenced by a cron job in /etc/crontab

set -e

for domain in $RENEWED_DOMAINS; do

case $domain in
mychan.org)

daemon_cert_root=/path/to/LynxChan/src/be

# Make sure the certificate and private key files are
Message too long. Click here to view full text.

Anonymous 05/10/2017 (Wed) 23:00:13 [Preview] No. 45
>>43
>for the systemctl commands to be successfully executed
Also, to do almost everything in the --renew-hook script.

Anonymous 05/11/2017 (Thu) 02:55:00 [Preview] No. 46
Forgot to mention, use the --dry-run flag with all your certbot commands while you're testing out your setup. Otherwise, you'll hit the limit of five certs per week right away and not be able to do anything.



senseless 03/28/2017 (Tue) 07:13:13 [Preview] No. 11 [Reply]
Open file ( 32.15 KB 480x360 hqdefault[1].jpg )
Evidently, you can enter a web address in the file selection dialog, and it works, at least in Chrome on Windows 10.

My mind has been blown.

senseless 03/28/2017 (Tue) 07:26:44 [Preview] No. 12
Open file ( 27.58 KB 480x360 hqdefault[1].jpg )
From what google has shown me, this is due to the operating system handling it, though: downloading the file to a temporary location on the computer, then uploading from there.

senseless 03/28/2017 (Tue) 07:32:41 [Preview] No. 13
Open file ( 20.97 KB 480x360 hqdefault[1].jpg )


Reason:
Password:
Global
Delete only files
Delete media (Actually removes the saved files from the server, standard file deletion only removes the reference to the selected posts)

Captcha(Used only for reporting): No cookies?

[ 1 ]