**** BEGIN LOGGING AT Wed Feb 20 02:59:57 2019 Feb 20 06:13:19 what do the beagleboard x15 leds mean Feb 20 10:31:49 devby[m]: there's a led that indicates the 12V supply is available (it lights up as soon as you connect a 12V supply to the board), there's a power-on led (indicates the VDD_3V3 is up, which happens late in the PMIC's power-on sequence), and there are four user leds (gpio-controlled) Feb 20 10:32:05 oh, and of course the ethernet link/activity leds on the ethernet connectors Feb 20 10:32:29 the default trigger for the user leds is defined in DT... lemme check Feb 20 10:34:30 0=heartbeat, 1=cpu0, 2=mmc0, 3=disk-activity Feb 20 10:35:15 I'm guessing it's a bug that they use "cpu0" (cpu activity on core 0) instead of "cpu" (cpu activity on both cores combined) Feb 20 15:32:19 Hey! Good morning! Feb 20 15:40:29 good morning (UGT) Feb 20 15:44:56 m Feb 20 15:48:08 Would the community be nice enough to point me how to deal with u-boot to start from scsi (ssd). I tried adding it to uEnv.txt, than edit u-boot via space on start. Not sure what I am doing wrong. It seems like ssd is loaded at the boot (kernel has it compiled not as module). Not sure where to start again today. Feb 20 15:48:41 I guess I will just study u-boot documentation until I get it right! Feb 20 15:51:14 Here is my boot in case someone has time to look into this: https://pastebin.com/BZ0Yp09M. Thank you so much! Feb 20 15:57:24 OK editing bootcmd, willl keep you posted! Feb 20 16:13:05 Can I use the mobile power bank(5V, 1A ) to supply the bbbw board? Thank you for your help. I am newbie for the bbbw. Feb 20 16:14:45 you probably can Feb 20 16:15:08 depends if you want to attach any additional peripherals Feb 20 16:17:39 to tbr, Thank you! So far, I only use the bbbw without any additional peripherals. I use the wifi to do something. Feb 20 16:20:06 that should work then. If you get instability or random shutdowns, then that might be signs of the regulator in the USB battery pack not keeping up with power consumption Feb 20 16:20:57 I've seen some of those very cheap ones go completely haywire and even destroy attached devices Feb 20 16:25:22 to tbr, Got it. I can use the power bank to supply the bbbw via usb port. I should be careful if I will attach any device in the future. Thank you again. Feb 20 17:30:40 This is the first time I've joined a chat sense 2002... Anyways, I'm looking to run my BBBW purely from battery, but came across this post suggesting that its not doable: https://electronics.stackexchange.com/a/373735 Feb 20 17:31:00 Is there a workaround? I'm not able to find it after 3 days of searching. Feb 20 17:44:03 Booted from SSD! Yuuuupi! Feb 20 17:52:14 Caleb_: depends™ Feb 20 17:53:47 Caleb_: if you put the battery out of the picture and generate 5V from it (like in a "power bank" device), then it will of course work. Feb 20 17:55:55 Andre_: which way did you end up using? loading kernel from SSD or eMMC? Feb 20 17:56:12 Hey! Feb 20 17:56:18 Per you suggestion Feb 20 17:56:40 boot from eMMC Feb 20 17:56:55 and than init from ssd Feb 20 17:57:01 so kernel from ssd Feb 20 17:57:09 but u-boot loads into emmc Feb 20 17:57:57 now working on fall back in case there so no ssd to run from emmc Feb 20 17:59:01 if you need u-boot help, they have their own IRC channel Feb 20 17:59:10 hahahaa Feb 20 17:59:16 now you are telling me Feb 20 17:59:18 hahahahahahaha Feb 20 17:59:25 I will look this up thanks for the tip ;) Feb 20 17:59:30 appreciate all the help Feb 20 18:02:47 np, happy you got things working Feb 20 18:48:50 I bought my Beagle Bone a long time ago unfortunately I'm just getting around to using it. Feb 20 18:49:32 It's a Revision A5A am I going to have trouble downloading and using the current software? Feb 20 19:09:01 ;) Feb 20 19:29:43 pfft, people really need to stick around after asking a question Feb 20 19:37:10 he waited 2 minutes, you're being unfair Feb 20 19:40:02 :P Feb 20 23:05:54 Okay. How can I take my online site offline from the BBB? I cannot figure it out. I am managing to use .wsgi files, .conf files, and apache2 to run a bone101/Support/bone101/ page. Feb 20 23:06:22 I am trying to turn my flask app into a site w/ WSGI and Apache2. Feb 20 23:07:00 This sounds odd, I know. Feb 20 23:07:59 Forget it. Feb 20 23:08:01 I have no idea what you meam by "online" vs "offline" in this context. a web app that runs on your beaglebone does not require internet connectivity to work Feb 20 23:08:10 Okay. Feb 20 23:08:43 I know now and this is b/c I remembered about the scripting language Bonescript taking over the 80 port. Feb 20 23:08:47 I just remembered. Feb 20 23:09:13 what does that have to do with... anything? Feb 20 23:10:02 I just set up my webpage to serve a Flask app but the port 80 on my BBB is bonescript. You told me this idea a while back. Feb 20 23:10:14 My webpage is an actual site. Feb 20 23:10:29 But this site is opening as the bonescript server now. Feb 20 23:10:38 Aw. Onto fixing it. Feb 20 23:11:40 okay, and? either just put whatever port number your server run on into the url you open, or disable whatever is running on port 80 so you can run your own stuff Feb 20 23:12:18 although, isn't port 80 in use for apache? and didn't you say you wanted to use flask with apache? so it sounds like you just need to change its config to send requests to your app instead of whatever it does now Feb 20 23:12:29 Right-o. I am disabling port 80 services/bonescript server instead of making my SSL certs. a reality right now. Feb 20 23:12:32 (no idea why you'd want to use apache though) Feb 20 23:12:34 No. bonescriopt. Feb 20 23:12:41 I am working out of a book again. Feb 20 23:12:48 SSL certs? Feb 20 23:12:52 Yes. Feb 20 23:12:59 I thought you said you wanted it to work offline? Feb 20 23:13:29 SSL certs are only for internet-accessible servers Feb 20 23:13:39 Nope. It is served from whatever BBB I choose at the time. I need this idea to work for the Maker Faire. Feb 20 23:13:40 Right. Feb 20 23:14:18 I just need the people to visit that site, one at a time or as a group while sharing, so that they can control the bot. Feb 20 23:14:28 Bzzt. Feb 20 23:18:00 zmatt: How do I stop a socket? Feb 20 23:18:05 on the BBB? Feb 20 23:18:12 Or...is it universal? Feb 20 23:18:15 what do you mean? Feb 20 23:18:27 anything to do with sockets is not beaglebone-specific regardless Feb 20 23:19:11 I have port 80 taken up at /etc/systemd/system/sockets.target.wants/ and I was thinking of changing the port to that file, i.e. bonescript.socket. Feb 20 23:19:12 Okay. Feb 20 23:19:19 So, just systemctl? Feb 20 23:19:39 oh you mean stop (or disable?) a socket unit Feb 20 23:19:46 same as any other unit, with systemctl Feb 20 23:19:47 Yes sir. Feb 20 23:19:49 Okay. Feb 20 23:20:11 I thought there was something you taught to me a while back about the BBB specifically. I guess I was incorrect. Feb 20 23:20:22 it must have been just the systemctl stuff. Feb 20 23:20:29 typically both the socket unit and the associated service unit need to be stopped to actually close the socket Feb 20 23:20:42 Ah! Feb 20 23:21:07 That is a good idea. So, it is most likely in /lib/systemd/system/.. Feb 20 23:21:17 what is? Feb 20 23:21:26 note: don't modify stuff in /lib Feb 20 23:21:36 Okay. Feb 20 23:22:45 I looked around in /etc/systemd/system/ and found that in the dir, socket.target.wants, is where the bonescript/port 80 file is located but it is not a .service file. Feb 20 23:22:52 it is a socket file. Feb 20 23:23:37 a socket unit will make systemd listen on a port (or path in case of unix domain sockets) and start the associated service if there's any incoming connection Feb 20 23:23:52 Okay but... Feb 20 23:24:09 Should I look for a specific .service file outside of that .socket file? Feb 20 23:24:12 by default the associated service has the same name as the socket unit but with ".socket" replaced by ".service" Feb 20 23:24:24 why are you looking for them? what are you doing exactly? Feb 20 23:24:37 if you're trying to disable the service that's claiming port 80, you found it Feb 20 23:25:29 I am going to disable that .socket and ".service file that I cannot find yet" to use my port 80 as default before learning about ssl. Feb 20 23:25:35 Oh! Feb 20 23:25:38 Okay. Feb 20 23:25:59 sudo systemctl disable --now bonescript.socket bonescript.service Feb 20 23:26:18 I looked for the bonescript.service file. I have been unable to find it. Feb 20 23:26:48 I know that systemctl can disable that file but I wanted to keep looking for it until I found it. Feb 20 23:27:21 systemctl status bonescript.service should tell you the path of the service file (on the second line) Feb 20 23:27:28 Right. Feb 20 23:27:34 You are awesome. Good idea. Feb 20 23:28:06 It is in /lib Feb 20 23:28:14 Can I disable it still? Feb 20 23:28:46 enabling/disabling doesn't modify anything in /lib, it creates/removes a symlink in /etc Feb 20 23:28:53 I got you. Feb 20 23:29:19 Okay. So some insight to get is do not alter things in /lib but symlinks are okay. Feb 20 23:29:40 it only makes changes in /etc Feb 20 23:29:54 Oh. Feb 20 23:30:26 So, even w/out the file being in the /etc/systemd/system dir, that symlink is located in that /etc dir. somewhere? Feb 20 23:30:30 for enable/disable those changes are more specifically the creation/deletion of symlinks (that point to the unit file, regardless of whether the unit file resides in /etc or in /lib) Feb 20 23:30:40 Okay. Feb 20 23:30:43 Got it. Feb 20 23:31:31 \/lib/systemd is for files that's part of packages, /etc/systemd is for your own stuff, i.e. your system configuration (which units are enabled), as well as your custom units Feb 20 23:32:09 I guess I could put a new port backing on the IP address of my BBB in my .wsgi file. Feb 20 23:32:18 Aw. Feb 20 23:32:24 Too many options as usual. Feb 20 23:32:43 I never thought that the networking part would be so difficult. Feb 20 23:33:21 Let me try typing in a port to my Personal IP address/Website. Feb 20 23:33:26 This may prove valuable. Feb 21 00:13:41 zmatt: Are you still around? Feb 21 00:14:37 I am messing w/ Avahi right now. i am in the file sockets.target.wants now. Feb 21 00:15:14 I see that there is some type of avahi-daemon in /var/run. Feb 21 00:15:31 Do you think this would route my site to the bone server? Feb 21 00:19:05 GenTooMan: Do you know about networking on the BBB? Feb 21 00:24:54 I know a little bit about networking. I don't know the intimate details of the ether cat on the BBB. I may or may not be able to answer a question regarding it. :D Feb 21 00:25:06 Okay. Feb 21 00:25:08 Here goes it. Feb 21 00:25:19 I am messing we apache2 for servers. Feb 21 00:25:41 .wsgi files to host my site online via serving it from the BBB. Feb 21 00:25:45 and... Feb 21 00:25:57 Forget it. Feb 21 00:26:09 I cannot even describe what is going on right now. Feb 21 00:26:20 I cannot reload apache2 Feb 21 00:26:33 I used systemctl and apachectl. Feb 21 00:27:34 Is apache2 not working? Did you check it's daemon process? Feb 21 00:27:40 Nope. Feb 21 00:27:41 Not yet. Feb 21 00:27:58 I tried to reload apache2 like this: sudo systemctl reload apache2 Feb 21 00:28:51 first what is the process called (if I only had a name) then see if apache is loaded as a process and check what the parent process ID is. You should be able to find all processes using ps -axl Feb 21 00:29:14 Okay. Let me check. Feb 21 00:29:34 use ps -axl | less so you don't lose information Feb 21 00:30:37 Okay. Now, what am I looking for? Feb 21 00:30:55 The apache2.service will not start. Feb 21 00:32:46 I found an avahi-daemon in there. Feb 21 00:36:10 Apache should give you a list of complaints if it doesn't start did you look at the error log? Feb 21 00:36:17 Yes. Feb 21 00:36:30 Just something about line 255 in their software. Feb 21 00:37:26 ummm apache has numerous files associated with it. FAQ for fun too https://wiki.apache.org/httpd/FAQ Feb 21 00:37:45 Okay. Feb 21 00:37:53 I will keep searching. Feb 21 00:39:50 Did you build the server natively or is it a binary package you loaded? Feb 21 00:40:03 The server was already on the system. Feb 21 00:40:25 W/ the BBB.io/latest-images .img file I booted this board from. Feb 21 00:41:02 Everything was "working" but it kept producing the bbb.io server instead of my own website. Feb 21 00:41:35 Iot or LXQT image? Feb 21 00:41:41 IoT Feb 21 00:45:02 Ok so you are logged in via serial port console? Does the BBB have network connectivity? IE ping yahoo.com returns something other than "ping: rancidyakbutter.org: Name or service not known" Feb 21 00:46:19 Yes. Feb 21 00:46:21 I am online. Feb 21 00:46:26 I have networking. Feb 21 00:46:57 I'll quietly pull the plug on set_ so he isn't aware he's not connected. Feb 21 00:47:34 GenTooMan: When I change my .conf file or my .wsgi file, it complains about the prior file and not the current files. Feb 21 00:47:36 err anyhow you got net the error log have anything in it? you may be able to google on that error if it's debian 9.5 Feb 21 00:47:40 Does that make sense? Feb 21 00:47:52 Ya. 9.5. Feb 21 00:48:12 I will try again. I am dealing w/ the apache site now. Feb 21 00:48:21 I will try and google something later in the week. Feb 21 00:48:52 It should have a daemon it's been decades since I set up an http server. I use to keep my notes on a wiki on my machine that way. Feb 21 00:49:22 That's when wiki was a nothing compared to how they work now of course (more like a toy). Feb 21 00:49:30 Oh. daemon. Right but it is in a .service file these days on the BBB for now. Feb 21 00:50:15 GenTooMan: I am working out of a book from 2015 and updating things to make it relevant for today. Feb 21 00:50:23 It is not easy. Feb 21 00:52:19 sysv is the issue w/ it. Feb 21 00:52:57 The book, I think, was typed up in '15 which was just the cross-over point for sysv and systemd stuff. Feb 21 00:53:11 It might not even work as of now. Who knows? Feb 21 00:59:07 ... Feb 21 00:59:49 Executing: /lib/systemd/systemd-sysv-install enable apache2 <--- this is what happens when I type systemctl disable and then I enable it. Feb 21 01:00:56 yes Feb 21 01:00:59 that's intended Feb 21 01:01:03 Oh. Feb 21 01:01:05 Okay. Feb 21 01:01:20 it's an adapter for services that have no .service associated Feb 21 01:01:26 Oh. Feb 21 01:01:32 for old services Feb 21 01:01:48 Aw. Feb 21 01:02:38 I'm doing a chrome extension Feb 21 01:02:54 What type of chrom extension? Feb 21 01:02:59 to link a call center software with a CRM software Feb 21 01:03:09 Oh. Feb 21 01:03:24 it's listening for push updates from a gateway server Feb 21 01:03:37 when it receives one it opens a tab in the CRM software, ready to enter information about the call campaign Feb 21 01:03:50 the gateway server receives webhooks from the calling servers Feb 21 01:03:54 Aw. Difficult? Feb 21 01:04:08 the push update thing is pretty easy Feb 21 01:04:17 but the CRM software is super lame so it's difficult Feb 21 01:04:22 I need to hook into the page and all Feb 21 01:04:29 Aw. Feb 21 01:04:30 simulate button clicks Feb 21 01:04:40 Oh. Hmm. Feb 21 01:05:02 So, it is like a webpage that creates its own understanding via software? Feb 21 01:05:08 Or user input? Feb 21 01:06:13 the CRM ? Feb 21 01:06:54 it's a "customer reliationship management" software Feb 21 01:06:59 Oh. I must have misunderstood. Feb 21 01:07:02 to input into a database info about the call just made Feb 21 01:07:23 I thought the user input came from the phone and the software dictated the crm ideas. Feb 21 01:07:29 yeah Feb 21 01:07:29 Oh. Feb 21 01:07:36 I pre-fill the CRM input with info from the phone call Feb 21 01:07:42 well, with info about the phone call Feb 21 01:07:49 who called, when Feb 21 01:07:55 who was logged in in the call center Feb 21 01:08:04 Oh. Does someone have to answer the phone? Feb 21 01:08:05 I put all this in the CRM window and the user fills in the rest Feb 21 01:08:08 yeah Feb 21 01:08:26 Dang. I thought you did this all w/out people on the other side answering phones. Feb 21 01:08:36 I was like, DANG! Feb 21 01:08:38 no it doesn't listen to the phone conversation Feb 21 01:08:39 lol Feb 21 01:08:44 google does that tho Feb 21 01:08:45 Oh. Still nice. Feb 21 01:08:49 with the google assistant Feb 21 01:08:52 Yep. Feb 21 01:08:53 it can make appointments Feb 21 01:09:40 I used to use the website via third party apps, i.e. my website. Now, I want to host it on the bBB to test things out. Feb 21 01:09:55 w/ software, services, and ideas. Feb 21 01:09:55 which website ? Feb 21 01:09:59 Mine. Feb 21 01:10:03 ah Feb 21 01:10:07 you've got a static ip ? Feb 21 01:10:10 Lafayette-Parish.org Feb 21 01:10:18 It is down now. Feb 21 01:10:22 I have a rpi and a bbb but I don't host it at home, the rpi isn't powerful enough Feb 21 01:10:25 nor is the bbb Feb 21 01:10:33 but my connection is nice, I have fiber Feb 21 01:10:37 but it's still not good enough Feb 21 01:10:51 Oh. This is going to be just for a tiny app. that controls a bot. Feb 21 01:10:56 I want 99% uptime, a minimum bandwidth Feb 21 01:11:07 I wanted to host this website for the Maker Faire. Feb 21 01:11:15 you need help in doing it ? Feb 21 01:11:18 you have a static ip ? Feb 21 01:11:23 You know this, man. Feb 21 01:11:37 Do you use nginx or apache2? Feb 21 01:11:40 nginx Feb 21 01:11:46 apache2 is damn too heavy Feb 21 01:11:50 Dang. I guess I can try that too. Feb 21 01:11:51 Oh. Feb 21 01:11:52 nginx is lightweight Feb 21 01:12:14 and easy to configure Feb 21 01:12:16 I tried nginx a while back and failed at it for some reason. I just tried apache2 and hit the dirt running. Feb 21 01:12:33 yeah that's just prejudice Feb 21 01:12:41 you did a small syntax mistake so categorized nginx as non-working Feb 21 01:12:44 but really it's better than apache Feb 21 01:12:58 the configuration is shorter for any purpose, it has incredible performance Feb 21 01:13:03 I know I am supposed to cancel out their starter script and then make my own. Feb 21 01:13:06 .ini files! Feb 21 01:13:08 you can configure it as a reverse proxy in 4 lines Feb 21 01:13:13 Oh. Feb 21 01:13:16 But. Feb 21 01:13:17 nginx ? no it's .conf files Feb 21 01:13:21 .conf files? Feb 21 01:13:40 Oh. Feb 21 01:13:40 yeah they provide a default vhost so you can modify it Feb 21 01:13:40 Okay. Feb 21 01:13:42 I erased that file and started my own. Feb 21 01:13:45 you put the config in /etc/nginx/sites-available Feb 21 01:13:54 then you symlink it in /etc/nginx/sites-enabled Feb 21 01:13:54 Right. Just like apache2. Feb 21 01:13:58 Oh. Feb 21 01:14:03 then verify the syntax with nginx -t, then you can reload Feb 21 01:14:07 Right. Feb 21 01:14:09 I got that far. Feb 21 01:14:35 the file should end in .conf Feb 21 01:14:39 at least in older nginx versions Feb 21 01:14:41 and that's all Feb 21 01:14:44 Okay. Feb 21 01:14:53 to proxy to another server you use proxy_pass it's a matter of 3 or 4 lines total Feb 21 01:15:01 to use ssl same thing, just add one line or two Feb 21 01:15:20 Send in a pastebin paste if you do not mind. I can use it and try it out w/ my site. Feb 21 01:15:41 you use php ? Feb 21 01:15:42 https://paste.serveur.io/4jXOjN4g.conf Feb 21 01:15:46 here's a php conf I use Feb 21 01:15:53 I use python. Feb 21 01:15:55 ah Feb 21 01:15:59 with which framework ? Feb 21 01:16:02 Flask. Feb 21 01:16:06 so it's wsgi ? Feb 21 01:16:10 .wsgi! Feb 21 01:16:13 right Feb 21 01:16:15 Yep. Feb 21 01:16:20 I don't know how that works but it's pretty simple with nginx I heard Feb 21 01:16:28 Oh. No issue. Feb 21 01:16:33 to have https I just include this one snippet in my nginx conf, let me show Feb 21 01:16:40 I can keep trying. I already mucked up the apache2 server. Feb 21 01:16:42 for letsencrypt validation Feb 21 01:16:54 Yep. I read about that too. Feb 21 01:17:05 https://paste.serveur.io/PWPREvLV.conf Feb 21 01:17:08 see what I added Feb 21 01:17:10 the .well-known part Feb 21 01:17:13 you just need that Feb 21 01:17:21 well you need that in a port 80 block sorry, not the ssl block Feb 21 01:17:23 but you get the idea Feb 21 01:17:30 Oh. Okay. Yep. Feb 21 01:17:32 just serve the /.well-known directory instead of proxying it Feb 21 01:17:36 and letsencrypt can validate Feb 21 01:17:47 me I don't use that I have my own domain name server Feb 21 01:17:58 Oh. Feb 21 01:17:59 so I just let letsencrypt contact the dns server and add a TXT record on the fly Feb 21 01:18:06 that allows for wildcard certificates Feb 21 01:19:05 let me see for wsgi Feb 21 01:19:12 see and try with a simple python wsgi server Feb 21 01:20:02 I have a different set up, probably. As of now, I am stuck w/ a Win 10 machine on PuTTY via my BBB and ethernet on the BBB. Feb 21 01:20:11 ... Feb 21 01:20:48 I have this hosted website that I just canceled using their hosted software for making websites. Feb 21 01:20:56 I figured I would code my own. Feb 21 01:20:56 ah, I see Feb 21 01:21:00 so you're new to sysadmin ? Feb 21 01:21:05 Sure. Feb 21 01:21:11 I am new to everything. Feb 21 01:21:17 Constantly. Feb 21 01:21:32 I keep trying to learn. Feb 21 01:23:58 set_ if at first you don't succeed it's nothing new. :D Feb 21 01:24:11 Right-O! Feb 21 01:24:22 When you learned to walk how did you learn to walk? By trying to make a step. Feb 21 01:24:36 No, I had a stroller. I was strolling. Feb 21 01:24:47 Just kidding. I have no idea. Feb 21 01:25:17 heh, apparently all my brothers and I started by running.. I digress you learn what ISn't balance first so you know what it is. Walking is balance. Feb 21 01:26:13 Same goes with getting a chunk of software working. First you learn if it's behaving correctly (IE it's not configured yet so it acts by default). Feb 21 01:26:47 If at first you do not fall, fall and fall again. Feb 21 01:28:18 I am quitting for tonight (for now). Feb 21 01:29:23 night sleep. Feb 21 01:29:38 It's only 20:30 hours but what the heck. Feb 21 01:30:18 ok set_ so you can use uwsgi with nginx to serve flask applications Feb 21 01:30:21 me I use tornado, not flask Feb 21 01:30:25 Right. Feb 21 01:30:32 I remember you said that a while ago. Feb 21 01:30:34 it has its integrated http server, it's pretty cool Feb 21 01:31:04 mawk! I am on break right now. Feb 21 01:31:13 I need to relax for 15 minutes. Feb 21 01:31:18 lol Feb 21 01:31:19 right Feb 21 01:32:33 so ... break already ... Feb 21 01:55:32 Okay. Feb 21 01:56:02 I think I am stuck w/ nginx now. Apache2 has gone bonkers. Feb 21 02:02:51 yeah good anyway set_ Feb 21 02:02:59 don't use apach on a low end system Feb 21 02:03:05 Okay. Feb 21 02:03:20 I am reading on how to make another nginx instance. Feb 21 02:03:44 So far, I have read the default file in /sites-available. Feb 21 02:04:01 I got a couple of links from their default file. Feb 21 02:04:10 just edit the default file Feb 21 02:04:16 and make sure it's symlinked in sites-enabled Feb 21 02:04:18 Serious? Feb 21 02:04:22 verify the syntax with nginx -t Feb 21 02:04:23 and reload Feb 21 02:04:24 yes Feb 21 02:04:24 Okay. Feb 21 02:04:37 don't edit directly in sites-enabled Feb 21 02:04:53 because your edit may create junk files that would get interpreted by nginx and make duplicates Feb 21 02:05:18 Okay but can I add my site to that default file somehow that you know? Feb 21 02:05:30 yes Feb 21 02:05:33 modify the default file Feb 21 02:05:36 I guess where it says default_server? Feb 21 02:05:42 no Feb 21 02:05:51 Oh. Where? Feb 21 02:05:54 default_server just means that it is the server that's served when the hostname is not found Feb 21 02:06:10 let me give you an example I actually use Feb 21 02:06:14 Okay. Feb 21 02:06:16 you have no ssl for now I guess Feb 21 02:06:20 Right. Feb 21 02:06:23 you should set it up quickly Feb 21 02:06:29 ssl? Feb 21 02:06:38 chrome says UNSECURED when you don't have https Feb 21 02:06:40 yeah, http Feb 21 02:06:41 s Feb 21 02:06:42 https Feb 21 02:06:46 ssl/tls is https Feb 21 02:06:51 or the reverse at least Feb 21 02:06:54 I know. I have seen that before w/ my other sites. Feb 21 02:06:56 Okay. Feb 21 02:07:18 no 443 and only 80 brings up that not secure stuff on the address bar. Feb 21 02:07:25 yes Feb 21 02:07:29 port 80 is http Feb 21 02:07:31 port 443 is https Feb 21 02:07:32 Right. Feb 21 02:07:49 https://paste.serveur.io/6s7DkXal.conf Feb 21 02:07:57 here's what I use to proxy through a ssh tunnel Feb 21 02:07:58 for instance Feb 21 02:08:11 Okay. Please hold. I am off to look at it. Feb 21 02:08:13 it proxies through another server on the local host Feb 21 02:08:21 here your server would be your uwsgi instance Feb 21 02:08:22 service flaks Feb 21 02:08:24 flask Feb 21 02:09:08 I do not use uwsgi anymore. I could not get it to work. Feb 21 02:18:32 nginx -t makes gives errors. Feb 21 02:21:36 https://pastebin.com/nDtbqCwt is the output of nginx -t. I did erase some of the uncommented items in that default file. Feb 21 02:25:15 line 14 (or maybe line 13) is where the problem is. Feb 21 02:25:42 I am checking now. Feb 21 02:25:55 something about the host name or maybe host ip address. Feb 21 02:26:11 Okay. Feb 21 02:26:32 I think the info. in my nginx.conf file was altered a couple of months ago. Feb 21 02:30:17 no host in ":80" <-- you have a : in there. Feb 21 02:30:29 Oh. Feb 21 02:30:30 the nginx example config does not. Feb 21 02:30:36 Aw! Feb 21 02:32:26 Okay. I changed line 14, 32, and 47. Feb 21 02:32:32 Things say working order now. Feb 21 02:32:32 ! Feb 21 02:32:48 syntax is okay and tests are successful. Feb 21 02:33:11 But. No site yet. Feb 21 02:34:57 other lines in the example config do have the : in them. Feb 21 02:35:30 just not on that listen 80 line. Feb 21 02:35:44 Okay. That was the issue w/ that line. Feb 21 02:37:47 nginx: [error] invalid PID number "" in "/run/nginx.pid" <--- this is the issue after the reload. Feb 21 02:39:22 all bets are off until you do a complete restart/reboot. Feb 21 02:39:36 Okay. I will attempt this now. Feb 21 02:39:40 reboot! Feb 21 02:40:13 I checked /run/nginx.pid and there was nothing in that file...at all. Feb 21 02:41:17 404 Not Found! Feb 21 02:41:22 That is better than nothing. Feb 21 02:43:06 brb Feb 21 02:52:07 https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04 Feb 21 02:52:10 I can try this idea. Feb 21 02:52:43 I am receiving a 404 on my website as of now. **** ENDING LOGGING AT Thu Feb 21 02:59:57 2019