lordievaderGood morning06:01
=== zyga_ is now known as zyga-mbp
=== tds5 is now known as tds
Aisonhello, after reboot, /run/php is often missing and then, php fpm services fail to start11:33
Aisonthen I have to do mkdir /run/php first11:33
Aisonwhy is this directory not create automatically?11:33
patstomsyou should provide your ubuntu and php version so others can help you11:37
Aisonubuntu 20.0411:39
Aisonphp5.6, 7.3 and 7.4 is installed11:40
Ussatwhy do you have multiple php versions installed ?11:42
Aisonbecause there are two websites, that require older php versions11:43
UssatUm...thats a mess AND security issue11:43
Ussatyou know 5.6 is WAY out of date11:43
Aisonyes, I know, but I can't change it now.11:47
sdezielAison: are all 3 PHP versions affected the same?11:51
sdezielAison: I cannot reproduce with php7.4-fpm from the official repo11:53
Aisonall of them create their pid and socket file in /run/php11:54
sdezielright but the dir /run/php/ get created by php7.4-fpm when it starts11:54
sdezielAison: actually, it is probably create due to /usr/lib/tmpfiles.d/php7.4-fpm.conf11:55
Aisonis it created by php7.4-fpm.service?11:56
sdezielAison: no, the php7.4-fpm package creates the tmpfiles.d snippet from above and then systemd takes care of creating the dir11:57
sdezielAison: if you need to workaround, tmpfiles.d snippets can be created/overridden by the admin by putting them in /etc/tmpfiles.d/11:58
Aisonis there a systemd tmpfile service?11:58
sdezielAison: https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html11:58
Aisonmaybe something is wrong there11:58
sdezielAison: which PPA are you using to get PHP 5.6 and 7.3?11:59
AisonUssat, I know it is a security problem and it is a bad solution. To gain at least a little bit of security, this server runs in a virtual machine with no access to something else12:04
Aisonsdeziel, as workaround, I create a config file in /etc/tmpfiles.d12:07
Aisonat least this is working12:07
Aisonbut I can remove 7.3 now ;)12:10
sdezielAison: OK, Ondrej's PPA is at least reputable (for a PPA)12:17
Aisonit is the only ppa I use12:18
Aison(ok I use some for testing, but not on this server)12:19
sdezielAison: that said, since you have the PPA on a Ubuntu 20.04, the php7.4 stuff from the PPA probably "shadows" what's officially coming from Ubuntu's repo12:19
Aisonyes that may be the problem12:25
slowpokehi, i just booted ubuntu-20.04.1-live-server-amd64.iso on a dl360 gen9 and after selecting the language in the text installer I was dropped to a shell (ubuntu-server@ubuntu-server:~$)12:58
slowpokehow can I restart the installer?12:58
slowpokeoh … some modifier key was enabled, I was just switching ttys apparently … my bad12:59
mgedminalt-left/right, or alt-function keys, or ctrl+alt-function keys12:59
slowpokethat's what you get with these shitty html5 remote consoles :<12:59
slowpokestuff happens and you don't really notice12:59
slowpokefwiw: I can just press left+right without modifiers to switch ttys :<13:01
mgedminthe html console sent an Alt down but no Alt up?  fun!13:02
mgedminyou can do the installation over SSH, AFAIU13:03
mgedminthe installer welcome screen tells you how, I think13:03
sdezielthe installation over SSH works well (after you've typed the very long randomly generated password without typos) ;)13:12
mgedminmaybe the html5 console allows copy/paste13:13
slowpokeargh … it offered to update the installer to a newer version13:13
slowpokeI feel stupid for following that offer13:13
slowpokeit crashes with a python exception in subiquity now13:13
mgedminthere are bugs fixed in the newer installer13:13
mgedminand, looks like, bugs introduced :(13:13
mgedminwhat's the exception?13:14
slowpokethis one13:14
slowpokeI kinda don't want to reboot, since I'm remote and the installer wanted to verify integrity during startup, which took >1h13:17
mgedminyou can skip that, I believe13:17
slowpokeI have network going fwiw13:17
mgedminhttps://bugs.launchpad.net/subiquity is the bug tracker for subiquity13:17
ubottuLaunchpad bug 1892763 in subiquity "Installer crashed in the middle of the installation and the installation restart attempts are blocked" [Undecided,New]13:18
mgedminit's similar, and as you see the devs couldn't reproduce it and didn't get the requested logs13:18
slowpokeit's been a while since I had a launchpad account, well. here I go13:19
slowpokeERROR root:39 finish: subiquity/Refresh/configure_snapd/switching: FAIL: must be str, not NoneType13:22
slowpokeso yeah, I'll be posting logs then13:22
slowpokeso … how would I go about downgrading the installer?13:29
slowpoke`snap info subiquity` only offers 20.09.1, which is broken for me13:32
mgedminwith snap refresh snap-name --channel=something, I think?  I don't use snaps much13:32
slowpokeand the installer stops crashing after apt fullupgrade in the live system </313:38
mgedminthat... how... but...13:39
slowpokeyeah, I don't even13:39
slowpokethe installer ultimately crashed again14:03
slowpokerestarting </314:03
=== guillaumedsde5 is now known as guillaumedsde
WobblyBobHi guys I have KVM installed on ubuntu server 18.04.I am using Virt manager to manage the KVM. These are my results for ip (i have removed static ip with **1: lo: <LOOPBACK,PROMISC,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet scope host lovalid_lft14:44
WobblyBobforever preferred_lft foreverinet6 ::1/128 scope hostvalid_lft forever preferred_lft forever2: enp38s0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000link/ether 00:d8:61:a6:30:49 brd ff:ff:ff:ff:ff:ffinet scope global enp38s0valid_lft forever preferred_lft foreverinet .../32 scope14:44
WobblyBobglobal enp38s0valid_lft forever preferred_lft foreverinet brd scope global dynamic enp38s0valid_lft 53468sec preferred_lft 53468secinet6 fe80::2d8:61ff:fea6:3049/64 scope linkvalid_lft forever preferred_lft forever3: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen14:44
WobblyBob1000link/ether 52:54:00:51:2d:28 brd ff:ff:ff:ff:ff:ffinet brd scope global virbr0valid_lft forever preferred_lft foreverinet6 fe80::5054:ff:fe51:2d28/64 scope linkvalid_lft forever preferred_lft forever4: virbr0-nic: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default14:44
WobblyBobqlen 1000link/ether 52:54:00:51:2d:28 brd ff:ff:ff:ff:ff:ff8: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master virbr0 state UNKNOWN group default qlen 1000link/ether fe:54:00:3b:03:3b brd ff:ff:ff:ff:ff:ffinet6 fe80::fc54:ff:fe3b:33b/64 scope linkvalid_lft forever preferred_lft foreverThis is what is contained in sudo nano14:44
WobblyBob/etc/network/interfacesauto lo virbr0iface enp38s0 inet manualiface virbr0 inet dhcpbridge_ports enp38s0I can not seem to get the internet to work on the virtual machines i create.Any help would be appreciated.14:44
lotuspsychje!paste | WobblyBob14:44
ubottuWobblyBob: For posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.14:44
ubottuFor posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.14:45
WobblyBobHi guys sorry for repeat posting - I need help with a ubuntu server 18.04 kvm internet issue please see https://paste.ubuntu.com/p/WF453Z3VCr/14:48
sdezielWobblyBob: your paste is hard to read but it seems like enp38s0 is not "enslaved" by virbr014:51
sdezielalso, you have an IP on enp38s0 but that should be on virbr0 itself14:51
WobblyBobim running plesk on this server also so have to be careful i dont ammend it incorrectly.14:52
WobblyBobis there any other commands i can run to give you a better insight14:52
sdezielWobblyBob: I think I've deciphered it, thanks ;)14:54
sdezielWobblyBob: and provided what I believe would fix your issue14:54
WobblyBobok brilliant i appreciate it, how do i enslave enp38s0 to vibr0 do i do this using the document /etc/network/interfaces? if so what changes should i make im pretty new to linux and i am still learning14:55
sdezielWobblyBob: first question is probably to ask if you have direct access to the host (and not depend on the network to get to it)14:57
WobblyBobI personally dont have direct access to the host as in physical sense. I do have ssh root access from home.14:57
sdezielWobblyBob: that's not super cool then because what you'd need to do risks breaking the connectivity15:00
sdezielWobblyBob: is that a new bridge? As in it never worked/existed before, right?15:01
WobblyBobyes its a new bridge its currently working fine for plesk and all other services. I broke it once before applying netplan so im aware of the potential breakage '=D15:02
WobblyBobseeking some alternative help before potentially breaking it again ha15:02
WobblyBobnever existed or worked before that is correct15:02
sdezielWobblyBob: is plex running on the host or that new (?) VM?15:03
WobblyBobno buddy plesk only and all services included with that. Oh an I ntopng runs on it also15:03
WobblyBobthey run directly on the server without any vm. the vms will run the employees windows machines.15:04
WobblyBoboh and vncserver15:05
jiffeso I have a project that still depends on gcc 4.8 (ancient), is it still possible to find a build for that for 20.04?15:07
jiffelast I can find is 16.0415:07
sdezielWobblyBob: I think that all you need is to change "auto lo virbr0" to "auto lo enp38s0 virbr0" in /etc/network/interfaces and then reboot. But I'm not 100% sure on this one15:08
WobblyBobsdeziel: ok ill give it a whirl now :)15:09
sdezielWobblyBob: that will have enp38s0 use virbr0 as "master" and will also ensure the DHCP assigned IP is on the right NIC15:10
WobblyBobsdeziel: https://paste.ubuntu.com/p/yGjq77C7PW/15:12
WobblyBobhows that looking?15:12
sdezielWobblyBob: yeah, looks good15:16
WobblyBobsdeziel: i think its broken lol15:22
sdezielWobblyBob: sigh15:23
sdezielI just realized that the IP was configured on both enp38s0 and virbr0, which is weird15:24
WobblyBob'=D  ill see if i can get into a local machine on same network and undo the changes15:24
sdezielWobblyBob: was virbr0 managed by libvirt?15:25
WobblyBobi have no idea buddy how could i find out?15:26
sdezielWobblyBob: "virsh net-dumpxml default" I think15:28
jiffeseems I can still use xenial repositories15:30
sdezieljiffe: you'd probably better served with a Xenial lxd container or VM15:32
sdezieljiffe: looks like it's also available in Bionic (https://packages.ubuntu.com/bionic/gcc-4.8) BTW15:33
WobblyBobsdeziel: ill save that command for later once i can get into the network again. thanks for your help so far15:34
sdezielWobblyBob: sorry it didn't work :/15:34
WobblyBobsdeziel: its ok ill get it back to how it was and try again later15:35
sdezielWobblyBob: good. Keep in mind that when a NIC is hooked to a bridge, the IP needs to be moved from the NIC to the bridge15:37
WobblyBobok, ive posted this issue else where so hopefully later on this evening ill have a few answers to try15:37
WobblyBobsdeziel: im going to relax till later once i can get back into network. thanks again speak soon15:39
grendal-primetrying to get ntopng to send alerts via ssmtp mta...anyone else have to do something similar?19:53
* mgedmin prefers postfix19:53
grendal-primeya, but ssmtp is like 4 lines to configure.  Ive got it to work with everything else..19:54
grendal-primeIt works on the box...i just cant figure out how ntopng wants me to configure put into there gui tool to use it19:55
sdezielgrendal-prime: for a daemon-less MTA, msmtp-mta never failed me20:00
sarnoldnormally programs that send mail just use the /usr/sbin/sendmail interface, and programs usually supply an executable there that works20:00
sdezieland ssmtp is unfortunately abandonware at this time20:00
sarnoldI also use msmtp-mta, works fine20:00
sarnoldit's no Real Server, but works for my laptop :)20:01
=== tds9 is now known as tds
sdezielsarnold: nowadays, msmtp-mta ships with an optional daemon listening on for the rare programs who wants to inject using SMTP20:02
sdezielsensible default of to not running this daemon20:02
mgedminwhat I want more is a queue for outgoing mail if I happen to send some while not online20:03
mgedminanywway AFAIU grendal-prime's problem is not sending the mail, but in getting ntopng to talk to the local MTA20:03
mgedminI don't even know what ntopng is20:03
sarnoldI always read it as something to convert 'n' to 'png'. whatever 'n' is..20:05
mgedmincould be an n(etwork?)-top-new-generation20:06
mgedminyes, very network20:07
mgedminwhen and how does it send mail?20:07
mgedminthe package dependencies do not mention mail-transfer-agent20:08
=== vlm_ is now known as vlm
ubottuFor posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.20:51
grendal-primeyes ntopng is network monitoring tool. You can run it on a linux software router. It does very good job of logging werid stuff..and really small footpring20:53
grendal-primeprint that is20:53
WobblyBobCan anyone help me setup my networking on ubuntu server 18.04 so the internet will work in VM instances my current set is here https://paste.ubuntu.com/p/YcjMchm4ZX/20:54
grendal-primeid yank out that werid netplan, install ifudown to start with20:57
grendal-primethat will get you using the /etc/network/interfaces file like we have been doing for the last 20 years20:58
grendal-primewhat hypervizor you using?21:02
WobblyBobKVM QEMU21:05
WobblyBobi will install ifudown soon, will this affect my current setup on server as have plesk and other bits running on it21:05
grendal-primeright on...i have 10 installations like that21:06
WobblyBobgrendal-prime: sorry new to this chat and forgot to tag your username21:06
WobblyBobgrendal-prime: ok two mins :)21:06
grendal-primeumm so long as you statically assign the ip address that currently have21:07
grendal-primei would do that before you yank out netplan21:07
WobblyBobgrendal-prime: how do i do this? sorry im fairly new to the linux scene21:08
grendal-primeid install ifupdown first, then.....wait there is a walkthrough i use on this21:08
grendal-primethere ya go21:10
WobblyBobgrendal-prime: theres a seperate file for plesk in netplan folder ill install ifupdown now and go from there21:14
WobblyBobgrendal-prime: i do have vnc installed so as a newbie is there another way to bridge using gui to save you time?21:15
WobblyBobgrendal-prime: seems i already have ifupdown installed21:16
grendal-primewas this an upgrade or a new install?21:17
grendal-primeif you have virtmantager installed there is an entire gui section just for creating bridges21:17
WobblyBobgrendal-prime: i may have edit the interfaces file back to original state to get my self back online after breaking it earlier today21:17
grendal-primedo you have a linux workstation you can install virtmanager on?21:21
WobblyBobgrendal-prime: i have virt manager installed already on this server is that any good21:21
grendal-primeand do you have ssh-server installed on the server21:22
WobblyBobyes i am currently using them21:22
grendal-primeok so you have a desktop installed on the server?21:22
WobblyBobgrendal-prime: yes i do for remote access vnc4server21:22
grendal-primeok...well later you will probably want to get yourself a laptop with linux workstation on it...it really makes this sort of stuff much easyer21:23
WobblyBobgrendal-prime: im on linux now using ubuntu desktop?21:23
grendal-primeif you double click on the host itself you should get a ui that has the network interfaces tab on it21:24
grendal-primeim talking about withen virtmanager21:24
grendal-primethat might be a bit basic for where your at but its kinda helpfull if your not familar with virtmanager21:26
grendal-primeits an intro i use to bring interns up to speed21:28
grendal-primecould probably make up a quick vid on how to create a bridge device21:31
grendal-primeit would be on a vm.21:31
grendal-primebut would get the right idea21:32
WobblyBobok yes please that would be great as the tutorials im looking at dont seem to look anything like what im looking at21:33
grendal-primedoes the one i posted look close?21:33
WobblyBobgrendal-prime: very similar yes, im just curious do i need to setup the vm fully before being able to see the networking options properly within virt manager21:34
grendal-primeno the bridging happens at the virtual host21:34
WobblyBobhmmm ill screenshot the software im looking at now21:34
ubottuFor posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.21:35
grendal-primebasically, if you bridge a physical device, your guests then are bridged to the network the host is connected to...so for instance if you had a dhcp server running on your physical network, your vm-guest would be able to get an ip from that dhcp server.21:35
WobblyBobplease advise once seen so i can delete post as has ip on it lol21:37
grendal-primeya your good21:37
grendal-primeyou can kill it..and i would worry about the ip21:37
grendal-primeill leave you enough cash to get back home to mom and dad21:37
grendal-primejust so i know...you are running the libvirt server on the same box there ..so you have a "localhost" as your sever identifier right?21:39
grendal-primebecause with ssh you can connect to any kvm host on the network and view it through that interface...its pretty fkn amazing piece of software21:40
grendal-primeand you can even set up failovers with another image on the other servers.21:40
WobblyBobgrendal-prime: sounds complex ive yet to learn most of this stuff. im not too sure what you mean so basically i use this for plesk and hosting websites and emails.21:42
WobblyBobam i on the right path to getting it bridge though?21:43
grendal-primewell once you get your network straitend out the rest is pretty easy21:43
grendal-primehave to move to office brb21:44
grendal-primei have strep throat..21:53
grendal-primein quarnteen...but like not...you know like covid...just strep..its confusing and the meds dont help21:53
grendal-primeANYBODY WANT A STEP KISS!!!?21:54
grendal-primeSTREP THAT IS!21:54
WobblyBobgrendal-prime: think ive bridged it installing vm now to see if its working21:55
compdocits nice if you have more than one nic, then the guests can share one and the host use the other21:56
grendal-primeI second interface is usually used to connect to another network.  different subnet, some physical network seperate from your primary that you need vms to have access to ither as well or exclusively.  Like a lab switch or something like that22:00
grendal-primeor like an industrial lan22:00
grendal-primescada systems and whatnot that are typically...well they are riddled with legacy ethernet devices designed by plumbers and electritians.22:00
WobblyBobgrendal-prime: was that to me? also the bridge worked thank you for your help22:01
grendal-primeRIGHT ON BOB!!22:01
=== tds8 is now known as tds
WobblyBobgrendal-prime: quick one, my keyboard wont work in the vnc instance into the vm22:02
WobblyBobany ideas22:02
grendal-primecheck your vnc client make sure you have the right keyboard selected22:02
grendal-primenow all you need is a vpn concentrator and you will be off to the races....fixn stuff back at home with your phone, spying on your kids while you are on vacation....oh wait...well in two years when there are no more bugs on everything...22:05
grendal-primeWe will have to do the concentrator on another day though.22:07
WobblyBobgrendal-prime: please expand further on the vpn concentrator22:07
grendal-primemy meds are kicking in and...im all wobbly and the only thing i can eat is jellow and soft frut22:08
grendal-primevpn concenrator.  Basically a server that allows youto connect from your phone...laptop...from anywhere in the world.  Puts you right on the same network..you push a route to your remote device. Encrypeted tunnel that ends at your home. You can work from anywhere on your virtual cluster, turn on your equipment, watch movies off your plex server....from mcdonalds. All secure.22:09
grendal-primeno limit to the number of clients you can have.22:09
WobblyBobgrendal-prime: i see what you did there about the meds ha, where do you originate from grendal prime22:10
grendal-primeand you can use it to connect to other devices that are connected to your concentrator. Like if your parrents need help with their computers, you set up a client on their machine and you can then vnc into there machine from anywhere and help out.22:10
grendal-primean egg.22:11
grendal-primei mean more than likely22:11
WobblyBobgrendal-prime: ha, and sounds good - do you use comcast as your supplier the 1gig line?22:12
grendal-primedont have gig here.22:12
grendal-primeim in the sticks  in a fairaday cage hiding from "the man"22:12
grendal-primei do have a pretty good connection though22:13
WobblyBobgrendal-prime: ha your funny, thank you for helping me anyway22:13
WobblyBobis the video above yours?22:13
grendal-primeya, my resume is on there...although its about 6 years old now22:14
WobblyBobdo you teach people this stuff?22:14
grendal-primeuse to ...alot, now I do network engineering for water authoritys, scada support mostly.  Make sure everything keeps talking. I get to climb towers and ride motorcycles into places where there is no other way in to maintain equipment.22:16
WobblyBobsounds very interesting - sounds like a cool job tbh22:20
WobblyBobgrendal-prime: going to sleep buddy ill reconnect tomorrow if your online about the vpn concentrator22:43
grendal-primeoh ya...i had a problem to!22:49
grendal-primeso ssmtp you guys are all like "no way"  msmtp thats the game now?22:50
grendal-primessmtp...i mean it still works with gmail and everything and it sets itself up to be the mta..if i do a sendmail it utilizes it to send.22:50
grendal-primein the little box though it asks for an smtp server...and i just figured id put sendmail in there but that does not work22:52
grendal-primesmpt.localhost  nogo  smtp.  also notgood22:52
grendal-primeand the gmail entry it suggests it wont even save to the config.22:53
sdezielgrendal-prime: with msmtp-mta you get all that (relay through Gmail, sendmail command, etc)23:10
sdezielgrendal-prime: for better control, you probably want to edit /etc/msmtprc  directly23:12
grendal-primeso what would i put then in as a smtp server on the application?23:13
sdezielgrendal-prime: none, use the sendmail command, like you did before with ssmtp23:13
sarnoldbe careful with that system-wide configuration file: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=94418823:13
ubottuDebian bug 944188 in msmtp "/etc/msmtprc password disclosure" [Normal,Open]23:13
grendal-primesee thats the thing...if i could feed it sendmail that should work with ssmtp..other apps are using just fine.  just not ntop...hmm23:14
sdezielsarnold: it's an unfortunate debugging (mis)feature of msmtp. I'm curious how you workaround it?23:15
sdezielgrendal-prime: so you need a smtp listener (TCP/25)?23:15
sarnoldsdeziel: in my case, I'm on a single-user system, and use ~/.msmtprc instead of the system-wide configuration, so it's not something I'm too worried about23:16
sdezielgrendal-prime: if yes: `sudo systemctl enable --now msmtpd`23:16
sdezielsarnold: right but then what about cron email/spam ;)23:16
sdezielgrendal-prime: after that, you should have a SMTP listener on (or whatever you tuned it to in /etc/default/msmtpd)23:17
grendal-primesee thats the thing, cron has no problem sending with ssmtp.23:17
sarnoldsdeziel: I'd rather not get cron mail :) heh23:18
sarnoldgrendal-prime: yeah, cron will just execute /usr/sbin/sendmail directly23:18
sdezielgrendal-prime: my cron spams me using msmtp-mta, I can tell you that ;)23:18

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