**** BEGIN LOGGING AT Wed Sep 11 03:00:21 2019 Sep 11 03:44:40 Gunicorn is up and running! Sep 11 03:45:10 "something about the" PATH created me to not be able to use it. Sep 11 03:47:21 mawk: wtf is "systemctl edit" ? o.O Sep 11 03:47:44 to edit the .service files Sep 11 03:47:47 set_: I have no clue btw what you mean by "Is networking instantiation new to the .service files?" Sep 11 03:48:18 I said it in case set_ found a bunch of .service files in a directory to tell him he should not edit them directly Sep 11 03:48:24 I thought once upon a time I did not need the networking sections in the .service files. Sep 11 03:48:44 mawk: I'm pretty sure he's talking about a custom service file for his own service Sep 11 03:48:45 there is no [Networking] section in .service files Sep 11 03:48:47 ah Sep 11 03:49:07 I see bonescript.socket has changed ports. Sep 11 03:49:08 Yes! Sep 11 03:49:21 set_: I have no idea what you mean by "the networking sections in the .service files" ... there's no such thing Sep 11 03:49:28 Okay. Sep 11 03:49:36 if you need networking you just say After=network-online.target Sep 11 03:49:40 Right. Sep 11 03:49:43 Now, I know. Sep 11 03:49:45 in the [Unit] section Sep 11 03:49:54 that's normally not needed though Sep 11 03:49:58 I was unaware of this factoid. Sep 11 03:50:11 That is what i thought but as soon as I used it, it worked. Sep 11 03:50:21 mawk: you'd also need to pull that unit in with Wants or Requires Sep 11 03:50:26 set_: what error were you getting? Sep 11 03:50:39 I will show you. Sep 11 03:50:41 Hold please. Sep 11 03:50:44 isn't your thing a server? a server should have absolutely no need for network-online.target Sep 11 03:51:17 https://pastebin.com/5u40TxXF and yes, it is a server. Sep 11 03:51:25 (it should probably have After=networking.target but that's just to ensure the server is stopped before network goes down during shutdown) Sep 11 03:51:36 OH. Sep 11 03:51:46 set_: I'm sorry but that error has nothing to do with networking Sep 11 03:52:00 that error is related to python's search path for modules Sep 11 03:52:04 Well, I am clueless then. Sep 11 03:52:05 Oh! Sep 11 03:52:08 Now, I know! Sep 11 03:52:13 which is why I told you you should probably use a user service Sep 11 03:52:18 and gave you an example for a user service Sep 11 03:52:21 How could that have changed? Sep 11 03:52:23 but I see you're still using a system service Sep 11 03:52:25 I know. I saw it. Sep 11 03:52:31 Ha. Sep 11 03:53:19 How could have the PATH changed? Sep 11 03:53:31 compared to what? Sep 11 03:53:36 changed when/what? Sep 11 03:53:39 what do you mean? Sep 11 03:53:52 No clue. That is what I mean. I did not change it. Sep 11 03:54:04 you don't have PATH in service files anyway, you put the absolute path to the executable Sep 11 03:54:14 Right. Sep 11 03:54:15 he doesn't actually mean PATH Sep 11 03:54:23 ah Sep 11 03:54:25 I understand. Sep 11 03:54:44 I'm talking about where python looks for the flask module he installed, presumably using pip3 in the local python lib dir for the debian user Sep 11 03:54:46 what is the first line of your script set_ ? Sep 11 03:54:49 did you put the shebang right ? Sep 11 03:54:52 ah Sep 11 03:54:52 Right! Sep 11 03:54:53 yes Sep 11 03:54:59 which is why I told him to use a user service Sep 11 03:54:59 it's that Sep 11 03:55:05 to get an environment that's similar to running a script manually Sep 11 03:55:18 Oh. Sep 11 03:55:21 as added bonus, it won't be run as root, which it doesn't need to hence shouldn't Sep 11 03:55:32 Right. Sep 11 03:55:48 and it's pretty much a simple matter of putting the same service file in a different location Sep 11 03:55:54 Oh? Sep 11 03:56:00 I should have read about that. Sep 11 03:56:20 (and using the --user flag for systemctl to control the unit) Sep 11 03:56:22 see my example Sep 11 03:56:27 and the instructions at the top of it Sep 11 03:56:35 Okay. Sep 11 03:57:20 delete the old service, do systemctl daemon-reload Sep 11 03:57:23 then do systemctl --user edit MotorCape.service --force --full Sep 11 03:57:25 as your own user Sep 11 03:57:29 Okay. Sep 11 03:57:32 that will start editing your user service, do the user service there Sep 11 03:57:43 Oh. Sep 11 03:57:44 Okay. Sep 11 03:58:25 mawk: what does --full do here? Sep 11 03:58:51 if you don't use --full it does a drop-in service that overrides the precedent one Sep 11 03:58:55 in general Sep 11 03:59:02 found it Sep 11 03:59:02 and in this situation I don't know, but the docs say to use it « Run 'systemctl edit --force --full something.service' to create a new unit. » Sep 11 03:59:11 wasn't documented under the --full flag :P Sep 11 03:59:19 ah lol Sep 11 03:59:24 but it was under the edit command Sep 11 04:00:09 I've honestly never used systemctl edit, didn't even know it exists... it does seem more convenient Sep 11 04:00:46 (of course manually creating/editing the file in ~/.config/systemd/user/ works fine too) Sep 11 04:01:21 yeah Sep 11 04:09:42 set_: https://pastebin.com/3UE1gEtz something like this would be my suggestion to try Sep 11 04:11:03 (using either mawk's command to open an editor for the service flie, or manually saving it to /home/debian/.config/systemd/user/MotorCape.service after creating the relevant directory if it doesn't exist yet) Sep 11 04:11:49 okay Sep 11 04:13:03 of course this is just literally what's in my example (except for omitting Type=simple, which is optional since it's the default anyway), so I'm sure you already had this by now Sep 11 04:13:18 I think that paste is blank. Sep 11 04:13:34 ehm, no? Sep 11 04:13:44 I just clicked it and it was blank. Sep 11 04:14:11 it's not Sep 11 04:14:22 Ut oh. Something on my end, I guess. Sep 11 04:14:23 maybe pastebin.com is so bloated your adblocker won't display it or something Sep 11 04:14:31 https://paste.serveur.io/raw/2mSCn8Vl.service Sep 11 04:14:33 reuploaded it here Sep 11 04:14:37 Oh. Sep 11 04:14:42 Okay. Thank you. Sep 11 04:14:56 or just use the raw version of my paste, https://pastebin.com/raw/3UE1gEtz Sep 11 04:15:46 anyway, like I said it's just literally the user service example I'd already given earlier but with your specific description and ExecStart filled in (and minus the comments) Sep 11 04:15:59 Hey. Sep 11 04:16:14 Is Service supposed to go before Install? Sep 11 04:16:23 the order of the sections is irrelevant Sep 11 04:16:29 aw. Sep 11 04:16:36 Okay. I was wondering about that idea. Sep 11 04:17:31 ... /home/debian/.config/systemd/user/myService.service. Sep 11 04:17:33 Got it. Sep 11 04:17:35 the order of the directives within each section too (except when using the same directive multiple times to create lists, but that's usually not important) Sep 11 04:17:45 Okay. Sep 11 04:17:58 as long as each directive is in the correct section it's fine Sep 11 04:18:11 I got it. I always wondered. Sep 11 04:18:28 Well, since you sent over those pastes, I wondered. Sep 11 04:19:14 I always put the Service before Install. Sep 11 04:19:43 But since it does not matter, I know now. Sep 11 04:19:56 it's entirely personal preference Sep 11 04:20:16 I've come to prefer putting the Unit and Install sections first Sep 11 04:20:28 I got Unit first each time. Sep 11 04:21:32 Okay. Finally, droopy time. Sep 11 04:21:34 Later for now. Sep 11 04:21:53 since for the most part those two sections declare how this unit relates to other units.... e.g. because a Wants would go in Unit and a WantedBy goes into Install, and I view such things as closely related, I want the Install section next to the Unit section so I can keep those directives in close proximity Sep 11 04:22:15 instead of having one at the top of the unit file and the other at the bottom Sep 11 04:22:20 aw. Sep 11 04:22:24 That makes sense. Sep 11 04:22:36 but it's purely for aesthetics, it has no functional impact Sep 11 05:58:14 hiii Sep 11 13:16:30 m Sep 11 17:24:37 any one tried backing up the emmc to sd card using https://elinux.org/BeagleBone_Black_Extracting_eMMC_contentshttps://elinux.org/BeagleBone_Black_Extracting_eMMC_contents in the new BBB rev c?? Sep 11 17:25:12 I tried to but the sd boot couldn't detect any mmcblk1 - emmc fs Sep 11 17:25:27 so script fails with empty gz file. Sep 11 17:25:35 any idea?? or am i missing something?? Sep 12 01:39:04 I finally figured out gunicorn and uWSGI for running servers. All good intentions! **** ENDING LOGGING AT Thu Sep 12 03:02:41 2019