**** BEGIN LOGGING AT Tue Sep 10 02:59:58 2019 Sep 10 03:11:03 The software works alone when ran as ./file.py but not in the .service file. Sep 10 03:11:31 What do you think could be preventing me from running the .py file in a .service file? It keeps telling me that flask is not a module. Sep 10 03:16:17 I think python2 is my default python on my board. Sep 10 03:16:18 Blah. Sep 10 03:24:09 python2 and python3 are both available, you should use python3 Sep 10 03:24:38 and I can't answer that question without more details Sep 10 03:26:46 are you trying to run it as a system service or a user service? if it works when you run it directly, a user service may be more appropriate Sep 10 03:27:02 (see https://pastebin.com/uqY2DcGs for example and instructions) Sep 10 03:27:02 I know. Sep 10 03:28:29 I will try more ideas. Sep 10 03:28:36 I know it must be something silly. Sep 10 03:29:03 what does your service file look like? Sep 10 03:29:35 I will show you. I think one of my [] descriptors is out of whack. Please hold. Sep 10 03:30:47 your what? Sep 10 03:30:52 Nevermind. I just figured out what happened. I typed in something incorrect on my github page. Sep 10 03:31:01 [Install] Sep 10 03:31:12 This descriptor is misplaced. Sep 10 03:31:24 can you just show me your service file please? Sep 10 03:31:39 Sure. Sep 10 03:32:01 if you'd use wrong sections or directives then systemd would report an error when doing daemon-reload Sep 10 03:32:15 (report in journal / system log that is) Sep 10 03:32:30 https://pastebin.com/CCjmDb4g is the updated version. Sep 10 03:33:49 okay so you're using a system service instead of a user service, and you're pointlessly running it as root (bad idea). my guess is that you installed flask with pip3 under the debian account, which can therefore not be found Sep 10 03:34:06 Right. Sep 10 03:34:09 like I said 8 minutes ago, "if it works when you run it directly, a user service may be more appropriate" Sep 10 03:34:18 Oh. Sep 10 03:34:19 Okay. Sep 10 03:34:28 I did not understand at that point in time. Sep 10 03:34:40 also you swapped the [Install] and [Service] sections, they're the wrong way around Sep 10 03:35:16 WantedBy needs to be in the [Install] section, ExecStart in the [Service] section Sep 10 03:35:29 Okay. That is how I had it at first. Sep 10 03:35:34 then it was correct Sep 10 03:35:47 That is what I thought but I was getting errors. Sep 10 03:35:56 from systemd? Sep 10 03:35:59 like what? Sep 10 03:36:03 I could not figure out the error on why flask was not a module in python3. Sep 10 03:36:06 Please hold. Sep 10 03:36:29 that's an error from python, not from systemd Sep 10 03:36:39 Oh. Sep 10 03:36:43 if you were using wrong directives in your service file, systemd would give errors Sep 10 03:36:52 and refuse to start your service at all Sep 10 03:37:10 That is what is happening. It is refusing to start. Sep 10 03:37:15 (if it's sufficiently messed up anyway) Sep 10 03:37:21 no, it's starting but failing Sep 10 03:37:24 that's not the same thing Sep 10 03:37:27 Oh. Sep 10 03:37:33 Yea. You are right. Failed. Sep 10 03:37:46 anyway, I've already given you a probable solution Sep 10 03:37:55 Oh? Sep 10 03:38:03 and you acknowledged that Sep 10 03:38:05 05:34 < set_> Oh. Sep 10 03:38:05 05:34 < set_> Okay. Sep 10 03:38:10 Ha. Sep 10 03:38:19 You are too seriously man. Lighten up. Sep 10 03:38:25 Yes. seriously. Sep 10 03:38:52 Okay. I will keep trying to understand what I have done compared to what needs to happen. Sep 10 03:39:18 do you need the link to my user service example again, or is scrolling up to when I pasted the link 12 minutes ago within your abiliities? Sep 10 03:39:33 No. I will look at it again. Sep 10 03:39:40 Breathe! Sep 10 03:40:57 using a system service but with User=debian (as I do in my system service example https://pastebin.com/KXVdTNrL ) might work too, but if your service doesn't require any special privileges then a user service is probably a better choice anyway Sep 10 03:41:31 it results in an environment that's much closer to how things are when you run commands manually Sep 10 03:41:42 Okay. Sep 10 03:42:01 I guess there has been updates I have been unaware of in .service files. Sep 10 03:43:25 Sheesh. I read that paste. I was unaware of those examples and the need for those particular instances. Sep 10 03:43:32 Okay. Sep 10 03:43:37 I see why you are upset. Sep 10 03:43:39 Boy! Sep 10 03:43:47 I should have kept up. Sep 10 03:53:19 I was using the incorrect USB port on my desktop. Sep 10 03:53:23 Dang! Sep 10 04:04:06 Well, this is embarrassing. Sheesh. Sep 10 04:25:34 hey all. having some issues with SSH'ing into my beaglebone black. I got a uSD card and flashed it with the newest Stretch IoT based on some recs last week, and more of it is working now, but I still can't get it to negotiate SSH Sep 10 04:26:07 ip -br a: enp0s20u3 UNKNOWN 192.168.7.1/30 fe80::fe69:47ff:fe21:1a76/64 Sep 10 04:26:23 netstat -lntp on the beaglebone (via screen) has sshd on port 22 as expected Sep 10 04:32:41 okay, just got it working on windows, so it's an issue with my linux partition Sep 10 07:29:26 hi guys, can you link me to any resources to find out what sd card types and sizes are supportet for the BBB? Sep 10 07:29:50 supported* of course Sep 10 07:41:49 any micro-sd card should work with the BBB, to my understanding Sep 10 08:38:32 thrym: like tbr said, any microSD card should work Sep 10 08:59:44 alright, thanks :) Sep 10 09:00:04 I keep running into a full sdcard at the moment and I wanted to upgrade Sep 10 09:00:58 thrym: note that if the sd card is larger than the image written to sd card, you need to expand the partition and filesystem to be able to use all space on the sd card Sep 10 09:01:05 there's a script for it in /opt .. lemme check Sep 10 09:01:35 the sd card image is expanded, thank you Sep 10 09:01:39 ok Sep 10 09:01:42 It's just a small 4GB one Sep 10 09:02:07 what a bizarre world we live in where 4GB is "small" Sep 10 09:02:45 of course the alternative to using a larger card is having less crap on one's system ;) Sep 10 09:03:38 softwarewise it's pretty bare Sep 10 09:04:04 what's taking up your space then? large media files? Sep 10 09:04:29 2gb of pdfs alone :/ Sep 10 09:04:47 ... why do you have 2GB of PDFs on your beaglebone? o.O Sep 10 09:05:11 i'm testing different solutions for document management Sep 10 09:05:26 ... on a beaglebone? Sep 10 09:05:52 yeah, the bbb is for testing purposes, as soon as I get what I want I'll migrate Sep 10 10:06:22 m Sep 11 02:25:50 Well, @zmatt...what you typed to me on the pastebin.com paste worked. I needed networking. Sep 11 02:26:13 Is networking instantiation new to the .service files? Sep 11 02:26:22 Or is it BBB related? Sep 11 02:49:57 you have networking issues set_ ? Sep 11 02:50:12 .service is file extension for the system process manager called systemd Sep 11 02:50:19 you have no good reason to manipulate them directly Sep 11 02:50:26 if you have to make a change use the manager Sep 11 02:50:31 systemctl edit --full something.service Sep 11 02:50:59 systemctl...right! Sep 11 02:51:57 I am trying to find a way to run a Flask application in a WSGI server setting w/ gunicorn or Twisted. Sep 11 02:51:58 ... Sep 11 02:52:23 Neither work on the BBB as of now. I will try to smooth out the rough spots. Sep 11 02:53:43 brb Sep 11 02:59:24 There are probably particular files/directories where these files need to be located. Research will ensue! **** ENDING LOGGING AT Wed Sep 11 03:00:21 2019