/ot/ - testing for OPchan

gotta catch 'em all


Reply:



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
● 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.

mongo seems fine senseless 03/27/2017 (Mon) 20:22:51 [Preview] No. 2
● mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2017-03-27 15:53:14 EDT; 28min ago
Docs: https://docs.mongodb.org/manual
Process: 1017 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
Process: 1014 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
Process: 1009 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
Main PID: 1816 (mongod)
CGroup: /system.slice/mongod.service
└─1816 /usr/bin/mongod --quiet -f /etc/mongod.conf run

Mar 27 15:53:13 localhost.localdomain systemd[1]: Starting High-performance, schema-free document-oriented database...
Mar 27 15:53:14 localhost.localdomain systemd[1]: Started High-performance, schema-free document-oriented database.
Mar 27 15:53:16 localhost.localdomain mongod[1019]: about to fork child process, waiting until server is ready for connections.
Mar 27 15:53:16 localhost.localdomain mongod[1019]: forked process: 1816

senseless 03/27/2017 (Mon) 20:29:45 [Preview] No. 3
TOR ips will be downloaded, this might take a while
{ Error: connect ECONNREFUSED 127.0.0.1:80
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 80 }
Failed to listen to HTTP.
{ Error: bind EACCES 0.0.0.0:80
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at cb (net.js:1324:16)
at rr (cluster.js:625:14)
at Worker.<anonymous> (cluster.js:594:9)
at process.<anonymous> (cluster.js:765:8)
at emitTwo (events.js:111:20)
at process.emit (events.js:191:7)
at process.nextTick (internal/child_process.js:744:12)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
code: 'EACCES',
errno: 'EACCES',
syscall: 'bind',
address: '0.0.0.0',
port: 80 }

