/srv/irclogs.ubuntu.com/2021/01/04/#ubuntu-server.txt

MIFhey issue, I just accadently remove /bin/ls03:33
Psi-JackDon't do that.03:40
MIFis there anyway to get it back?03:41
Psi-Jackreinstall coreutils?03:41
MIFis the source code available online for ls?03:41
Psi-JackWell, d'uh, but... Why?03:41
MIFjust so I can copy and paste03:42
Psi-Jack...03:42
MIFwhat?03:42
Psi-JackTroll much?03:42
MIFme, why are you askin?03:42
MIFbecuase the answer is no03:42
MIFI don't want to mess anything else up if something goes wrong reinstalling coreutils03:43
Psi-Jackreinstall coreutils.03:43
Psi-JackCan't get much simpler than that.03:43
MIFok03:43
Psi-Jackapt-get --reinstall install coreutils03:44
Psi-JackOr, apt --reinstall install coreutils03:45
MIFok03:45
Psi-Jackheh, source code.. You'd have to compile it, and then it wouldn't be the packaged one. That's why that was so absurd, earlier. Copying and pasting ls source code. heh03:46
MIFoh, ok03:47
MIFI thought it was a good idea, but then I guess not03:47
MIFbecuase I found it03:47
MIFhttps://github.com/wertarbyte/coreutils/blob/master/src/ls.c03:47
Psi-Jackironically, it's part of the.... coreutils.. Yes.03:47
Psi-JackLOL03:47
MIFI have a update, then as soon as the update is done, I will do that03:48
Psi-JackAnd that's not /the/ coreutils.03:48
MIF?03:48
Psi-JackAbout03:48
Psi-JackEnhancements to the GNU coreutils (especiall head)03:48
Psi-JackHeh03:48
Psi-JackA fork.03:48
MIFok03:49
MIFoh ok03:49
MIFit works03:51
MIFthanks Psi-Jack03:52
Psi-JackUsually you'd want to fix the issue you caused, before doing system updates, but whatever.03:52
MIFmy server crashed during the install, (I call anything with apt a update) so I had to run that before I could do anything else with apt03:53
MIFnow is there a way for me to prevent me from doing this again?03:54
Psi-JackYeah, don't abuse root, don't do stupid things. And...... Backups.04:40
=== cpaelzer__ is now known as cpaelzer
=== Woet_ is now known as Woet
=== denningsrogue5 is now known as denningsrogue
jamespage@cpaelzer morning - I'm working snapshots of the upcoming 2.15 release of OVS - do I need a newer DPDK version to support that?11:00
cpaelzerjamespage: yes you do11:01
cpaelzerjamespage: we have DPDK 20.11 prepared in Debian experimental11:01
jamespagegreat - I'll pull and tests from there11:01
cpaelzer\o/11:01
cpaelzerjamespage: if you need me for anything let me know, this is as much my task as it is yours11:02
jamespagethanks11:02
cpaelzeronce it builds I'm happy to run some tests on my side as well11:02
jamespageand happy new year :)11:02
cpaelzeryeah, to you (and everyone else here) as well!11:02
cpaelzerjamespage: once things work in a PPA let me know I'd then do the sync of DPDK to hirsute11:05
cpaelzerjamespage: there are a few more related PKGs that need rebuilds then, but all except OVS are ready for it11:05
jamespagegot it11:05
cpaelzerif I do the sync it is clear that it is my task to resolve all these :-)11:05
jamespage@cpaelzer hmm12:18
jamespage"/usr/include/x86_64-linux-gnu/dpdk/rte_config.h"12:18
jamespageis that normal?12:18
jamespagethe autoconf for OVS fails to find that12:18
cpaelzerjamespage: might be related to pkgconfig - there was something recently12:21
cpaelzeralso https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=97824812:21
ubot3Debian bug 978248 in src:openvswitch "openvswitch: FTBFS: configure: error: Could not find DPDK library in default search path, Use --with-dpdk to specify the DPDK library installed in non-standard location" [Serious, Open]12:21
cpaelzerjamespage: can you point me to your PPA rebuild of 20.11 - then I can give things a try12:21
cpaelzerjamespage: I guess you have put the OVS you try to build into git already?12:21
jamespage@cpaelzer https://launchpad.net/~james-page/+archive/ubuntu/openvswitch12:22
jamespage@cpaelzer I have pushed my work to git as well - its in the master branch12:24
cpaelzerfound it, build started12:25
jamespagehmm "/usr/bin/ld: cannot find -ldbus-1"12:57
jamespageis the actual issue12:57
cpaelzermy local build in a hirsute container works so far12:58
jamespageinstalling libdbus-1-dev resolves my issue12:59
cpaelzerbut it might be at the non dpdk build still12:59
cpaelzerjamespage: it is dpdk that makes libdbus to be needed (i.e. do I need to add it to libdpdk-dev dependencies)?13:00
cpaelzeror is it something else?13:00
jamespagejust scratching at that now13:00
jamespageits appearing in the middle of the dpdk libs13:01
jamespagebut I can't see a dep from DPDK->DBUS13:02
jamespageodd13:02
jamespagecpaelzer: might be libpcap actually13:09
cpaelzerjamespage: dbus is no direct build dependency of DPDK, but libpcap we do have13:10
jamespageyeah #13:10
cpaelzerlibpcap-dev  is a dep of libdpdk-dev13:10
cpaelzerso if this turns out to be true then libpcap-dev might need that dep then13:10
cpaelzerI now can at least recreate your issue over here13:11
cpaelzergiving this a second look13:11
jamespagelibpcap0.8 -> libdbus-1-313:13
jamespagebut no libpcap0.8-dev -> libdbus-1-dev13:13
cpaelzerjamespage: the https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978248 that I mentioned before seems to have the same root cause btw13:18
ubot3Debian bug 978248 in src:openvswitch "openvswitch: FTBFS: configure: error: Could not find DPDK library in default search path, Use --with-dpdk to specify the DPDK library installed in non-standard location" [Serious, Open]13:18
cpaelzerjamespage: nothing on https://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&src=libpcap yet, bluca will file a bug on libpcap for it13:20
cpaelzerjamespage: will you for now in OVS 2.15 just add libdbus-dev to the build deps ?13:20
cpaelzermaybe with a comment to remember dropping it later ?13:20
cpaelzerjamespage: in the other discussion we've seen that it only happens if you use pkg-config --static which is uncommon13:21
cpaelzerthat is why it went unnoticed I guess13:21
cpaelzerjamespage: FYI bluca filed https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979229 for this13:49
ubot3Debian bug 979229 in libpcap0.8-dev "libpcap0.8-dev: missing dependency on libdbus-1-dev causes build failures" [Serious, Open]13:49
jamespagecpaelzer: can do - just looking at a subsequent build failure13:59
linuxmintHello, deciding on VM OS Ubuntu-server or Debian.  Just after smallest resource use, to install ZoneMinder on the OS.14:26
linuxmintThis helps https://thishosting.rocks/debian-vs-ubuntu/#:~:text=Unlike%20Ubuntu%2C%20Debian%20requires%20more,a%20better%20choice%20for%20you.14:28
linuxmintNever heard of Debian servers, usually used CentOS and Ubuntu servers.14:29
linuxmintSeems like Ubuntu server might do it.14:29
tewardlinuxmint: Debian 'servers' are basically booted from the Debian netinstall ISO and installed without a Desktop interface.  Debian doesn't have a specific 'image' or 'installer' for just server components, unlike Ubuntu.14:54
tewardif your consideration is 'smallest resource usage' you have to be more specific about what resources you're trying to conserve.14:55
qman__yep, and both debian and ubuntu are rather large compared to distros designed to be minimal14:55
teward^ this14:55
tewardalso14:55
tewardan absolutely minimum Debian install and an absolutely minimum Ubuntu install take up about the same resources in idle state, give or take maybe 25-50 MB of RAM so unless you *really* are nitpicky about RAM, be more concerned with what resources exactly you're trying to conserve and state what your goal is here14:56
qman__yeah14:56
teward(I've effectively run Ubuntu 18.04 on a 256MB RAM VPS for two years without downtime except for when i update the kernel)14:56
qman__I wouldn't pick one over the other based strictly on resource usage, there isn't enough difference between them, it's more about preference and ease of use for a given application14:57
qman__if resource use is a big concern, there are other options that use significantly less14:57
qman__(at the expense of some ease of use)14:58
tewardand considering RAM is pretty cheap nowadays (relatively speaking) it's really more CPU and disk space constraints that you're going to run into14:58
tewardCPU especially if you're ZoneMindering14:58
qman__it's been a while, but the last time I tried to set up zoneminder it was kind of a nightmare, so based on that, I'd go with whatever distro zoneminder recommends you use, since it will probably have the least issues running it15:04
rbasakcpaelzer: could I defer triage of bug 1908512 and bug 1908577 to you please?15:16
ubot3Bug 1908512 in libvirt (Ubuntu) "VNC unusable when booting ubuntu-20.04.1-live-server-amd64.iso" [Undecided, Confirmed] https://launchpad.net/bugs/190851215:16
ubot3Bug 1908577 in qemu (Ubuntu) "QEMU crashed after last update" [Undecided, New] https://launchpad.net/bugs/190857715:16
rbasakFor the former I'm not sure whether that's something we should support.15:17
rbasakFor the latter, I would ask for exact package versions involved and to confirm by trying a downgrade, but I thought I'd check with you in case there's anything else to say/do first.15:17
cpaelzeryeah rbasak I can look at these15:19
cpaelzeractually I already have tabs on them open since I monitor all virt bugs anyway15:20
cpaelzerusually I have them triaged before they are seen15:20
cpaelzerbut due to the break I was not yet up to them :-)15:20
rbasakThanks!15:21
jamespage@cpaelzer: https://launchpad.net/~james-page/+archive/ubuntu/openvswitch/+packages I'm happy with that lot15:46
jamespagedo you want to sync over dpdk and start the process? I'll follow with OVS and OVN uploads15:46
cpaelzerjamespage: yes that LGTM as well, and as I said the rest we've made ready as well15:54
jamespagegreat15:55
cpaelzerjamespage: https://launchpad.net/ubuntu/+source/dpdk/20.11-115:56
jamespagelovely job - thanks15:56
cpaelzerjamespage: tomorrow (once this is fully built) I'll no-change rebuild the other deps15:56
cpaelzerand whenever we have the OVS build I'll run my testsuite so that we can fix remaining issues further down the road before 21.04 releases15:56
jamespageOVS uploaded - has a versioned BD's so will depwait until DPDK is built and published16:00
MIFdo you know why a perl script will not run from cron16:37
MIFbut I can run the line from cron and run it on the cli and it works16:38
MIF * *  *   *   *   /bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg16:38
MIF/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg16:38
MIF^ works on cli16:38
MIFbut not on cron16:38
sdezielMIF: here perl is at /usr/bin/perl16:39
MIFok16:39
MIFchanged it16:39
Ussatin cron, you need to put the full path, define the env etc16:39
MIF?16:39
Ussateither spell out the full path, or wrap it in a script that defines the env and path to use16:40
MIFhow do I spell out the full path16:40
MIFthat is what I did16:41
MIFit is now /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg16:41
MIFand it still dose not work16:44
Ussattype which perl16:45
MIF/usr/bin/perl16:46
MIFand I changed it to that16:46
Ussatcrontab -l16:46
MIFhttps://usercontent.irccloud-cdn.com/file/Pzgm9yN7/image.png16:46
MIF  * *  *   *   *   /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg16:47
MIFthat is the only thing in my cron16:47
Ussatwhat error do you get when that is supposed to run in cron ?16:47
MIFI don't get a error16:47
Ussatand um..... * * * * *16:47
MIFdo you mean what is suposed to happen?16:47
UssatHow often do you want this to run ?16:48
MIFevery minute16:48
MIFof every hour16:48
MIFof every day16:48
MIFof every day of the week16:48
MIFof every mouth16:48
MIFof every year16:48
Ussatput the entire thiong in quotes16:49
MIFthe entire /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg16:50
MIFor * *  *   *   *   /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg16:50
Ussatalso, is that root's crontab ?16:50
MIFwhy?16:50
MIFit needed to be16:50
MIF*needs16:51
Ussatbecaue it looks like youre tryiong to write to a place that a normal user would not have perms16:51
MIF^ and that is why it needs to be root16:51
Ussatso I would think it shoiuld be roots16:51
MIFit is16:51
Ussattype mail and see if there is any errors.16:52
Ussatcron should mail root if there are errors16:52
MIFhttps://www.irccloud.com/pastebin/Jx2ebf60/16:52
MIFI don't have a email server set up yet16:52
Ussatyou dont need an email server16:53
MIFok16:53
MIFwhat will it look like?16:53
MIFjust mail16:53
Ussatare you SURE you should be doin this, I mean....setting up an email server.....a public web site ?16:54
UssatThis is some basic stuff youre asking16:54
MIFmy website is up16:54
MIFall I am trying to do is just ask, a simple question that google will not anser16:55
MIF*answer16:55
MIFI have had a relly bad week, so I don' need you asking me questions like that please16:55
MIFreally16:56
Ussatmake your crontab look like this */1 * * * *16:56
MIFok16:56
Ussatwe all have bad weeks......16:56
MIFsorry, I did not mean to flip16:57
UssatAlso, what outcome do you expect ?16:57
MIFit to update the stats page16:57
Ussatand how do you know its not working ?16:57
MIFbecause the date on the stats page is not updating16:58
MIFand I know it is not cache16:58
MIFbecause when I run the command and refresh the page it works16:58
Ussatok so make that change in crontab16:58
MIFI did and it did not update16:58
MIFit still says 10:38:4716:59
Ussatcreate a log file and redirect the output there, and take a look, like this example:  https://stackoverflow.com/questions/34967093/how-to-redirect-stderr-to-a-file-in-a-cron-job17:00
MIFok17:01
MIFok17:02
MIFnothing17:02
MIFin the log file and it is chmod 77717:02
MIFthe new cron looks like this17:02
MIF*/1 *  *   *   *   /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg >> /NSCS/logs/cron/pisg.log 2>&117:02
MIFstill empty17:05
MIFsorry if I have been rude Ussat17:09
UssatThats fine, I am busy at work17:10
MIFok17:10
MIFdo you think a systemd timer would be better?17:11
UssatI have no idea, can try ?17:11
MIFok17:11
sdezielIt seems like the problem is a mismatch between cron's env and your interactive environment17:12
Ussatwhich, is why I suggested wrapping it in a script17:13
sdezielMIF: I'd try running this interactively as root:17:13
sdezielenv -i PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg17:13
MIFtry that as cron?17:13
UssatI have to do that with a lot of commands in cron17:13
sdezielMIF: no, interactively as that kind of mimics cron's env17:13
MIFso Ussat what you are saying is write a script with the contents that sdeziel gave me, then /bin/sh <full path to script>?17:14
MIFafter chmod +x <script>17:14
MIFand sdeziel that command work17:14
knstndon't you have to set "PATH=" & "SHELL=" in that crontab?17:14
sdezielMIF: Ussat's suggestion doesn't include my test17:15
MIFoh ok17:15
sdezielMIF: env -i SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg17:15
Ussatoke of my crontabs is this17:16
Ussat00 06 * * * /usr/local/scripts/tbmr.sh17:16
MIFit says it works but it dose not update the page17:16
MIFcorrectly17:16
Ussatwith the script having this:17:16
Ussat#!/bin/bash17:17
UssatPATH=/opt/someApp/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin17:17
Ussatcd /usr/bin17:17
Ussat./tbmrcfg17:17
Ussatso in the script, I define my path17:17
sdezielMIF: so if it says it works but doesn't update the page, then it's not/no longer a cron problem17:17
Ussat^^17:17
MIFwhen I run it17:17
MIFit give the correct cli out put17:18
MIFhttps://www.irccloud.com/pastebin/Q2cWezYy/17:18
sdezielMIF: and index.html isn't updated?17:18
MIFlet me check17:18
MIFno it is not17:19
MIFlet me try something17:20
MIFok17:21
MIFthis command works17:22
MIFenv -i /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg17:22
MIFand it updates it17:22
MIF/bin/env -i /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg17:22
MIFworks and updates it17:22
MIFin cron it dose not17:22
sdezielMIF: is crond actually running?17:22
MIFhow do I check17:23
MIFyes it is working17:24
MIFI just did   *   *   *   *   *   /bin/mkdir /test17:24
MIFand it worked17:24
sdezieltry: cd / && /bin/env -i /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg17:25
MIFas a command or cron?17:26
sdezielno, interactively17:26
MIFso a command17:27
MIFit genrates the html file in /17:28
MIFlet me do a config change17:28
MIFnow it works17:29
MIFlet me wait and see if cron is working now17:29
MIFwelp the cron works now17:30
MIFthank you everyone17:30
sdezielMIF: cron jobs start in "/" IIRC so you need to put something like this in your crontab:17:33
sdeziel* * * * * cd /my/path/ && /usr/bin/perl -w  /var/www/html/stats/pisg -co /var/www/html/stats/pisg.cfg17:33
=== ijohnson is now known as ijohnson|lunch
=== ijohnson|lunch is now known as ijohnson

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