/srv/irclogs.ubuntu.com/2018/03/21/#ubuntu-server.txt

=== ideopathic_ is now known as ideopathic
lordievaderGood morning07:06
march__Hello, I'm having a bug on UbuntuServer 16.04-DAILY-LTS on Azure. Looks like Cloud-init broken. does it ring a bell ?08:18
march__somehow the provisioning is not going well between waagent and cloud-init08:19
=== chat is now known as Guest38392
adacGuys my server suddenly halted in the night, but there is nothing that indicates what happened in my /var/log/syslog08:34
adacis there a nother place I can check08:34
lordievaderadac: dmesg?08:36
adaclordievader, hmm there is no date on dmesg output08:38
lordievaderadac: There is if you run `dmesg -T`.08:38
adaclordievader, that did the trick! :D08:40
lordievaderDoes it give some hints?08:40
adaclordievader, but there is only data showing since the last boot this morning it seems08:40
lordievaderThere might be more in `/var/log/dmesg*`08:41
adaclordievader, hmm acutally there is only one file namely /var/log/dmesg itself there and that one is empty08:43
lordievaderWhat version of Ubuntu are you running?08:44
adaclordievader, https://pastebin.com/FxKqXdfE08:48
lordievaderadac: Ah, `sudo journalctl -b -1` might help you.08:49
adaclordievader, hmm it says: Specifying boot ID has no effect, no persistent journal was found08:50
lordievaderHmm. Stupid default.08:50
adacI think I need to tweak then some things08:50
lordievaderYes, you want to configure systemd-journald and logrotate.08:51
adaclordievader, kk thanks09:00
ducasseadac: if you create the directory /var/log/journal you will get persistent journalling, so you can look up messages from the previous boot with 'journalctl -b 1'09:09
adacducasse, thanks for the hint!09:09
march__so ftr, cloud init doesn't execute custom script if there is a script stuck in same/previous runlevel https://serverfault.com/questions/852946/aws-userdata-script-in-cloud-init-not-running09:21
=== ShriHari is now known as IDK
=== IDK is now known as Guest88476
=== Guest88476 is now known as IDKIDKIDK
=== ShriHari is now known as Ubuntu_admin
gunixcan anybody here helm me with maas cause nobody there is answering10:59
gunix?10:59
Ubuntu_admin<gunix> whats maas11:02
hateball!maas11:04
ubottuMetal as a Service is a dynamic server provisioning service for scalability. See more about it at https://maas.ubuntu.com.11:04
rbasakgunix: try #maas11:49
Neo4:)12:04
Neo4good afternoon12:04
ahasenackcpaelzer: I saw how autopkgtest created the console on ttyS1, or tried to12:10
ahasenackcpaelzer: there should be a more modern way to do it :)12:10
ahasenackcpaelzer: reading the bug you pointed me at, now12:10
ahasenackcpaelzer: the other two issues I had were:12:10
ahasenacka) on ppc64el, for some reason it booted off vdb, not vda. So I had to change autopkgtest's assumption that the iso with the test setup script was in vdb and change that to vda12:11
ahasenackb) I had to pass -m ports.ubuntu.com/blabla, otherwise it would try to find ppc packages in archive.u.c12:11
cpaelzerahasenack: TL;DR non-x86 could need some improvement in autopkgtest buildvm (IMHO)12:12
ahasenackso true12:12
ahasenackI wonder how britney does it12:12
ahasenackcpaelzer: so, are you able to run ppc autopackagetests? I seem to recall you saying so in one or two old MPs. Or was that using biletto?12:13
cpaelzerahasenack: the CI infra uses openstack and custom images for it12:15
cpaelzerahasenack: most of the time you get around by (locally) just using lxd12:15
cpaelzerahasenack: I sometimes fixed up my VM images, but I'm not as experienced in it to have a great howto or gist about it12:15
cpaelzerahasenack: would lxd on ppc be an option for your case, I think no as you are mounting12:16
ahasenackI have to check12:16
cpaelzerahasenack: we can either try to fix up your image to work correctly12:16
ahasenackI'm trying to reproduce a bug that happens only during migration so far12:16
ahasenackthe closest I have is a vm, since they use openstack as you said12:16
cpaelzerahasenack: or you run what the test would run in a normal bionic ppc vm spawned via uvtool12:16
cpaelzerahasenack: I can try to make a working bionic image (again) if it is needed (a.k.a if reproducing in a uvt VM fails)12:17
ahasenackI thought that autopkgtest would just work, given that we use it in migrations12:17
cpaelzerahasenack: it does just work if pre-setup is done :-)12:18
ahasenackthat's how I started down this road, but it's definitely not as simple12:18
cpaelzernothing ever is12:18
ahasenackat this point it sounds more like a weekend project12:19
ahasenackI have a question regarding purge and remove behavior (deb package)12:37
ahasenackthere is an motd cache in /var/cache/<pkg>/bla.cache12:37
ahasenackit is removed in purge, but not with a simple "remove"12:37
ahasenackI think it should be removed with "apt remove" as well, becaues otherwise the motd will keep being displayed12:38
ahasenackeven though the script that generated it no longer exists12:38
ahasenackthoughts?12:38
ahasenackpostrm is this:12:38
ahasenackif [ "$1" = purge -a -f "$CACHE_FILE" ]; then12:38
ahasenack    rm "$CACHE_FILE"12:38
ahasenackfi12:38
ahasenackthat particular cache/motd is showing the state of the system regarding livepatch status12:39
cpaelzerahasenack: yes I'd agree to remove it on remove as well13:14
cpaelzerahasenack: but I'd also retrigger a creation of the cache on that13:15
cpaelzerahasenack: is that possible?13:15
cpaelzerahasenack: because IIRC otherwise the next login might have no content at all13:15
ahasenackthe next login would not have *this* content13:15
cpaelzerif that cache is the main content that would be displayed13:15
ahasenackit's just one motd, of many13:15
ahasenackthat being said, I just checked the code again and saw that we already won't display the cache if the script that generated it is no longer installed13:16
cpaelzerok, so leaving the file on remove is not an issue then?13:16
ahasenacknot user-visible issue13:17
ahasenackthe remaining issue would be if the user reinstalled it days later13:17
ahasenackfor a while it would then display the old cache (while == 1 day at most)13:18
ahasenackversus displaying nothing until the cache is regenerated13:18
cpaelzerahasenack: is there a trivial way to retrigger creating all those bits that make up motd?13:25
cpaelzerahasenack: because if so IMHO any package dropping (or removing) something there should re-generate that cache13:25
cpaelzerif it is a complex mess, then it might be not feasible to do so13:25
ahasenackcpaelzer: there is no global cache13:26
ahasenackcpaelzer: each script handles it in its own way13:26
cpaelzerwould there be a global trigger?13:26
ahasenacknot that I know of13:26
cpaelzerok13:26
ahasenackI just login again13:26
ahasenackfor the ua-tools bit, though13:27
ahasenackit's a daily cron job13:27
ahasenackso what I do it edit /etc/cronttab and change the daily timer to be in the next minute13:27
cpaelzerbut that cron job (and that login) has to call something13:28
cpaelzercan't we call this "something" from the postinst/postrm ?13:28
ahasenackwe could, yes, but that also calls apt-cache policy to check the status of some ua features13:29
ahasenackand I was fearful of calling that in the middle of a dpkg transaction without more careful testing13:29
ahasenackI think it might also call dpkg itself13:30
ahasenackto query things13:30
cpaelzeryeah all of this was the reason to do it async in the background13:30
cpaelzerand not sync on login13:30
cpaelzercould we just "fire and forget" it from the maintainer script13:30
cpaelzerjust as the login does?13:30
cpaelzerI'm not trying to convince you - I ask "do you tihnk it would be better to do so"13:31
ahasenackthe login doesn't call that anymore, it's just the cronjob13:31
ahasenackthe login just parses the cache file, if it exists13:31
ahasenackcalling the script that the cron job calls at postinst just has that issue I mentioned of dpkg and apt-cache being used13:32
ahasenackwhich I don't know how serious is13:32
ahasenackI would fear stumbling upon lock files and whatnot from dpkg and apt13:32
cpaelzeryep13:32
cpaelzerkeep it as is13:32
cpaelzerthanks for the discussion13:33
ahasenacknp13:33
cpaelzerahasenack: ppa for the motd change?13:34
pgaxattecoreycb: hi again :) as i said on #openstack-infra, there's a small issue for mistral's packages on cloud archive13:35
ahasenackcpaelzer: oh, hm13:36
ahasenackcpaelzer: I didn't create one this time, sorry. I can do that quickly13:36
pgaxattecoreycb: on pike version (5.0.0 which is quite behind the latest pike version on github) it is not possible to install mistral-event-engine and mistral-engine together since the mistral-event-engine provides the mistral-engine role instead of mistral-event-engine13:36
ahasenacksince builddeps is so tiny I was just building the deb on my host13:36
cpaelzerahasenack: I'm fine building locally as well13:37
cpaelzerI can push into my test container from here13:37
ahasenackcpaelzer: ok, thanks and sorry13:37
coreycbpgaxatte: ok is that fixed in a pike point release?13:37
coreycbpgaxatte: let's get a bug opened at https://bugs.launchpad.net/cloud-archive and I can dig further13:38
pgaxattecoreycb: what do you mean by point release?13:38
pgaxattecoreycb: fair enough i'll file a bug ;)13:38
coreycbpgaxatte: like a 5.0.1 version13:38
coreycbpgaxatte: thanks13:38
pgaxattecoreycb: i only see 5.0.0, no superior version13:39
pgaxattecoreycb: well there is 6.0 but it is queens and i'm interested in pike13:40
coreycbpgaxatte: i see a tag for 5.2.213:40
ahasenackcpaelzer: the other day you mentioned something about cpu throttling in qemu13:41
ahasenackcpaelzer: what is the trick? I would like to slow things down a bit13:41
pgaxattecoreycb: yes on github but my problem is related to the debianization13:41
coreycbpgaxatte: oh, so yes we only have 5.0.0 atm for pike but we can do a stable release for 5.2.213:42
pgaxattecoreycb: yes that would be good but the debian/mistral-event-engine.init.in needs fixing too13:43
coreycbpgaxatte: ok i can fix that up too. please add details to the bug and then i'll work on it soon.13:43
pgaxattecoreycb: thanks i'm preparing the bug13:44
cpaelzerahasenack: let me write a txt with a few rough steps to slow it down13:45
ahasenackthanks13:45
cpaelzerfinishing your MP review first :-)13:46
ahasenackof course13:47
cpaelzerahasenack: what is the corn job I might want to trigger13:50
cpaelzerI'm in the "now the line is gone" state13:50
ahasenackcpaelzer: daily in /etc/cronttab13:51
ahasenackI prefer to have cron do it instead of calling the script manually, because13:51
ahasenackin the past calling the script directly hid a bug (/snap/bin wasn't in cron's PATH)13:51
ahasenackcpaelzer: so I edit /etc/cronttab, the daily line, and have it run in the next minute. Then save and wait, tailing /var/log/syslog to see when it ran13:51
pgaxattecoreycb: https://bugs.launchpad.net/cloud-archive/+bug/175743313:52
ubottuLaunchpad bug 1757433 in Ubuntu Cloud Archive "mistral-event-engine conflicts mistral-event" [Undecided,New]13:52
cpaelzerall good, done already andol13:53
coreycbpgaxatte: thanks, will take a look shortly13:53
cpaelzersorry ahasenack I meant13:53
pgaxattecoreycb: thanks ;)13:53
trippeh_hm. the systemd update that was just pushed to artful fails in chroot for me.14:47
adacGuys why is it saying that it keeps back these packages14:49
adachttps://pastebin.com/9eR8sAgh14:49
adacshouldn't dit-upgrade update them anyways?14:50
adac*dist-upgrade14:50
lordievaderadac: Dist-upgrade should. Upgrade probably doesn't because the dependencies changed.14:51
adaclordievader, but I'm actually using dist-upgrade14:51
JanCthere might be missing dependencies14:51
adachmm14:51
adachow can I resolve this?14:52
JanCmaybe just wait until the missing packages are available14:52
JanCthese are meta-packages which depend on the latest kernel version14:52
JanCsometimes these packages are available before the new kernel version is available14:53
lordievaderadac: `apt-cache show linux-image-generic` shows the depencies of the package.14:54
JanCmaybe do an apt update and try again14:54
JanC(if it doesn't work now, try again in a couple hours)14:55
sdezieladac: do you see them when running "apt-mark showhold" ?14:56
adaclordievader, JanC I now found out what  did wrong14:56
adacWith ansible I had set this:14:56
adaccommand: apt-mark hold {{ ubuntu_kernel_version }}14:56
sdezielthere you go14:56
JanCeh14:56
JanCright14:56
adaclinux-image-4.4.0-116-generic14:57
adacwas the value14:57
adacyes but It didn't show up in the list of the packages that are hold14:57
JanCif you block upgrades, upgrades will be blocked  :)14:57
adacso therefore I tought it was not on hold14:57
adacJanC, yes that sounds about right^^14:57
adacI think I cannot lock a  certain version14:58
adacI can only lock the pakacge name or?14:58
adacI can only lock the package name or?14:58
adaclinux-image-extra-virtual linux-image-generic14:59
lordievaderIf you want to lock to a certain version, you could manually install that version and remove the meta package. But you loose the automatic updates.15:00
adaclordievader, is this still valid:15:07
adachttps://askubuntu.com/a/67863315:07
lordievaderadac: I have never frozen a kernel, so I don't really know.15:09
adaclordievader, kk :)15:09
=== LaserAllan is now known as Guest791
tobascocoreycb: cool so i think i got understand the packaging process, just two questions now; when specifying the package dependencies we go by the requirements.txt for the project right? how is the testing for packages should i just spin up a vm and test the package? (openstack related btw)15:14
coreycbtobasco: yes generally test-requirements.txt and requirements.txt would go in Build-Depends-Indep and requirements.txt would go in Depends.15:16
coreycbtobasco: do you know how to create a PPA? you could upload to a PPA and install from that in your vm.15:17
tobascocool, have never created a ppa only used them, i'll test it out thanks15:19
coreycbtobasco: assuming you have a launchpad account you can model a bionic ppa after this https://launchpad.net/~corey.bryant/+archive/ubuntu/bionic-queens15:20
coreycbtobasco: this script comes in useful to avoid any version conflicts in a ppa when uploading the same version multiple times: https://paste.ubuntu.com/p/P4SCnF5wTq/15:22
tobascocoreycb: thanks15:27
tobascoi'll see what i can come up with15:27
=== LaserAllan is now known as Guest73615
sansayHey guys whats the proper way to change logrotation for nginx? Ive been editing the file in /etc/logrotation/nginx is this the correct way?16:02
naccteward: --^ maybe you know?16:02
zioprotohello all16:04
zioprotoI noticed that in the Ubuntu Kernel packages there are many kernels that are cloud specific16:04
zioprotolooking at apt-cache search linux-image | egrep "gce|azure|aws"16:04
nacczioproto: yes.16:05
zioprotowhat is special about these kernels ? Is there some special kernel to use also in case of Openstack qemu+kmv hypervisors ?16:05
tobascocoreycb: when uploading to launchpad ppa with dput does it take a while before i can see it?16:06
zioprotonacc: ?16:06
coreycbtobasco: it shouldn't take too long, probably 5 minutes. if it gets rejected you'll get an email.16:06
nacczioproto: well, you hadn't yet asekd a question, so I was agreeing they exist.16:06
tobascocoreycb: ok thanks16:06
zioprotonacc: what is special about these kernels ? Is there some special kernel to use also in case of Openstack qemu+kmv hypervisors ?16:07
zioprotonacc: those kernels are meant for virtual instances, right ??16:07
naccOdd_Bloke: --^ ?16:08
sdezielzioproto: there is also the linux-kvm flavor16:12
sdezielzioproto: they use a different config set so they don't come with all the generic stuff required for a given kernel to be able to run on bare metal servers, laptops, KVM guest, Xen guest, etc16:15
sdezielzioproto: you can compare their /boot/config-$version files to see how much they differ16:16
zioprotothanks !16:16
sdezielnp16:17
balloonsrbasak, so I noticed ppc64el failed to build for mongodb-server-core still16:51
rbasakballoons: yeah I'm looking in to it16:57
balloonsrbasak, no worries. Thanks16:57
=== daniel is now known as Guest77671
=== Guest77671 is now known as Odd_Bloke
=== Guest73615 is now known as LaserAllan_
gunixcan i install ubuntu to a device, when i already have a running ubuntu ?19:24
gunixI have an ubuntu with cli and i want to install to /dev/sda19:25
sarnoldthe debootstrap tool may be able to help you19:25
sarnoldyou'll probably have to handle booting yourself19:26
gunixdoes it work for ubuntu ?19:26
gunixi wouldn't be in this situation if MAAS would detect /dev/sda19:26
gunixbut it does not ...19:26
sarnolddoes it detect it udner a different name?19:27
gunixno, it doesn't detect any storage ...19:28
gunixpreviously there was no /dev/sda even in bash, but i change the array controller from the del gen9 to get the disks into HBA19:28
gunixraid not needed since there is only one disk on the smartarray19:29
gunixnow i see /dev/sda in bash, but in MAAS still not :D19:29
ahasenackgunix: did you recommission?19:30
gunixahasenack:19:30
gunixno19:30
gunixwill that fix it ?19:30
gunixi just shut it down and click on commission again "?19:31
ahasenackit will only refresh the hardware data if you recommission19:31
ahasenackand if it's an old maas, you will have to re-enlist, but recent versions should be fine19:31
ahasenackgunix: yeah, pretty much. It will erase what you have installed there, though19:31
gunix"old maas"19:31
ahasenacklike 1.719:31
ahasenackthat's old19:31
gunixi did "apt install maas" on ubuntu 16.0419:32
gunixif that got me an old maas i am dissapointed :D19:32
ahasenackno, that should have given you a pretty recent one19:32
ahasenack2.3 I think19:32
ahasenackso you should be good on that front19:32
gunix2.3.0-6434-gd354690-0ubuntu1~16.04.119:33
ahasenackyep19:33
gunixok i did commission again19:33
gunixthat worked lol19:38
gunixahasenack: i want to kiss you19:38
sarnoldahasenack: nice :D19:38
ahasenackhaha19:38
gunixi hope you are a dude cause my wife doesn't allow me to touch other girls19:38
=== hugh_jim_bissell is now known as whaley
gunixawkward silence ... :))19:51
ahasenackI have this source tarball that installs a bash completion file in /etc/bash_completion.d20:04
ahasenackbut that's an "old" location, it should be in /usr/share/bash-completion/completions nowadays20:05
ahasenackthe new location is a bit stricted regarding filenames, though. The filename that is being installed is something.sh20:05
ahasenackthat is not read anymore. It needs to be just "something", or "something.bash", as far as I understood20:05
ahasenackso, simple question: how to install it with the new name without patching the source tarball?20:06
ahasenackdh_install can't rename20:06
ahasenackdh-exec?20:06
ahasenackor an override in d/rules?20:06
naccahasenack: yeah, you want dh-exec and a debian/<package>.install20:08
naccalthough i would think completions going to a specific directroy are handled by a helper, but i might be wrong20:08
ahasenackthere is a helper20:08
naccahasenack: cf. man dh_install20:08
ahasenackdh-bash-completion20:08
ahasenackdh_, rather20:08
ahasenackhm, it seems to suport renames20:09
ahasenacklet me try that20:09
gunixahasenack: do you know why i can't recommission other nodes ?20:15
ahasenackgnuoy: no, what fails?20:15
gunix1 node cannot be commissioned. To proceed, update your selection.20:15
gunixi actually can't start the commission process20:15
ahasenackgunix: that can happen when you select multiple20:15
ahasenackgunix: and one or more is in a state that doesn't allow commissioning20:15
ahasenackgunix: for example, it's deployed20:16
ahasenackit needs to be ready, or new, iirc20:16
gunixahasenack: oh, i have to override failed testing20:16
gunixit's working now20:27
ahasenacknacc: hm, the bash-completion package installs dh_bash-completion, but the latter is not mentioned in the debhelper manpage. I created the <package>.bash-completion file, added build-depends for bash-completion, but dh_bash-completion was not called20:30
ahasenackd/rules has the usual "dh $@" line20:31
ahasenackdebian/compat is 920:31
ahasenackany ideas?20:32
ahasenackbuild log shows no attempt at calling dh_bash-completion20:32
* ahasenack maybe needs a --with in the dh line20:33
ahasenackyep20:34
ahasenack--with it is20:34
ahasenackthanks :)20:34
cliluwIf I'm making my own apt repositories, what should I specify for the component? main, universe, multiverse, or something else?21:27
_KaszpiR_cliluw it really depends on what packages you have21:29
_KaszpiR_try with main, and if fails then expand21:29
cliluw_KaszpiR_: Isn't main only for "Canonical-supported free and open-source software"? It seems like if it's in my own repository, that would almost be definition not be Canonical-supported.21:31
_KaszpiR_oh your own repo21:32
_KaszpiR_sorry, misunderstood as mirror21:32
_KaszpiR_well, actually do whatevfer you like and use apt-pin21:32
aroonii've got 4.1 gb of storage on /src/ for various linux headers on ubuntu 14.0421:49
aroonianwyay to clean some of those out?21:49
aroonithis is safe? sudo apt-get autoremove21:49
_KaszpiR_it will be re-downloaded21:57
TJ-arooni: if the related linux-image-<VERSION> has been removed the headers should autoremove22:14
Wolf_Y_Hey, anyone active, i would like to talk about some samba/ip Ubuntu server issues im experiencing !22:21
sarnoldirc works best with specific questions22:22
compdocWolf_Y_, whats the issue?22:24
compdocdoes anyone know how snaps works?22:24
TJ-compdoc: basically a wrapper around an LXd container22:28
Wolf_Y_compdoc: alright, so i installed a fresh ubuntu server 17.1022:30
Wolf_Y_ran ifconfig -a and my ip was something like 172.x.x.x22:31
Wolf_Y_installed plex,samba and the good stuff22:31
Wolf_Y_everything works like a charm, but plex on tv can not find the server22:31
Wolf_Y_so i bridged the connection between my host adapter and hyper-v one (im using hyper v manager,virtual ubuntu server)22:31
Wolf_Y_my ip on ubuntu is 192.x.x.x.22:32
Wolf_Y_same as host, so netplan again and i made it static22:32
Wolf_Y_now tv can see plex22:32
Wolf_Y_but plex cant see folder22:32
Wolf_Y_and i can not samba share anything22:32
Wolf_Y_what do you think is the issues22:32
Wolf_Y_if you are not clear with the set-up shoot ill give my best to explain more in depth22:34
sarnoldso .. you've got a hyper-v hypervisor, and are doing bridged networking to your LAN?22:35
sarnoldyou said you assigned the ubuntu VM a static address -- do you have a DHCP server on the lan? perhaps your internet router / firewall?22:36
aroonianyway to find out where php-fpm7 logs to ? (using nginx if that matters)22:37
sarnoldarooni: lsof probably shows an open filedescriptor22:37
arooniweird; that process is totally running but lsof shows "status error on php-fpm no such file or directory"22:38
naccahasenack: sorry, was afk22:39
nacccliluw: seems like an odd question -- do whatever you want?22:39
cliluwnacc: I'm just worried if I use component "main" instead of component "universe", maybe it could break something down the road.22:40
nacccliluw: those are for the purposes of the archives themselves, really -- apt just follows the files in the archives it's told to22:41
sarnoldI think you can even set up your own sources without having the main / universe / etc level at all22:41
naccyes, it's based upon the Packages file contents, I'm pretty sure22:42
naccwhich for the Ubuntu archives refer to the components in the file paths22:42
cliluwsarnold: Is it possible to get rid of the distribution level too, like "xenial" or "zesty"? I'm pretty sure my packages will work across distributions so I don't see why I need that level.22:42
nacccliluw: ... you don't usually do that22:42
nacccliluw: as your dependencies come from those distributions too22:42
nacccliluw: i mean, very few things 'just work' across releases like that :)22:42
cliluwnacc: My package is a Go binary so it's statically linked.22:43
nacccliluw: oh22:43
nacccliluw: why is it a deb at all then?22:43
sarnoldheh :)22:43
nacccliluw: i mean if it's a statically linked binary, why do you need a package?22:43
sarnoldthe pre/post inst/rm scripts might be nice22:44
cliluwnacc: We prefer to deploy everything through Debian packages. It gives you other niceties like systemd service registration, etc.22:44
nacccliluw: so it's not *just* a static go binary? it's also a systemd unit?22:45
nacccliluw: that's all you needed to say :)22:45
Wolf_Y_arooni:  sorry was afk, is there a way in which we can connect so i can show you my set-up, i can try and explain more in depth if needed but my eng is non-native so im affraid ill get lost or confuse you, the thing i had in mind for connecting is skype!22:45
nacccliluw: tbh, sounds like it should be a snap, but what do i know :)22:45
nacccliluw: in any case, you might be right that it doesn't need the release in the path22:45
arooniWolf_Y_: i appreciate it!  but i think i have it figured out now :)22:45
nacccliluw: but i'm not sure how apt handles those URLs in those cases (given the <release-pocket> is part of the specification in the sources.list22:46
nacccliluw: it seems easiest to just leave it, and worst-case, symlink the file around22:46
Wolf_Y_arooni: i though we where talking about the issues im experiencing22:48
Wolf_Y_compdoc: still there ?22:49
arooniah i'm a noob-ish sysadmin at best :P  still learning the ropes22:49
compdocWolf_Y23:00
Wolf_Y_compdoc: im here, are you here ?23:12
compdocIm in and out. Im configuring a new server23:20
Wolf_Y_compdoc:  is there a way in which we can talk or something, dis, skype anything....23:21
Wolf_Y_compdoc:  i have some questions and issues i would like to share, and maybe we could figure them out together if you have time afcorse23:21
compdocbest to jusy list your problems here, then others can help23:22
Wolf_Y_compdoc: i did, and im also on #ubuntu at the same time23:24
naccWolf_Y_: it's preferred not to crosspost as well23:24
Wolf_Y_compdoc:  but the thing i would like the most is to show it to someone23:25
Wolf_Y_nacc:  oh did not know...sorry23:25
Wolf_Y_compdoc:  would you be interested to talk ?23:25
compdoccant, busy23:25
Wolf_Y_compdoc:  alright, maybe some other time then23:28
Wolf_Y_if anyone else is interested in listening to my strange problems, ill be here23:28
mojtabaHello, I am using this command to sync directories when a particular computer turns on. Do you know how can I re-run this command automatically, after it ends, due to disappearance of that computer or network error?23:31
mojtabauntil nmap -sn 192.168.2.0/24 | grep 2.17; do sleep 300; done; rsync --progress --partial -avz -e "ssh -i /home/.ssh/ns" ns@192.168.2.17:"/Users/nafis/Masters/2016/" .23:31
sarnoldmojtaba: probably just move the '; done' to the end of the command23:32
mojtabasarnold: thanks23:33
naccmojtaba: i think you want to rethink it more than that, even23:33
naccmojtaba: since if it's gone away, you need to redo the until as well, afaict23:33
mojtabanacc: hmm, how?23:33
mojtabanacc: yes23:34
naccmojtaba: so it's insufficient to just move the done23:34
sarnoldoh :(23:34
mojtabanacc: should I add another until?23:34
naccmojtaba: you really want to put a second until in the loop23:34
naccmaybe, at least23:34
naccdon't start the loop until the server is available23:34
naccwait 300s in that case23:34
nacctry to rsync23:34
naccif rsync fails (use error checking)23:34
naccretry the whole shebang23:35
naccif rsync succeeds, then exit23:35
mojtabanacc: can it be a one liner, like the one that I had?23:35
sarnoldmaybe it'd be easier to just cronjob the thing with 'run-one' every half hour or something? skip the connectivity checks..23:35
naccmojtaba: anyting *can* be a one liner23:35
naccmojtaba: but it's not sensible to make long one-liners and i have no idea why you would except to make your own maintenance harder23:36
naccmojtaba: are you competing in some competition?23:36
mojtabanacc: It is just one time use.23:36
naccmojtaba: nothing is every just one time use23:36
naccyou've already used it at least twice, once when it worked, and now debugging it when it didn't23:36
naccso do it correctly :)23:36
mojtabanacc: thanks, for the advice.23:37
naccmojtaba: in any case, you probably want ##bash, as this has little to nothing to do with ubuntu server :)23:37
mojtabanacc: I see. Thanks a lot23:37

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