senseless 03/27/2017 (Mon) 20:47:44 [Preview] No. 4
● lynxchan.service - LynxChan
Loaded: loaded (/etc/systemd/system/lynxchan.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-03-27 16:39:26 EDT; 3min 58s ago
Process: 1140 ExecStart=/usr/bin/lynxchan (code=exited, status=1/FAILURE)
Main PID: 1140 (code=exited, status=1/FAILURE)

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

senseless 03/27/2017 (Mon) 22:18:34 [Preview] No. 5
● lynxchan.service - LynxChan
Loaded: loaded (/etc/systemd/system/lynxchan.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2017-03-27 18:12:40 EDT; 2min 27s ago
Main PID: 1021 (node)
CGroup: /system.slice/lynxchan.service
├─1021 node /usr/bin/lynxchan
└─2268 /usr/local/bin/node /usr/bin/lynxchan

Mar 27 18:12:49 localhost.localdomain lynxchan[1021]: { Error: connect ECONNREFUSED 127.0.0.1:80
Mar 27 18:12:49 localhost.localdomain lynxchan[1021]: at Object.exports._errnoException (util.js:1022:11)
Mar 27 18:12:49 localhost.localdomain lynxchan[1021]: at exports._exceptionWithHostPort (util.js:1045:20)
Mar 27 18:12:49 localhost.localdomain lynxchan[1021]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
Mar 27 18:12:49 localhost.localdomain lynxchan[1021]: code: 'ECONNREFUSED',
Mar 27 18:12:49 localhost.localdomain lynxchan[1021]: errno: 'ECONNREFUSED',
Mar 27 18:12:49 localhost.localdomain lynxchan[1021]: syscall: 'connect',
Mar 27 18:12:49 localhost.localdomain lynxchan[1021]: address: '127.0.0.1',
Mar 27 18:12:49 localhost.localdomain lynxchan[1021]: port: 80 }
Mar 27 18:12:50 localhost.localdomain lynxchan[1021]: Worker 1 booted at Mon, 27 Mar 2017 22:12:50 GMT

senseless 03/27/2017 (Mon) 23:48:06 [Preview] No. 6
[i][b][u]text[/i] text[/b] text[/u]

senseless 03/27/2017 (Mon) 23:54:47 [Preview] No. 7
Open file ( 1.03 KB 299x41 markup nonsense 1.png )
text text text

senseless 03/28/2017 (Tue) 00:01:20 [Preview] No. 8
Open file ( 688.00 B 192x34 markup nonsense 2.png )
text

Using two 's for italics and three 's for bold right together looks kind of awkward, but what will it do?

first.sh senseless 03/28/2017 (Tue) 05:45:29 [Preview] No. 9
#!/bin/bash

#install Minimalist CentOS 7
#if on VirtualBox, follow these instructions:
#https://wiki.centos.org/HowTos/Virtualization/VirtualBox/CentOSguest
#be sure to select an installation destination and turn on the network interface in the Network and Host Name pane
#also, set up an admin user in the installer gui
#then reboot
#setup the CentOS VM with Bridged Adapter networking
#run ip addr in the vm - after link/ether, then after inet, grab that ip, ignoring the /24 part
#setup WinSCP in Windows to talk to CentOS through that IP
#copy this and the files directory into your home directory in CentOS
#access the website in the browser using the same IP

#Run this before running second.sh

#If this file is used later on, the user should update versions for the programs being installed - in particular, Mongo, node, and ffmpeg

set -x #echo running commands to stdout
dir=`pwd`
user=`whoami`
read
sudo yum install epel-release #adds EPEL to the list of repos that yum looks in
read
sudo yum install dkms #from the guide to install in a vm; shouldn't hurt anything
read
sudo yum groupinstall "Development Tools" #""
read
sudo yum install kernel-devel #""
read
cd ~
read
git clone https://github.com/nodejs/node.git
read
cd node
read
git checkout tags/v6.10.0
read
./configure
read
make -j4 # or -j however many logical cores there are
read
sudo make install
read
cd ~
read
sudo yum install zlib-devel
read
sudo yum install nasm
read
git clone https://git.ffmpeg.org/ffmpeg.git
read
cd ffmpeg
read
git checkout tags/n3.2.4
read
./configure
read
make
read
sudo make install # this also places ffmpeg, ffprobe, and ffserver in usr/local/bin instead of /usr/bin, but don’t think ffmpeg will need to be accessed with sudo, either
read
cd ~
read
sudo yum install policycoreutils-python #required to get semanage, I think
read
sudo cp "${dir}"/files/mongodb-org-3.4.repo /etc/yum.repos.d/.
read
sudo yum install -y mongodb-org
read
sudo semanage port -a -t mongod_port_t -p tcp 27017
read
systemctl start mongod #starts the mongod service
read
systemctl enable mongod #sets the mongod service to start on boot
read
sudo yum install emacs #I'm more acquainted with emacs than vim
read
sudo yum install ImageMagick
read
sudo firewall-cmd --permanent --zone=public --add-port=80/tcp
read
sudo firewall-cmd --permanent --zone=public --add-port=25/tcp #for sending account recovery passwords. home ISPs tend to block port 25, so we won't be able to test that until later
read
sudo firewall-cmd --reload
read
sudo setcap 'cap_net_bind_service=+ep' `which node`
read
sudo useradd node -s /usr/bin/nologin #this user doesn't get to log in, because it's just for running a daemon
read
sudo passwd node
read
sudo groupadd siteadmin
read
sudo gpasswd -a "${user}" siteadmin
read
sudo gpasswd -a node siteadmin
read
sudo chown -R node:siteadmin /home/node #folder's user is node and group is siteadmin
read
sudo chmod -R g+s /home/node #sets groupid bit, so all files and folders created beneath this folder will be owned by the same group as this folder
read
sudo setfacl -R -m g::rwX /home/node #these four setfacl commands could be combined into one big one, but fuck it
read
sudo setfacl -R -m o::0 /home/node
read
sudo setfacl -R -d -m g::rwX /home/node #sets default permissions so group gets to read and write, execute if it's a directory or has execute permission for someone else - new files and folders will inherit these permissions
read
sudo setfacl -R -d -m o::0 /home/node #sets default permissions so others don't get to do anything - same inheritance thing as above
read
su "${user}"

second.sh senseless 03/28/2017 (Tue) 05:46:43 [Preview] No. 10
#!/bin/bash

#run this after first.sh

#If this file is used later on, the user should update versions for the programs being installed - in particular, LynxChan and PenumbraLynx

set -x #echo running commands to stdout
dir=`pwd`
user=`whoami`
cd /home/node #LynxChan has to be here if it's set to run with an init script
read
git clone https://gitgud.io/LynxChan/LynxChan.git
read
cd LynxChan
read
git checkout tags/1.7.5 #o
read
cd aux
read
set +x
echo "n - don't want the default front end"
echo "y - do want node dependencies"
echo "n - don't wamt to install default settings"
echo "y - do want to install LynxChan-LocationDownloader"
set -x
./setup.sh
read
cd ..
read
git clone https://gitgud.io/LynxChan/LynxChanAddon-CaptchaThrottler.git ./src/be/addons/CaptchaThrottler
read
cp -r "${dir}"/files/settings ./src/be/settings
read
git clone https://gitgud.io/LynxChan/PenumbraLynx.git ./src/fe
read
cd src/fe
read
git checkout tags/1.7.0
read
set +x
echo "Answer y - we do want the default settings"
set -x
read
./setup.sh
read
cd static
read
cp "${dir}"/files/logo.png .
read
cp "${dir}"/files/favicon.ico .
read
touch no-tor.txt
read
cd ../../..
read
cd aux
read
set +x
echo "y - do want to setup a lynxchan command"
echo "hit enter without typing anything - you probably don't want an init script when you're just testing things out"
echo "if you do want an init script, enter \"systemd\""
set -x
read
sudo ./root-setup.sh
read
set +x
echo "Did you select \"systemd\" just now? (y/n)"
read selectedSystemd
set -x
if [ "${selectedSystemd}" == "y" ] ; then
systemctl start lynxchan
read
systemctl enable lynxchan
fi
read
cd ../..
read
set +x
echo "creating account within lynxchan for senseless with password \"badpassword\""
echo "change this password immediately on the website"
set -x
read
lynxchan --create-account --login senseless --password badpassword --global-role 0 --no-daemon
read
mongofiles -h localhost -d lynxchan -p 27017 -l LynxChan/src/fe/static/favicon.ico put /favicon.ico
read
set +x
echo "can start the website running with the lynxchan command, or it's already running, because you configured its service"

senseless 03/28/2017 (Tue) 08:56:15 [Preview] No. 14
>>9
>>10
This is in two parts, because there's no way to get the current session to acknowledge a change to the current user's group memberships. So the first script switches user to yourself, and then you run the second script.

The lynxchan service is still failing on reboot, because it couldn't access the mongod service. The idea that I somehow got it to work properly in another VM, without remembering what I did differently, is pretty irritating.

I got rid of a command to create a soft link from /usr/local/bin/node to /usr/bin/node, because it seemed unnecessary. That command couldn't have done it, right?

Then there's Wants= and Requires=
http://stackoverflow.com/questions/21830670/systemd-start-service-after-specific-service

Anonymous 03/28/2017 (Tue) 12:07:52 [Preview] No. 15
>>14
>sudo semanage port -a -t mongod_port_t -p tcp 27017
This is not necessary either.

The lynxchan service doesn't have to access the service, what exactly is happening?

lynxchan service failed on startup senseless 03/28/2017 (Tue) 15:08:50 [Preview] No. 16
● lynxchan.service - LynxChan
Loaded: loaded (/etc/systemd/system/lynxchan.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-03-28 04:37:05 EDT; 6h ago
Process: 1103 ExecStart=/usr/bin/lynxchan (code=exited, status=1/FAILURE)
Main PID: 1103 (code=exited, status=1/FAILURE)

Mar 28 04:37:05 localhost.localdomain lynxchan[1103]: at Connection.<anonymous> (/home/node/LynxChan/src/be/node_modules/mongodb-core/lib/connection/pool.js:260:12)
Mar 28 04:37:05 localhost.localdomain lynxchan[1103]: at Connection.g (events.js:291:16)
Mar 28 04:37:05 localhost.localdomain lynxchan[1103]: at emitTwo (events.js:106:13)
Mar 28 04:37:05 localhost.localdomain lynxchan[1103]: at Connection.emit (events.js:191:7)
Mar 28 04:37:05 localhost.localdomain lynxchan[1103]: at Socket.<anonymous> (/home/node/LynxChan/src/be/node_modules/mongodb-core/lib/connection/connection.js:162:49)
Mar 28 04:37:05 localhost.localdomain lynxchan[1103]: at Socket.g (events.js:291:16)
Mar 28 04:37:05 localhost.localdomain lynxchan[1103]: at emitOne (events.js:96:13)
Mar 28 04:37:05 localhost.localdomain systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Mar 28 04:37:05 localhost.localdomain systemd[1]: Unit lynxchan.service entered failed state.
Mar 28 04:37:05 localhost.localdomain systemd[1]: lynxchan.service failed.

/var/run/mongodb (code=exited, status=0/SUCCESS) ? senseless 03/28/2017 (Tue) 15:13:44 [Preview] No. 17
● mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2017-03-28 04:37:01 EDT; 6h ago
Docs: https://docs.mongodb.org/manual
Process: 1025 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
Process: 1015 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
Process: 1010 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
Main PID: 2063 (mongod)
CGroup: /system.slice/mongod.service
└─2063 /usr/bin/mongod --quiet -f /etc/mongod.conf run

Mar 28 04:37:00 localhost.localdomain systemd[1]: Starting High-performance, schema-free document-oriented database...
Mar 28 04:37:01 localhost.localdomain systemd[1]: Started High-performance, schema-free document-oriented database.
Mar 28 04:37:04 localhost.localdomain mongod[1102]: about to fork child process, waiting until server is ready for connections.
Mar 28 04:37:04 localhost.localdomain mongod[1102]: forked process: 2063

senseless 03/28/2017 (Tue) 15:19:20 [Preview] No. 18
and
systemctl start lynxchan
gets the board up just fine

senseless 03/28/2017 (Tue) 15:25:56 [Preview] No. 19
MongoDB shell version v3.4.3
git version: f07437fb5a6cca07c10bafa78365456eb1d6d5e1
OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
allocator: tcmalloc
modules: none
build environment:
distmod: rhel70
distarch: x86_64
target_arch: x86_64

sudo cat /etc/systemd/system/lynxchan.service senseless 03/28/2017 (Tue) 15:34:34 [Preview] No. 20
[Unit]
Description=LynxChan
After=mongod.service

[Service]
ExecStart=/usr/bin/lynxchan
User=node
StandardOutput=syslog
Restart=on-abort

[Install]
WantedBy=multi-user.target

IHC #mm0JOr 03/29/2017 (Wed) 21:01:51 [Preview] No. 21
>>20
Curious about stuff.
>>21

IHC ##MxhYCx 03/29/2017 (Wed) 21:02:57 [Preview] No. 22
>>21
It handled that a lot better than KX.

senseless 03/31/2017 (Fri) 01:19:57 [Preview] No. 23
[senseless@why static]$ lynxchan -rfe -nd
TOR ips will be downloaded, this might take a while
No ips found in the provided list of TOR exit nodes.
events.js:160
throw er; // Unhandled 'error' event
^

Error: connect EACCES /tmp/unix.socket
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
[senseless@why static]$

senseless 04/02/2017 (Sun) 01:49:56 [Preview] No. 25
[senseless@why tmp]$ pwd
/home/node/tmp
[senseless@why tmp]$ getfacl .
# file: .
# owner: node
# group: siteadmin
# flags: -s-
user::rwx
group::rwx
other::---
default:user::rwx
default:group::rwx
default:other::---

[senseless@why tmp]$ getfacl unix.socket
# file: unix.socket
# owner: node
# group: siteadmin
user::rwx
group::r-x
other::---

I'm at a loss senseless 04/03/2017 (Mon) 01:25:41 [Preview] No. 26
[senseless@why LynxChan]$ lynxchan -m true -nd
TOR ips will be downloaded, this might take a while
No ips found in the provided list of TOR exit nodes.
events.js:160
throw er; // Unhandled 'error' event
^

Error: connect ECONNREFUSED /home/node/tmp/unix.socket
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
[senseless@why LynxChan]$ ls -la ../tmp
total 12
drwxrws---+ 2 node siteadmin 4096 Apr 2 18:18 .
drwxrws---+ 5 node siteadmin 4096 Apr 1 21:06 ..
srwxrwx---. 1 senseless siteadmin 0 Apr 2 18:18 unix.socket
[senseless@why LynxChan]$ groups node
node : node siteadmin
[senseless@why LynxChan]$

senseless 04/03/2017 (Mon) 02:37:04 [Preview] No. 27
[senseless@why tmp]$ lynxchan -r -cc -nd
/home/node/LynxChan/src/be/kernel.js:678
throw error;
^

Error: connect ECONNREFUSED 127.0.0.1:80
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
[senseless@why tmp]$ lynxchan -r -nd
/home/node/LynxChan/src/be/kernel.js:678
throw error;
^

Error: connect ECONNREFUSED 127.0.0.1:80
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
[senseless@why tmp]$

senseless 04/03/2017 (Mon) 03:24:46 [Preview] No. 28
>>27
Why would it even try to connect when I use the --no-daemon flag?

senseless 04/03/2017 (Mon) 03:26:04 [Preview] No. 29
>>28
I rolled back to 1.7.6 and it's basically doing the same thing.

senseless 04/03/2017 (Mon) 03:50:33 [Preview] No. 30
[senseless@why node]$ systemctl status lynxchan
● lynxchan.service - LynxChan
Loaded: loaded (/etc/systemd/system/lynxchan.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2017-04-02 20:42:00 PDT; 5min ago
Process: 2260 ExecStart=/usr/bin/lynxchan (code=exited, status=1/FAILURE)
Main PID: 2260 (code=exited, status=1/FAILURE)

Apr 02 20:42:00 why.r.u.looking.at.me systemd[1]: Started LynxChan.
Apr 02 20:42:00 why.r.u.looking.at.me systemd[1]: Starting LynxChan...
Apr 02 20:42:00 why.r.u.looking.at.me lynxchan[2260]: /home/node/LynxChan/src/be/node_modules/mongodb/lib/utils.js:123
Apr 02 20:42:00 why.r.u.looking.at.me lynxchan[2260]: process.nextTick(function() { throw err; });
Apr 02 20:42:00 why.r.u.looking.at.me lynxchan[2260]: ^
Apr 02 20:42:00 why.r.u.looking.at.me systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Apr 02 20:42:00 why.r.u.looking.at.me systemd[1]: Unit lynxchan.service entered failed state.
Apr 02 20:42:00 why.r.u.looking.at.me systemd[1]: lynxchan.service failed.

senseless 04/03/2017 (Mon) 05:17:15 [Preview] No. 31
>>27
I went back to 1.8.0 and was faced with this issue, again. I looked at line 678 of kernel.js and it was something about tor handling. I got rid of the cnofig to look in an empty text file for tor exit nodes and the problem went away.

lynxchan runs from the command line but fails when started as a service, with the following information-free text:

[senseless@why node]$ systemctl status lynxchan
● lynxchan.service - LynxChan
Loaded: loaded (/etc/systemd/system/lynxchan.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2017-04-02 22:04:28 PDT; 15s ago
Process: 3376 ExecStart=/usr/bin/lynxchan (code=exited, status=1/FAILURE)
Main PID: 3376 (code=exited, status=1/FAILURE)

Apr 02 22:04:27 why.r.u.looking.at.me systemd[1]: Started LynxChan.
Apr 02 22:04:27 why.r.u.looking.at.me systemd[1]: Starting LynxChan...
Apr 02 22:04:28 why.r.u.looking.at.me systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Apr 02 22:04:28 why.r.u.looking.at.me systemd[1]: Unit lynxchan.service entered failed state.
Apr 02 22:04:28 why.r.u.looking.at.me systemd[1]: lynxchan.service failed.

senseless 04/03/2017 (Mon) 13:42:25 [Preview] No. 32
[senseless@why node]$ sudo journalctl -u lynxchan -n
[sudo] password for senseless:
-- Logs begin at Wed 2017-03-29 17:11:15 PDT, end at Mon 2017-04-03 06:40:12 PDT. --
Apr 02 22:04:27 why.r.u.looking.at.me systemd[1]: Started LynxChan.
Apr 02 22:04:27 why.r.u.looking.at.me systemd[1]: Starting LynxChan...
Apr 02 22:04:28 why.r.u.looking.at.me systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Apr 02 22:04:28 why.r.u.looking.at.me systemd[1]: Unit lynxchan.service entered failed state.
Apr 02 22:04:28 why.r.u.looking.at.me systemd[1]: lynxchan.service failed.
Apr 02 22:09:33 why.r.u.looking.at.me systemd[1]: Started LynxChan.
Apr 02 22:09:33 why.r.u.looking.at.me systemd[1]: Starting LynxChan...
Apr 02 22:09:33 why.r.u.looking.at.me systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Apr 02 22:09:33 why.r.u.looking.at.me systemd[1]: Unit lynxchan.service entered failed state.
Apr 02 22:09:33 why.r.u.looking.at.me systemd[1]: lynxchan.service failed.

senseless 04/03/2017 (Mon) 13:59:29 [Preview] No. 33
[senseless@why node]$ journalctl -u lynxchan -n
-- Logs begin at Thu 2017-03-30 10:09:23 PDT, end at Mon 2017-04-03 06:54:29 PDT. --
Apr 03 06:49:03 why.r.u.looking.at.me systemd[1]: Starting LynxChan...
Apr 03 06:49:03 why.r.u.looking.at.me systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Apr 03 06:49:03 why.r.u.looking.at.me systemd[1]: Unit lynxchan.service entered failed state.
Apr 03 06:49:03 why.r.u.looking.at.me systemd[1]: lynxchan.service failed.
Apr 03 06:50:51 why.r.u.looking.at.me systemd[1]: Started LynxChan.
Apr 03 06:50:51 why.r.u.looking.at.me systemd[1]: Starting LynxChan...
Apr 03 06:50:52 why.r.u.looking.at.me lynxchan[5402]: /home/node/LynxChan/src/be/node_modules/mongodb/lib/utils.js:123
Apr 03 06:50:52 why.r.u.looking.at.me systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Apr 03 06:50:52 why.r.u.looking.at.me systemd[1]: Unit lynxchan.service entered failed state.
Apr 03 06:50:52 why.r.u.looking.at.me systemd[1]: lynxchan.service failed.

senseless 04/03/2017 (Mon) 14:04:09 [Preview] No. 34
But the mongo issue doesn't show up the next time I try to start the service.

[senseless@why node]$ journalctl -u lynxchan -n
-- Logs begin at Thu 2017-03-30 10:09:23 PDT, end at Mon 2017-04-03 07:00:50 PDT. --
Apr 03 06:50:51 why.r.u.looking.at.me systemd[1]: Starting LynxChan...
Apr 03 06:50:52 why.r.u.looking.at.me lynxchan[5402]: /home/node/LynxChan/src/be/node_modules/mongodb/lib/utils.js:123
Apr 03 06:50:52 why.r.u.looking.at.me systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Apr 03 06:50:52 why.r.u.looking.at.me systemd[1]: Unit lynxchan.service entered failed state.
Apr 03 06:50:52 why.r.u.looking.at.me systemd[1]: lynxchan.service failed.
Apr 03 07:00:31 why.r.u.looking.at.me systemd[1]: Started LynxChan.
Apr 03 07:00:31 why.r.u.looking.at.me systemd[1]: Starting LynxChan...
Apr 03 07:00:32 why.r.u.looking.at.me systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Apr 03 07:00:32 why.r.u.looking.at.me systemd[1]: Unit lynxchan.service entered failed state.
Apr 03 07:00:32 why.r.u.looking.at.me systemd[1]: lynxchan.service failed.

senseless 04/03/2017 (Mon) 14:56:59 [Preview] No. 35
[senseless@why node]$ sudo -u node /bin/bash
[sudo] password for senseless:
[node@why ~]$ pwd
/home/node
[node@why ~]$ whoami
node
[node@why ~]$ lynxchan
/usr/bin/env: node: No such file or directory

I am incompetent senseless 04/03/2017 (Mon) 17:13:21 [Preview] No. 36

senseless 04/03/2017 (Mon) 17:24:53 [Preview] No. 37
[senseless@why settings]$ sudo -u node /bin/bash
[node@why settings]$ lynxchan
/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 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
[sudo] password for senseless:
[node@why be]$ lynxchan -m true -nd
Checking if latest version is 11
[node@why be]$ getfacl /home/node/LynxChan/src/be/node_modules/bcrypt/lib/binding/bcrypt_lib.node
getfacl: Removing leading '/' from absolute path names
# file: home/node/LynxChan/src/be/node_modules/bcrypt/lib/binding/bcrypt_lib.node
# owner: node
# group: siteadmin
user::rwx
group::rwx
other::--x

[node@why be]$ exit
exit
[senseless@why be]$ getfacl /home/node/LynxChan/src/be/node_modules/bcrypt/lib/binding/bcrypt_lib.node
getfacl: /home/node/LynxChan/src/be/node_modules/bcrypt/lib/binding/bcrypt_lib.node: Permission denied
[senseless@why be]$ sudo getfacl /home/node/LynxChan/src/be/node_modules/bcrypt/lib/binding/bcrypt_lib.node
[sudo] password for senseless:
getfacl: Removing leading '/' from absolute path names
# file: home/node/LynxChan/src/be/node_modules/bcrypt/lib/binding/bcrypt_lib.node
# owner: node
# group: siteadmin
user::rwx
group::rwx
other::--x

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.

senseless 10/08/2017 (Sun) 03:50:30 [Preview] No. 49
[senseless@localhost be]$ systemctl status lynxchan
● lynxchan.service - LynxChan
Loaded: loaded (/etc/systemd/system/lynxchan.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2017-10-07 20:41:53 PDT; 13s ago
Process: 28030 ExecStart=/usr/bin/lynxchan (code=exited, status=1/FAILURE)
Main PID: 28030 (code=exited, status=1/FAILURE)

Oct 07 20:41:53 localhost.localdomain systemd[1]: Started LynxChan.
Oct 07 20:41:53 localhost.localdomain systemd[1]: Starting LynxChan...
Oct 07 20:41:53 localhost.localdomain systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Oct 07 20:41:53 localhost.localdomain systemd[1]: Unit lynxchan.service entered failed state.
Oct 07 20:41:53 localhost.localdomain systemd[1]: lynxchan.service failed.
[senseless@localhost be]$ cd ~
[senseless@localhost ~]$ lynxchan
undefined:75
"maintenanceImage": "images/maintenanceImage.png",
^

SyntaxError: Unexpected string in JSON at position 3110
at JSON.parse (<anonymous>)
at Object.exports.loadSettings (/home/node/LynxChan/src/be/settingsHandler.js:471:27)
at Object.<anonymous> (/home/node/LynxChan/src/be/kernel.js:608:17)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)

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)
at emitNone (events.js:105:13)
at Socket.emit (events.js:207:7)
at Socket._onTimeout (net.js:400:8)
at ontimeout (timers.js:469:11)
at tryOnTimeout (timers.js:304:5)
at Timer.listOnTimeout (timers.js:264:5)
name: 'MongoError',
message: 'connection 3 to localhost:27017 timed out' }

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


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 for reporting and bans by board staff): No cookies?