/srv/irclogs.ubuntu.com/2018/06/06/#ubuntu-server.txt

naccrbasak: specifically waas pinging that in my latest branch, which tries to speed up the importer (and solve our idempotency issue), we would do branch manipulations at the end, so the tests need to change a bit (import_uunapplied_dsc, e.g., no longer does any branch manipulation). Will take some more time for me to rework the tests (I have all the tag parts of the tests passing now.04:37
neo4Hi05:15
neo4Who know how to solve this problem, why forever doesn't run from crontab but works from terminal?05:15
neo4https://github.com/foreverjs/forever/issues/99705:15
neo4this is my theme05:15
neo4PATH05:46
neo4we can't run command in crontab without new env variables05:46
neo4yes, I've solved it. are you  interested what I did?05:47
neo4add new evarinment variables05:47
neo4and explicetly say cron to use bash05:48
neo4said05:48
neo4I've solved this, there is decision https://github.com/foreverjs/forever/issues/99705:54
cpaelzerI realize I'm too busy when I start music after working for 4 hours already :-/09:02
cpaelzergood ?morning?09:02
blackflowgood almost noon. and lol yeah, been there :)09:05
blackflowmy google-fu is failing me, is there a ubuntu-specific debsecan alternative thingy?11:21
rbasakWhat's debsecan?11:25
rbasakOh. http://www.enyo.de/fw/software/debsecan/11:25
rbasakI'd never heard of that11:25
blackflowit'd be cool to have a tool like that for ubuntu. supposedly debsecan should be easily modifiable to read ubuntu specific databases11:26
rbasakI don't know of any equivalent. You might want to ask in #ubuntu-hardened where the security team hang out11:26
blackflowohhuh, yeah, I thought this was -hardened :)  thanks.11:26
DirtyCajuni am trying to get tgt to show a lun to my esxi host that is a LVM lv. When i give tgt a .img (or whatever) that i create with dd it works just fine. But any time i try to give it a disk (/dev/sdXX) or a lv (/dev/mapper/xxx/xxx) it doesnt show on the esxi side. any thoughts?12:11
DirtyCajuni asked the question for 2 weeks. Never got an answer... and my server magically decided to like it and start working... mind blown.12:45
blackflowDirtyCajun: zen of sysadmin. any problem will eventually fix itself. :)12:47
=== miguel is now known as Guest89445
=== tyhicks is now known as Guest86792
neo4hi14:18
neo4Who can estimate my English speaking? Can I make video tutorials. I'm going to do tutorial about linux?14:18
neo4this is my test video https://www.youtube.com/watch?v=fPAUiqEsBuU&t=2s14:19
dpb1neo4: wrong channel14:27
TvL2386hey guys, anybody got a if-pre-up.d script to work on 18.04?15:03
TomerHi15:06
TvL2386hi15:06
TomerIs it the right place to ask about systemd?15:07
rbasakTvL2386: see https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#Network_configuration15:07
rbasakTvL2386: AFAIK, since networkd doesn't support blocking pre-change hooks, as long as you use systemd-networkd you can't have those.15:07
rbasakTomer: you can ask about systemd _in Ubuntu_ here.15:08
TomerI'm trying to understand how a service is being run as a user15:08
Tomerthe systemd directive is User=blah15:09
TomerI did not see it used anywhere15:09
TvL2386rbasak: yeah I put my executable bash script in /usr/lib/networkd-dispatcher/routable.d and expected it to be ran on boot, but it's not15:09
rbasakTomer: are you looking for systemd user instances?15:10
Tomerpostgres, for example, has a user in the shadow file, but no User directive anywhere. The process is being run as a user15:10
rbasakTvL2386: did you install networkd-dispatcher?15:10
TvL2386rbasak: networkd-dispatcher 1.7-0ubuntu3 was already installed15:11
rbasakTomer: it's quite common for daemons to drop their own privileges down from root. I don't know about postgres specifically without looking, but in these cases there would be no User directive in systemd. It'd be down to individual daemon configuration.15:11
TvL2386I have a correct #!/bin/sh shebang, line 2 is `date > /tmp/iptables-restore` but that file is never created... so it's not ran? Also cannot find any evidence in /var/log/syslog that it was run15:11
TomerI've searched the source code of postgres, there's no use of setuid, setguid or seteuid.15:12
TomerEach deamon is supposed to drop it's own privileges? There's no implicit mechanism for that?15:12
Tomersystemd implicitly create a cgroup per daemon, btw15:13
TomerWhere can I ask where the postgres permission are dropped?15:14
TvL2386just a guess: #postgres15:14
rbasakTraditionally all daemons dropped their own privs15:14
rbasakNowadays systemd can do it for you, but it's more complex in terms of the privileged operations daemons need to do first, so not all of them do it that way yet15:15
rbasak(and may have no plans to change)15:15
TvL2386just checked nginx for fun. The master process is ran as root, the workers www-data15:16
TvL2386same thing for php-fpm15:17
TomerOk, thanks! I'll ask the postgres guys as well15:20
hackeronHi there, I'm trying to wrap my head around netplan. How would I get the equivalent of this? < https://pastebin.com/8ff6953V -- e.g. both dhcp and a static IP on an alias of the same interface. The examples I can find show 1 or the other, but not both?15:24
TvL2386good luck :)15:26
TvL2386I've copied my executable shell script to /usr/lib/networkd-dispatcher/*.d/ but it does not get executed on boot15:26
TvL2386it should work according to https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#Network_configuration15:27
TvL2386so how do you purge `netplan`?15:27
rbasakcyphermox: see hackeron's request above - I can't find any obvious answer based on the docs for that use case.15:34
rbasakI wonder if networkd would stomp on extra IPs if DHCP is enabled regardless? I don't know.15:35
rbasakTvL2386: netplan does nothing if no netplan config is defined, AIUI. So just install ifupdown if you don't want to use netplan.15:35
rbasakhackeron: the obvious syntactic answer would be to enable dhcp and also define addresses. I don't know whether that will work though.15:36
rbasakhackeron: in fact15:36
rbasakhackeron: "Add static addresses to the interface in addition to the ones received through DHCP or RA."15:36
rbasakhackeron: so there's your answer15:36
rbasakFrom https://netplan.io/reference#common-properties-for-all-device-types15:37
TvL2386rbasak: no netplan config? My /etc/netplan/01-netcfg.yaml contains the correct configuration to bring up ens160 and works fine15:37
rbasak<TvL2386> so how do you purge `netplan`?15:38
TvL2386that was just a joke :)15:38
hackeronrbasak: ah, that did work! :D15:38
TvL2386growing pains here15:38
hackeronrbasak: easy enough - I'm trying to embrace netplan, it's a bit frustrating though - for example installing netscript breaks openvpn and all kinds of other things, so removed that and trying to use netplan exclusively :P15:39
TvL2386I'm either screwing up or there's a bug with that networkd-dispatcher not being executed or not executing my scripts15:39
rbasakhackeron: feedback on breakages appreciated. Though some of it may be networkd limitations rather than netplan - for example on the hooks thing - so that might be something that networkd upstream needs to tackle rather than netplan.15:40
rbasakTvL2386: I don't see anything obvious that you're doing wrong there.15:41
rbasakTvL2386: networkd-dispatcher acts on dbus signals so perhaps use a dbus debugger to see if the signal is being generated at all?15:41
rbasak(or hack networkd-dispatcher to give you that debug info)15:42
TvL2386rbasak: thanks for the help anyway ^^15:42
TvL2386rbasak: I thought DBUS was a ubuntu desktop thingy -_-15:43
rbasakIt's not Ubuntu-specific at all. Is it a freedesktop thing? I'm not sure.15:44
rbasakI do quite like it as a language agnostic but powerful enough IPC mechanism.15:44
rbasakPowerful = signals, properties, etc.15:44
TvL2386anyway: is it a desktop thing or also a server thing?15:49
TvL2386dbus-daemon is running15:49
TvL2386on my server15:50
rbasakIt's much more common on the desktop, but it isn't exclusively desktop.15:53
rbasaksystemd uses it quite a bit15:53
=== tyhicks is now known as Guest87080
ahasenackrbasak: one difference in buildflags between debian and ubuntu is -Wl,-Bsymbolic-functions (ubuntu has it, debian doesn't)17:47
ahasenackdoes that raise a flag?17:47
ahasenackI've yet to check what it means17:47
ahasenackoh, it does mention "global symbols"17:48
ahasenackand the segfault is exactly about a global variable that suddenly became NULL17:48
ahasenack...and I see this in d/rules17:51
ahasenack        LDFLAGS="$(dpkg-buildflags --get LDFLAGS | sed -e 's/-Wl,-Bsymbolic-functions//')" \17:51
ahasenackhmmm17:51
ahasenackand17:51
ahasenack    - Add LDFLAGS to avoid issues with accessing global variables in17:51
ahasenack      shared libraries (LP #1470687, LP #1472115).17:51
ubottuLaunchpad bug 1470687 in autofs (Ubuntu Vivid) "Not working properly with compile options "-symbolic-functions"" [Undecided,Fix released] https://launchpad.net/bugs/147068717:51
ubottuLaunchpad bug 1472115 in autofs (Ubuntu) "autofs start fails: segfault at 0 ip 00007f738cb881bb sp 00007ffeff888f70 error 4 in lookup_file.so[7f738cb76000+2b000]" [Undecided,Fix released] https://launchpad.net/bugs/147211517:51
ahasenackheh17:52
ahasenackdefinitely looks familiar17:52
ahasenackah, I see it17:54
ahasenackfixed17:56
ahasenacknice17:56
* ahasenack commemorates with some coffee17:56
nicolas17hi21:45
nicolas17the official Vagrant box at https://app.vagrantup.com/ubuntu/boxes/xenial64 enables the serial console21:46
nicolas17by having this in its Vagrantfile21:46
nicolas17vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "ubuntu-xenial-16.04-cloudimg-console.log") ]21:46
nicolas17what's the reason for that?21:47
blackflowheadless console output?21:47
nicolas17I just tested "--uartmode1 disconnected" and it boots 3x faster21:48
motteanyone here using seafile?21:51
nicolas17https://paste.kde.org/pz4qubrek (running 5 times each)21:51
sarnoldblackflow: might be worth asking them about it -- they may enable serial consoles as a matter of course, just because the time when you absolutely need one is a bit too late to try to set one up..22:16
=== hehehe is now known as Guest15396
=== Guest15396 is now known as hehehe
blackflowsarnold: I suppose that's for nicolas17? he asked about why it's on by default.  and I concur.22:53
nicolas17the slowdown is pretty terrible, I wonder if it's a VirtualBox flaw22:53
nicolas17some of the log file looks corrupted too, like it drops characters sometimes22:54
sarnoldsorry blackflow, d'oh22:54
blackflowbut serial console output is indeed slow. FreeBSD recently made some patches which radically improved bootup speed on AWS, merely by not outputting anything by default (like grub's "quiet")22:54
nicolas17ugh AWS22:54
nicolas17they recently added real-time view of the serial output22:54
nicolas17previously it only captured the screen after state changes22:55
=== hehehe is now known as Guest61509
blackflowI don't think it's VBox fault. That thing is a blast from the past, it actually has baudrate, default I believe is 115kbps22:56
nicolas17tail -f on the log file seemed to go at tens of characters per second22:56
nicolas17and corrupting some text sometimes22:57
nicolas17audit: nitializing netlink subsysdibl)  6.87] di te=00ud(18308791)iniaze22:57
=== Guest61509 is now known as hehehe

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!