/ot/ - testing for OPchan

gotta catch 'em all


New Thread:



Max Message Length: 4096
Make sure I have a block bypass
Files:
Spoiler Max File Size: 1.00 MB
File Limit Per Post: 3
Remember to follow the rules .


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.
39 posts and 2 images omitted.

senseless 10/08/2017 (Sun) 05:08:14 [Preview] No. 50
>>49
When I was resolving a merge conflict, I accidentally deleted a comma I should have left in place.

sigh senseless 10/09/2017 (Mon) 03:06:10 [Preview] No. 51
[senseless@why LynxChan]$ lynxchan -nd -r -rfe
Full deletion progress: 7%
Full deletion progress: 15%
Full deletion progress: 23%
Full deletion progress: 30%
Full deletion progress: 38%
Full deletion progress: 46%
Full deletion progress: 53%
Full deletion progress: 61%
Full deletion progress: 69%
Full deletion progress: 76%
Full deletion progress: 84%
An error occured during the full cache deletion.
{ MongoError: connection 3 to localhost:27017 timed out
at Function.MongoError.create (/home/node/LynxChan/src/be/node_modules/mongodb-core/lib/error.js:29:11)
at Socket.<anonymous> (/home/node/LynxChan/src/be/node_modules/mongodb-core/lib/connection/connection.js:198:20)
at Object.onceWrapper (events.js:314:30)
Message too long. Click here to view full text.

senseless Anonymous 10/21/2017 (Sat) 20:45:47 [Preview] No. 52
Open file ( 129.21 KB 1920x1080 1.png )

senseless 10/21/2017 (Sat) 20:49:35 [Preview] No. 53
Open file ( 103.13 KB 1920x1080 2.png )
And this site tells me I need a block bypass even when I don't, if I have "Make sure I have a block bypass" selected.

Anonymous 11/10/2017 (Fri) 14:13:33 [Preview] No. 54



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



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 ]