/srv/irclogs.ubuntu.com/2014/07/24/#ubuntu-server.txt

msxhi all, sorry to bother here but I'm unable to find the answer anywhere else: i'm looking for a clean way to close the session (logout) from the command line. gnome-session-quit wont work, nor the dbus method shown here: http://askubuntu.com/questions/15795/how-can-you-log-out-via-the-terminal. Also, I don't want to just 'sudo reboot' but a nicier, more polite method so all running application can00:39
msxsafely end it's ongoing stuff and then end. Any idea?00:39
=== Lcawte is now known as Lcawte|Away
sarnoldmsx: terminal applications should do something sane when they receive a SIGHUP signal00:44
sarnoldmsx: since HUP doesn't necessarily make sense to guis, they are less likely to do something sane when receiving it.00:44
sarnoldI've never tried logging out while applications are 'open' -- can linux apps pause or stop a gui-initiated logout or shutdown process? no idea...00:45
msxsarnold: ahh, I didn't kno GUI apps didn't follow SIGHUP :P good to know!00:46
sarnoldmsx: one hopes they either handle it or block it, but a great many programmers go out of their way to avoid learning about signals altogether. (I can't say I blame em. :)00:47
msxbut, i.e. with Unity, when you close a session and there are GUI apps active (like a web browser) they will cleanly shutdown, if you just quit the X server they will most likely crash. So me thinks that there should be a clean, polite way to ask the apps to close and then quit the X session - I could be totally wrong oc!00:48
msxsarnold: humm, okay, wasn't aware of that, thank you very much for the heads-up :)00:48
sarnoldmsx: hrm, that dbus answer looked promising00:50
msxsarnold: already checked it out but won't work on 14.04 :S00:50
msxsarnold: at first i think it didn't work because i called the method from within tmux but I have the same error from a plain bash shell00:51
sarnoldmsx: hey, I think I found something worth trying00:53
msxsarnold: weee! Tell me!00:53
msx:D00:53
sarnoldmsx: install the d-feet package, run d-feet, and poke aroud in the org.freedesktop.login1 namespace00:53
msxroger that, on my way00:54
sarnoldmsx: there's an /org/freedesktop/login1/seat/seat0 path in there, with a Terminate() method00:54
msxgreat, sounds promising00:54
ruben23hi guys i have installed vsftpd on my ubuntu server and add user but when i access by ftp client i get login incorrect...i sepcified all teh details on the user i added already- any idea guys..?00:54
sarnoldmsx: and under the org.freedesktop.login1.Session interface, there's a Kill() method.. wonder what that does :)00:54
msxsarnold: haha :D00:55
sarnoldmsx: I hope that does the trick :)00:55
msxi'm on that, i'll keep you informed!00:56
sarnoldthanks :D00:56
msxsarnold: thank YOU! However this will take a while as I recently started to learn dbus once and for all... as recently as 6 minutos ago =_=01:04
sarnoldmsx: hehe, similarly, I've done my best to ignore dbus, too. hahahaha. :)01:04
msxand indeed this D-Feet browser is very useful01:04
sarnoldyeah, dbus was 100% baffling before someone pointed me to d-feet. now it's just 70% baffling. :)01:05
msxxD well, seems we all do the same thing until the tides finally catch us, lol01:05
sarnoldnext up: systemd01:05
msxsarnold: well, i have already a foot on it, i've been using arch for a while - and fedora at work - until i returned to my first love (yep, ubuntu)01:07
msxsarnold: you will eaither hate it or love it, but for sure there's no space for any other feeling between ;)01:07
msxs/eaither/either/g01:08
sarnoldmsx: makes sense. I've wanted a real service manager for ages and cgroups feels less ghetto than ptrace, but i'm not loving how it consumes everything else.. ntp? network configuration? sigh :)01:09
msxsarnold: that's my *exact* same gripe on systemd: it started as a much needed upgrade for the PID 1 but since then it has been taking over so much that in a beginning was out of its scope. I don't know if this is a real thing or not but someone told me Poettering want an OS fully based on systemd as its core, most fundamental part and 'sane' API...01:12
sarnoldmsx: hehe, I don't know his intentions, but it sure has grown significantly..01:12
msx*wants01:12
msxabsolutely01:13
radbasaHi, is this a good place to ask for help about UVTool?04:37
sarnoldradbasa: yeah, but might be a bit late (or early, depending upon your timezone :) -- anyway, can't hurt to try04:38
socketguruhi all, can anyone suggest regarding my problem... I have installed ubuntu server 14.04 and want to run systemd for init services...is systemd stable enough for this? I was using archlinux before and systemd was great.. but now we have to use production server which is ubuntu04:47
sarnoldsocketguru: http://www.piware.de/2014/04/booting-ubuntu-with-systemd-now-in-utopic/04:49
socketguruthanks :)04:50
socketguruso you saying systemd will work without any problem?04:53
sarnoldno :)04:53
socketguruhas anyone here used systemd on ubuntu server?04:53
socketgurusarnold:  no ?04:53
sarnoldit looks like it'd be difficult to get it to go on 14.04; and on the devel release, might be decent enough to try04:53
socketgurubut for production server, we have to give a product which should be stable ...So, what is safe way?04:54
sarnoldstick with upstart04:54
socketguruDo you think upstart is a safe choice?04:54
socketguruyeah... okay04:54
sarnoldsystemd may be ready for 14.10 or 15.04, but not yet04:55
socketguruthe thing is i haven't used upstart.. and I dont know if upstart will smooth journalctl log service04:55
sarnoldit might be fine for you to play with, but I wouldn't want to run a business on it yet04:55
socketguruthanks a lot sarnold04:55
radbasaI have successfully create a VM using uvt-kvm with the default usermode networking. I am trying to create a VM with bridged networking. … wait a minute… sarnold, in the process of collecting everything (command-line commands and results, config files, and log files) for posting at pastebin, I discovered that the bridged network VM is up and working, but uvt-kvm wait and uvt-kvm ip isn't seeing it. http://pastebin.com/ZkRKDFta04:56
sarnoldradbasa: yikes, that's way beyond my experiences with it :/ sorry04:58
radbasait's ok. maybe i'll just post it at launchpad04:59
sebas5384talking about network04:59
sebas5384let's say you are using vagrant using virtualbox as a provider, and into the vm, you have some lxc containers with private ip addresses05:00
sebas5384but i want to access from the guest directly to the linux container private address (which is into the vm)05:01
sarnoldsebas5384: I think you've got two options; (a) set up the guest to do IP forwarding and run it as a router/gateway (b) use brctl to add an ethernet bridge in the guest, bind it to the NIC, and bind the lxc containers' IPs to the bridge.05:04
sarnoldsebas5384: I don't know either approach well enough to actually do it myself :) but I hope it gives you some reading..05:04
sarnoldtime to bail :) good luck05:05
sebas5384sarnold: thanks man!05:05
sebas5384sarnold: really helped :)05:05
radbasai used brctl to create an ethernet bridge on the host OS and bound the guest OS to it05:10
sebas5384radbasa: thanks05:40
sebas5384radbasa: did you sow it in some article? i'm lookin for something for guiding me05:41
radbasasebas5384, I followed step three of this http://xmodulo.com/2014/02/use-kvm-command-line-debian-ubuntu.html05:59
sebas5384radbasa: awesome!!05:59
=== taikat_ is now known as taikat
zetheroo1I have a KVM host with 7 Windows VM's running inside ... the reachability of the VM's inside using ping is pretty unstable whereas to the host via either hostname or IP address is fine. The Host is configured with a bond and a bridge ... any ideas what could be causing this behavior?07:24
henkjanzetheroo1: ubuntu 14.04?08:12
zetheroo1yes08:12
henkjanzetheroo1: check the conversations on https://lists.ubuntu.com/archives/ubuntu-server/2014-July/thread.html08:13
henkjanzetheroo1: disabling KSM might help you08:13
henkjanor upgrading to a newer kernel. 3.13 which comes with 14.04 hase some troubles08:13
zetheroo1Host is completely upgraded08:15
henkjanzetheroo1: check the archives on ubuntu-server maillinglist. url above08:17
henkjanthere are some serious problems with 3.13 kernel08:17
henkjantry installing 3.1508:17
zetheroo1this is a productive system ... I cannot be shutting it off and on again or trying to install kernels etc ...08:19
zetheroo1:(08:19
henkjan10 to 15% packetloss on production systems is also bad08:21
bekkshenkjan: Then I'm lucky I'm not affected. :)08:21
henkjanzetheroo1: https://lists.ubuntu.com/archives/ubuntu-server/2014-July/006940.html08:22
zetheroo1I have to get the VM's migrated then08:23
zetheroo1what is the downside of disabling KSM?09:46
rbasakzetheroo1: google points me to http://www.linux-kvm.org/page/KSM, http://en.wikipedia.org/wiki/Kernel_SamePage_Merging_%28KSM%29 and https://www.kernel.org/doc/Documentation/vm/ksm.txt09:48
rbasakzetheroo1: so I don't know, but I guess it just costs you some more memory.09:48
=== Lcawte|Away is now known as Lcawte
xnoxsmoser: fixed up https://code.launchpad.net/~xnox/cloud-init/fix-systemd-install-paths/+merge/227918 to be truly generic11:01
xnoxsmoser: and all tests pass now in the modernised debian packaging https://code.launchpad.net/~xnox/cloud-init/fix-packaging/+merge/22793111:02
codexI started getting this recently on one ubuntu system (12.04 LTS) [via the daily cron email] "run-parts: /etc/cron.daily/mlocate exited with return code 1". There is nothing else (about a lock), and there is no lock. There are no stale NFS shares or out of space mounts.  I've even purged the DB and re-created it. Also, if I run it manually, it works without any problems. I can't figure out what's causing this for the life of me. Anyone run into anyth11:39
PatrickdkI normally just uninstall mlocate11:41
Patrickdksee no point in letting it abuse my server every night11:42
Patrickdkif you don't use the locate command, that would be a fine thing to do11:42
codexIt's convenient for when you want to lookup a file, but then again, I guess you grind the entire system for the benefit of not grinding it once when you actually need it11:42
codexthat's the thing - i do use it every once in a while11:42
codexwhat's strange is I don't see anything about a lock in the cron email. And what's even more strange, it works when I run it by hand. I did a dump of the process table at the time it runs by the cron.daily, and there is nothing else running at the same time/blocking it11:43
smoserxnox, thanks. i'll list12:20
smoserlist ==  look12:20
fidel_hi - anyone used to apt-cacher-ng? I am running a virtual server here which acts as apt-proxy for all our ubuntu-servers. this works great so far. now i am realizing that apt-cacher-ng might be as well able to serve other distributions. is that true? experiences are welcome12:28
peetaur2fidel_: I use apt-cacher-ng. I like it. And without any new config, it handles debian too.13:09
peetaur2fidel_: I haven't tried it with openSUSE, CentOS, etc.13:09
peetaur2apt-cacher-ng brings the install of the cluster down to under 15 min :)13:10
fidel_hi peetaur213:15
fidel_so you are handling with 1 apt-cacher-ng install both ubuntu and debian?13:16
patdk-wkI doubt apt-cacher-ng will work for yum13:16
fidel_do i understand that right? no issues cause of simular filenames etc as it has a proper folder-structure in its cache-folder i assume13:16
patdk-wkwhy would simular filenames matter?13:17
fidel_well i am unsure. i could imagine it could be critical if packages of ubuntu and debian would be mixes. example: debian client gets paket MC - so its stored in the apt-cacher cache. now an ubuntu client is asking for that package aswell13:18
patdk-wkfidel, please think13:18
patdk-wkthey exist on DIFFERENT SERVERS13:18
patdk-wkubuntu packages are not on the same servers as debian ones13:18
patdk-wkand if they where, well, wouldn't be an issue13:18
fidel_i do know - but we are talking about the apt-proxy apt-cacher-ng offers to both clients in that case13:19
patdk-wkthe url for each is different13:19
patdk-wkyes, it STORES the hostname too13:19
patdk-wkor did you think it should strip it?13:19
fidel_as mentioned above - i am/was unsure13:19
=== Mogwai is now known as Guest89336
peetaur2fidel_: yes, one Ubuntu apt-cacher-ng handles any random version of Debian or Ubuntu.13:20
fidel_for me it looks like it crates a clean folder-structure inside its cache folder-  like that it shouldnt be critical at all13:20
fidel_*creates*13:20
fidel_k13:20
peetaur2apt-cacher-ng uses some convention where the client tells the server which hostname to use, so it can go anywhere without server side config ...13:20
peetaur2if that convention was "http proxy" or "socks5" then it would work on any distro that uses those standards.13:21
peetaur2but if it is some debian-only thing, then nope13:21
patdk-wkin my apt-cacher-ng folder, the first item is the server name13:21
patdk-wknow, to help the cacher work better, it has some regex you can define, that will merge multible server names into one13:21
patdk-wklike for sourceforge13:22
peetaur2aptproxy is junk and needs config. apt-cacher and -ng just work out of the box, with any urls.13:22
patdk-wkthe real issue wouldn't be ubuntu vs debian, but using ppa's and 3rd party sources though13:22
peetaur2any apt ones that is13:22
peetaur2ppas work fine too...13:22
fidel_thanks to both of you13:23
patdk-wkpeetaur2, even if it didn't store the hostname/paths?13:23
peetaur2I have several machines using apt-cacher-ng with zfs ZoL PPA for example13:23
jeffreylevesquepeetaur2, are you familiar with 'UNetbootin'?13:23
peetaur2yes no config.... just "apt-get install apt-cacher-ng" and assuming firewall, etc. are set up, it'll work13:23
peetaur2jeffreylevesque: that hack to make usb sticks boot CDROM isos? only aware of its existence, and have not used it.13:23
jeffreylevesqueok, thank you!13:24
peetaur2in fact, every debian and ubuntu machine I know of in the office uses my apt-cacher-ng (excluding private VMs on people's windows that I don't control),13:25
peetaur2and it's nearly flawless. apt-cacher would crash often and needed a watchdog. apt-cacher-ng works great, and only once ever was not responding and a simple restart fixed it.13:25
peetaur2so..... I tested urls like http://aptproxy:3142/startpage.com/ and tried by setting my proxy in the proxy settings, but it just gives me an error page saying to use the apt setup.13:28
peetaur2so my guess is it won't work for yum, zypper, etc.13:28
peetaur2now to try removing such filters in the config ;)13:28
gnuoyrbasak, I have raised a bug with debdiffs for merging upstream nagios-nrpe (Bug#1348142) but it's not clear to me who I should subscribe as the sponsor.13:54
rbasakLooking13:54
gnuoythanks13:54
rbasakgnuoy: normally you need to subscribe ~ubuntu-sponsors. That gets it into the sponsoring queue at http://reqorts.qa.ubuntu.com/reports/sponsoring/index.html.13:56
rbasakgnuoy: but I'll stick this on my todo to review/sponsor so no need.13:56
gnuoyrbasak, perfect, thank you13:56
zuljamespage:  newer pycadf is needed according to the requirements.txt for now14:41
zulfor nvoa14:41
jamespagezul, +114:41
jamespagezul, sqlalchemy +114:42
jamespagezul, I think that general if a minor version bump is involved (rather than patch) its probably worth updating for Juno CA14:43
zuljamespage:  ack...i think new depencies we should agree on automatic +114:43
=== xtriz is now known as fifo
multihunterhi15:47
multihunterI'm trying to use winscp to login as admin then change session to root. I changed sftp serer to "sudo su -c /usr/lib/openssh/sftp-server" When I have this line in visudo everything works fine: admin ALL=(ALL) NOPASSWD: ALL15:47
multihunterbut I want to limit that NOPASSWD so I tried using admin ALL=(ALL) NOPASSWD: /usr/lib/openssh/sftp-server15:48
multihunterand now winscp cant connect. how to solve this?15:48
rbasaksudo isn't calling sftp-server. It's calling su.15:49
rbasakWhy are you calling su anyway?15:49
TzunamiiCreate a dedicated user, give it a specific group and assign the group the necessary permissions. Never use root for such tasks15:50
multihunterwhat if I need to work on some files in /root (via winscp)?15:56
TzunamiiMaybe you should reconsider how you have set up your workflow and the access to it15:59
multihunterwell there's nothing in /root yet, I was just looking for a general way. Thanks16:01
=== mjohnson151 is now known as mjohnson15
=== mjohnson151 is now known as mjohnson15
=== unixoid is now known as unixoid|afk
patrick_Mhaving trouble on trusty with vnc server - can anyone confirm this as a problem: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/127401318:01
uvirtbotLaunchpad bug 1274013 in gnome-session "gnome-session is broken without 3d acceleration, breaking gnome-flashback on non-3D H/W and cloud environments (Forwarded-X, VNC and NX/X2GO) (dup-of: 1251281)" [Critical,Confirmed]18:01
uvirtbotLaunchpad bug 1251281 in gnome-session "xrdp from gnome-session-fallback shows static gray screen via remmina or vinagre" [High,Triaged]18:01
Picipatrick_M: You'll probably have better luck asking in #ubuntu, as ubuntu-server does not ship with a GUI.18:01
patrick_Mok, I'll try there also - but just as an fyi, this is on server18:02
lordievaderGood evening.18:07
=== JanC_ is now known as JanC
zartooshhi I am looking for refind package, any one knows where I can download it from? thx19:27
ToAruShiroiNekoI am trying to install and configure rsnapshot. I am a bit overhwlmed by certain parts though. Any help?19:45
bitbytedo any of you guys know how to switch sessions on ubuntu server. I was doing an update and my laptop died and it got stuck mid update and now the dpkg resource is busy being used.20:37
bitbyteI wanna try connect to the session and finish the update I think its stuck at a prompt20:38
matt2000bitbyte, I dont know how to do it after the fact, but I generally use the screen utility to run such things, since it does allow reconnecting.20:44
blaaaI am building apparmor profiles for an ubuntu 14.04 server, I wonder if I should expect 'usr.lib.postfix.master' to pop up in future revisions of the apparmor-profiles package21:30
bitbytehey guys im trying to rename alot fo files and they all are like “OP-41 L@mBerT” im trying to remove the L@mBerT any ideas where I can start on getting this achived theres around 800 files to renmae21:30
tgm4883The backup/restore guide for LDAP on the server guide doesn't appear to work  https://help.ubuntu.com/lts/serverguide/openldap-server.html#ldap-backup21:46
tgm4883I'm failing at the first slapadd for config.ldif21:46
tgm4883slapadd: could not add entry dn="cn=config" (line=1)21:47
=== solarfly_ is now known as solarfly
=== Lcawte is now known as Lcawte|Away
tokata.22:49
byte22:49
thumperhallyn, stgraber: have tracked down a juju lxc issue to the change of meaning of the "-c" flag on lxc-start in 0.9 to mean device instead of filename22:54
thumperany suggestion on the best way to support 0.8 and newer versions?22:54
thumperdoes 0.8 barf if we give it -L (or --console-log) ?22:56
mnaserso after hours of debugging, i finally found the bug which was causing a lot of issues i was getting22:58
mnaserhttps://bugs.launchpad.net/ubuntu/+source/linux/+bug/1346917 -- it looks like it was commited but how do i know if it was built with it?22:58
uvirtbotLaunchpad bug 1346917 in linux "Using KSM on NUMA capable machines can cause KVM guest performance and stability issues" [High,Fix committed]22:58
mnaseror rather, how do i know if/when a kernel comes out with that updated22:59
sarnoldmnaser: when it's published, a notice will be appended to that bug with the changelog entry; subscribe to that bug for an email23:01
mnasersarnold: ah okay, is there any usual "timeframe" or "schedule" for kernel compiles?23:01
hallynyeah that was a hellofabug23:01
hallynthumper: that change has caused some problems...  I'll (or the list will) have to think through it.  Could you please post an email to lxc-devel, or open a bug?23:02
sarnoldmnaser: I think they happen every three weeks...23:03
mnaserah i see23:03
hallynphew, think i've uncovered another annoying bug in libnih-dbus-assumptions...  converted cgm from a dbus-send wrapper script to a c program;  now the GetTasks method on an empty cgroup claims to return an error.  Sigh.23:04
thumperhallyn: opened this bug for juju https://bugs.launchpad.net/juju-core/+bug/134838623:06
uvirtbotLaunchpad bug 1348386 in juju-core/1.20 "lxc template fails to stop" [High,Triaged]23:06
hallynthumper: stuck it in my list to look at tomorrow.  disappearing shortly - ttyl23:09
thumperhallyn: ack23:10
hallyn(i think stgraber will be back tomorrow, he may actually remember something about this other than that others have brought it up :)23:11
hallynthumper: so to be clear, waht you want is what is now the "-L" option?23:14
hallynI think having lxc detect that the console device is not a device, and falling back to -L, would be reasonable23:14
thumperhallyn: what I want is really just a way to be able to determine which flags to pass23:15
thumpersince we want to support centos, can't even use dpkg to figure out version23:15
thumperactually, that would be reasonable...23:16
thumperthe fallback that is23:16
thumperproblem is, that supporting a fallback option for lxc is a big problem, as you have many version to tweak23:17
thumperif juju could work it out, it would be easier for us23:17
hallynyou say 0.8 was when this happened?23:17
thumperthe docs for 0.8 say -c is a filename, 0.9 -c is a device23:18
hallynoh i think that was commit 596a818d4b8b55586d36af518b745cd96b24c67a23:18
thumperjust looking at docs to determine this23:18
hallyn"separate console device from console log"23:18
thumpersounds like that could be it23:18
hallynso you do have a simple way to detect then,23:19
hallyntry "-L", if it fails, you can use -c for -L23:19
thumperwe could23:19
thumperif using -L on 0.8 fails in a way we can detect23:19
thumperit's kinda icky, but would work23:20
hallynit should fail giving you usage output23:20
hallynor i can do the fallback for -c, but that wont' help with all the version already out there23:20
thumperright23:22
hallynI must dash - if the bad-args-detect works for you, pls comment in the bug?  I'll check it tonight.23:24
* hallyn out23:24
thumperkk23:24

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