/srv/irclogs.ubuntu.com/2014/09/10/#ubuntu-server.txt

=== ChmEarl is now known as PryMar56
TakyojiAny specific way to test if DHCP on a network is functional?01:50
TakyojiI've been trying to use dhcping, but get an answer of 'no answer', even on my home network, which has working DHCP01:50
Takyojiotherwise is there any other useful commands?01:53
Takyojior does dhcping work for anyone else at all?01:58
sarnoldheh seems like dhcping requires a lot of command-line fiddling..01:59
sarnoldTakyoji: Got answer from: 192.168.1.102:01
Takyojisarnold: Odd, not sure why it isn't working for me. And I assume there's no difference between Ubuntu Server and Desktop, networking-wise02:15
sarnoldTakyoji: well, desktop has NetworkManager and assorted things02:16
sarnold(and I tested on my laptop because it's what's easy :)02:16
TakyojiBecause I'm testing from desktop versions02:16
sarnoldTakyoji: how did you execute dhcping?02:16
TakyojiAlright, I guess PEBKAC, seems to be working fine now, oddly. I must have just been setting the wrong parameters02:18
sarnoldor it was a temporary problem, which might not help you much :) heh02:20
=== arrrghhh is now known as arrrghhhAWAY
MrPPSHey guys, having some issues with SSL. I have a ubuntu 12.04.5 server that has been connecting fine to a server on an SSL secured port, however, recently, I've been having handshake failure issues. I run "openssl s_client -showcerts -connect server:port", and sometimes it returns the cert, other times it returns: "140010279691936:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake06:03
MrPPSfailure:s23_lib.c:177"06:03
MrPPSfollowed by "no peer certificate available"06:03
MrPPSYet any of my other servers (including 12.04.5) have no issue doing this06:03
MrPPSAny clues?06:03
TakyojiPerhaps the time is misconfigured, as a very random guess06:07
MrPPSappreciate the guess, but time has been verified as being correct :)06:08
Takyojior otherwise the port isn't actually SSL, it may be plaintext06:08
MrPPSvery occasionally, that same command returns the SSL cert06:08
MrPPSi.e., 1/7 times06:08
MrPPShowever, the same command run from other servers returns it every time06:08
MrPPSand also, that same command to any other ssl-secured server works fine06:10
Takyojiare the others newer?06:10
MrPPSyeah, they were set up more recently06:10
MrPPSbut they're also part of a different network06:10
MrPPSother servers, SSL secured in the same network, give the same issue06:11
MrPPSbut only seen from this one client :P06:11
Takyojiwhat type of service is it? HTTP, POP/IMAP/SMTP, or?06:12
MrPPSIRC06:12
MrPPSconnecting to my own IRC network is fine, but connecting to this one is not :(06:12
MrPPSand prior to today, it'd been no issue, and they haven't changed the certs on their servers06:12
MrPPSso just trying to determine what could be causing it :)06:12
Takyojiable to provide a full paste of what the openssl client command returns (if there's any more content)?06:16
MrPPSyeah, one sec06:16
MrPPSTakyoji: an example of a failure: http://pastie.org/954097306:18
TakyojiIs it not just outright dropping the connection?06:19
Takyojigiven "has read 0 bytes and written 213 bytes"06:19
MrPPSseems like it theoretically could be, but then I try again a second or two later, and it works fine06:20
MrPPSoh, it is important to note06:20
MrPPSexisting connections to it are staying connected06:20
MrPPSi.e., I have ZNC on there that connected a week ago, and that's still fine06:20
MrPPSbut trying to set up a new connection, or manually with openssl, is giving that error06:20
Takyojiis there any sort of port forwarding or things going on?06:23
MrPPSnone at all06:24
MrPPSthese are all servers in DC's06:24
MrPPSwith public v4's06:24
TakyojiTried asking about your situation with a support channel of your IRCd?06:25
Takyojihttp://serverfault.com/questions/389197/ssl-routinesssl23-writessl-handshake-failure06:26
TakyojiMrPPS, ^06:27
MrPPSTakyoji: cheers, having a look at the serrver port article06:28
MrPPShaha, -tls1 flag isn't accepted for my client :/06:30
Arthi'm trying to make it so that whern you go to the domain, instead of trying to connect to www.domain.com:80, it goes to another service(port) by default06:31
Arthlets say i had a service running at port 555, instead of going to the domain and it points to domain.com:80 i want it to go to domain.com:555 without me having to add :555 to the url06:31
Arthis that possible? without using javascript/meta redirects, doesn't seem to work for me06:32
MrPPSoh, never mind, it is picky about the flags order06:32
TakyojiArth, that idea really only applies to SRV records, and in the context of HTTP, browsers don't check for SRV records, they only do A/AAAA records06:32
MrPPSIf I was lazy, I'd just get socat to do port translation06:33
MrPPS:P06:33
ArthTakyoji: are you saying it's not possible06:33
TakyojiPretty much. In DNS, an A or AAAA record just tells your computer which IP there is for the domain.06:34
TakyojiWhereas with SRV, it'll tell you which IP and port, for the service your requesting. And HTTP doesn't implement that idea.06:34
Arththanks, so MrPPS how exactly would socat help me06:34
TakyojiI mean, not that it's HTTP itself, it's just browser vendors and such06:34
MrPPSArth: for example; sudo socat TCP-LISTEN:555,fork TCP:localhost:8006:35
Arthand that wouldn't actually affect the funcionality of the webserver itself would it?06:36
MrPPSactually, sorry, I did that the wrong way around06:36
MrPPSbut it would essentially take control of that port06:37
MrPPSi.e. anything on port 80 would go to port 55506:37
MrPPSI'm not entirely sure if that's what you're asking06:37
MrPPSbut if you wanted *all* port 80 traffic going to port 555 transparently06:37
MrPPSthat'd do it06:37
Arthleme see if i can clarify my question before i look into socat06:37
MrPPSno worries06:37
ArthSo normally when you go to www.domain.com in your browser, "technically" it goes to www.domain.com:8006:38
MrPPSyep06:38
Arthlet's say i have service X running on port 555, how do i make it so that when i point my domain to www.domain.com, it goes to www.domain.com:555 without me appending :555 to the end06:38
MrPPSis that the only service that would be used?06:38
Arthdon't really understand your question, kind of a long day, excuse me06:39
TakyojiPort 80 is assumed by default, unless specified otherwise06:39
Arthused where?06:39
Arthand yeah I understand it's assumed by default, is there no index workaround or something I can use?06:39
MrPPSArth: I guess what I mean to say is, are you running a web server as well06:40
MrPPSor is the only intended purpose of this server to provide that service on port 555?06:40
ArthI know it seems like a trivial thing to type in :555 at the end but i'd just like to see if its possible06:40
TakyojiIn the way that things are implemented, it's not quite possible.06:40
Arthwell, from my knowlege, wouldn't you need a web server up to even be able to serve a page off a server when connecting from an external client?06:41
Arthyes, the only intended purpose of the server is to provide service on port 55506:41
Takyojibecause your ISP blocks port 80, or?06:41
Arthoh no not at all, this is hosted on a vps06:42
Arthim not hosting it, not a port blocking issue06:42
TakyojiSo you're stuck to what port it's configured to?06:42
MrPPSArth: if the only intended purpose is to serve what's on port 555, and port 555 is a HTTP compatible service (which is sounds like it is), then the command: sudo socat TCP-LISTEN:80,fork TCP:localhost:555 would work fine06:42
Takyojisince you don't have control to configure that?06:42
MrPPSbut you'd need *nothing* else listening on port 8006:43
MrPPSoh, wait, you're not hosting this?06:43
Arthnot necessarily, i can configure it to whatever port I want, but wouldn't setting it to port 80 conflict with apache?06:43
ArthMrPPS: i'd need the apache server listening on port 80 to even serve me up the page right? so i don't think that will work06:44
MrPPSwell, if the application itself (on port 555) is its own web server, you wouldn't need apache at all06:44
MrPPSif it runs on port 555 through apache06:44
MrPPSthen you could just reconfigure apache to server that on port 8006:44
Arthwhat's the command to turn apache off? sudo apache2ctl stop ?06:45
Arthslipping me06:45
Arthi'm gonna test if doing ip:555 with apache turned off will work06:46
TakyojiBecause the thing is, you can have Apache do a reverse-proxy to the service at port 555, I believe06:46
Takyojiservice apache2 stop06:46
Takyojior apache2ctl may work06:46
Arth:o06:48
Arthdoing serverip:555 with apache turned off brings up the page06:49
Arthso that means socat should work06:49
Arthi don't need apache06:49
Arththe sole purpose of the server is the service hosted at port 55506:49
ArthMrPPS: gonna try socat and i'll let you know if it works06:50
MrPPSawesome :)06:51
Arthterminal hangs after sudo socat TCP-LISTEN:80,fork TCP:localhost:55506:52
Arth*starts biting nails*06:53
Arthwell i changed the port to the actual port of the service that was it06:53
MrPPSyeah, it just hangs, sitting there06:54
MrPPSit doesn't display anything :)06:54
MrPPSalso, you may have to change TCP:localhost:555 to TCP:<public_IP>:55506:54
Arthhttp://puu.sh/bt4dC/05ade2f72b.png06:54
Arthyeah by hangs i mean i'd need to do ctrl^C to be able to type in another command06:55
Arthwell looks like ill need to do that and fix the public Ip thing06:55
MrPPSyeah, it doesn't fork into the background06:55
MrPPSyou'd have to run it in screen/tmux06:55
MrPPSArth: if that makes sense?06:56
MrPPSTakyoji: also, had a chat with devs06:58
TakyojiWouldn't iptables be capable of just changing the destination port?06:58
MrPPSturns out06:58
MrPPSinspircd is crappy half the time, when you exceed maximum connections for the network06:58
MrPPSwhich is why I was getting the varied results06:58
Takyojialrighty06:59
MrPPSso thanks anyway :)06:59
MrPPSand yeah, iptables can probably do it, but I've never had to06:59
MrPPSso I've just gotten used to socat for quick stuff06:59
Takyojibecause I just figure in the long term, rather than having to maintain to stay running07:00
MrPPSyeah07:00
MrPPSbetter approach07:00
Takyojimaintain it to stay running*07:00
micwhi07:01
micwi have an ubuntu server that hangs during boot. on console 1 it shows that disks are mounted. on console 7 it shows that some services where starting/stopping07:01
micwbut i cannot get a shell, sshd is not yet started07:01
micwi have no idea how to debug/recover07:01
TakyojiRestart in single-user mode (selected at GRUB)?07:02
micw"recovery mode"?07:02
Takyojiyes07:02
micwit boots to recovery menu07:03
micwwhen i select "resume" it's the same issue07:03
Takyojiand there should be an option to drop to a root shell, and not do a full boot07:03
Takyojiand then pick through any log files in /var/log07:03
micwit did not write logs yet07:04
micwseems that it did not boot so far07:04
Takyojiperhaps this may be of help for troubleshooting: https://wiki.ubuntu.com/DebuggingKernelBoot07:06
micwthere was an error with rpcbind (the only error during boot process) - so i remove it and try again (don't need nfs on the system)07:06
micwthe kernel boots fine07:07
micwinit starts as well07:07
micwevent network is set up (i can ping the machine)07:07
micwevent -> even07:07
=== kickinz1|afk is now known as kickinz1
micwhttp://picpaste.com/Bildschirmfoto-VM_101_-_Mozilla_Firefox-lpm8e57r.png07:09
micwthats what console 7 shows07:09
TakyojiI suppose I don't have any specific ideas07:13
micwsame to me. normaly i get such boot issues quickly fixed07:14
lordievaderGood morning.07:31
=== kickinz1 is now known as kickinz1|afk
=== kickinz1|afk is now known as kickinz1
HackeMatehello07:44
HackeMateif i send an email using smtp with TLS, and the destination server also uses TLS, is the email traveling unencripted?07:44
=== kickinz1 is now known as kickinz1|afk
=== kickinz1|afk is now known as kickinz1
=== kickinz1 is now known as kickinz1|afk
=== kickinz1|afk is now known as kickinz1
Guest22304hi all10:03
Guest22304i boot up  14.04 server livecd10:04
Guest22304cannot get fdisk command to use, why?10:04
lordievaderGuest22304: Should be there, according to the manifest util-linux is installed.10:08
lordievaderGuest22304: Could you pastebin the output of "apt-cache policy util-linux"?10:08
lordievader!paste10:08
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.10:08
Guest22304I have just rebooted the livecd, but this time it is entering rescue mode !10:17
Guest22304under its shell, it did has the fdisk command10:17
lordievaderSince when does the livecd has a rescue mode? Is it not the rescue mode of your physical install?10:18
Guest22304that is true,!10:19
lordievaderGuest22304: Ok, so what seems to be the problem?10:19
Guest22304I am boot the live cd in normal mode10:19
Guest22304fdisk command is not exist10:20
lordievaderGuest22304: What is the problem you are facing and what steps have you taken to fix it?10:21
* lordievader is getting confused10:21
Guest22304I boot the live cd  and is going to install it,10:23
Guest22304I don't like the menu method to create partitions10:24
Guest22304I like command line to do so10:24
lordievader10-12:08 < lordievader> Guest22304: Could you pastebin the output of "apt-cache policy util-linux"?10:24
Guest22304so I need fdisk command to that work there10:24
Guest22304the result is: /bin/sh: apt-cache: not found10:26
lordievaderGuest22304: Well ain't that lovely. Guess the easiest is to just use the menu, or make an live-usb/cd of the full desktop iso.10:27
Guest22304ok, I got it10:28
=== kickinz1 is now known as kickinz1|afk
Kunzem1987Good day people. I posted yesterday about a backup that i have whith 20 files all *.tar.bz2.aa to *.tar.bz2.at and one small *.par2 file which i could not open with windoze using multipar or 7zip. I realised today that i could tar jxfv *.tar.bz2.aa but not the following *.tar.bz2.ab file. I did some searching and found that i needed to cat the files together to make one big tar.bz2 file to extract. I'm sure most10:43
Kunzem1987 of you know this but i'm newbie with Ubuntu server. Just letting know how i got my problem fixed.10:43
=== kickinz1|afk is now known as kickinz1
ciroingirohello everyone. Ubuntu server 12.04 LTS turns off after a time imprecise operation. Sometimes it turns off after 1h. and the other after 4 days.13:11
ikoniaturns off as in shuts down ?13:11
cfhowlettciroingiro, cron jobs?13:13
ciroingiroExcuse me for Enter Key, i have compare the log with normal shut down log and i have notate some partial log file.13:13
ciroingiroi have check crontab directly in /var13:14
ikoniacan you just clarify it actually shutsdown/powers off ?13:15
ciroingiroi have substitute the action shut down to power button pressed with a only log and now i have a partial log that say the power button is pressed and immediately the server turns off.13:19
ciroingiroit turns off as a black out13:19
ikoniaso you're saying the screen goes black until you press the power button ?13:19
eutheriaaha13:21
eutheriaok not the same problem13:21
ciroingiroyes the screen is black, the server is poweroff13:22
ciroingirois off13:22
ikoniaare you sure the server is power off ?13:23
ikoniaas if it's powered off why do you then press the power button to turn it off ?13:23
ciroingiroyes but i don't have idea of power off command13:23
ikoniayou're not powering it off - so why do you care about the power off command13:23
ikoniathe machine as I understand it is going to a black screen - you are then powering it off by pressing the power button13:24
ikoniaor am I wrong ?13:24
eutheriawow grub failed while upgrading from 12.04 to 14.0413:26
ciroingirois a ibm server closed in a rack, a uman can not touch it bu i can operate from remote. When the connection is closed i see the server turned off, not in standby o screen standby.13:26
ikoniaciroingiro: I'm really sorry, I don't understand what you are saying13:26
ikoniaciroingiro: what is your native language ?13:26
ciroingiroexcuse me my language is italian and not speek english very well.13:27
ikoniathats ok13:27
ikoniaciroingiro: if you join me in #ubuntu-it I'm sure someone can help translate13:28
ciroingiroikonia ok i try #ubuntu-it. thank you very much .13:29
ikoniano problem13:29
tewardrbasak: FYI: nginx-naxsi removed before jessie freeze - https://mail.google.com/mail/u/0/#inbox/145a57304822c97714:51
tewardoopsies14:51
tewardrbasak: relevant bug and discussion - see response from Christos - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=74619914:52
uvirtbotDebian bug 746199 in src:nginx "Outdated naxsi version, incorrect learning tools included in packages" [Important,Open]14:52
jamespagezul, hallyn: afternoon chaps15:09
hallyn\o15:09
jamespagehaving a few issues with libvirt in utopic15:09
zuljamespage: its hallyn's fault :)15:10
jamespagehallyn, I've seen a crash - https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/136770315:10
jamespagezul, ^^15:10
hallynimpossible15:10
jamespageand lockups as well - virsh can't get a response and nova is locked out as well15:10
jamespagekinda limits instance management15:10
jamespage....15:10
zulhallyn: looks like cgmanager :)15:10
hallynjamespage: is cgmanager running?15:11
jamespagehallyn, yes15:11
jamespagehallyn, I have one hanging now if that's helpful15:13
jamespagerather than crashing15:13
hallynjamespage: i has a guess that apparmor is preventing libvirt from talking to cgmanager.  does 'cgm apiversion' work?15:13
jamespagehallyn, yes15:13
jamespagehallyn, nothing in the kern.log about DENIED15:14
hallynjamespage: does 'unix' show up in /etc/apparmor.d/usr.sbin.libvirtd ?15:15
* jdstrand notes we don't have an enforcing kernel for 'unix'15:16
hallynyou're on the right version of libvirt,15:16
jdstrand(that will land soon)15:16
jamespagehallyn, it does15:16
hallynhm15:16
hallynjamespage: well the bug report says all your libvirt configs are updated.  please attach those.   ps -ef | grep libvirt, and cat /proc/pid/attr/current and /proc/pid/cgroups for libvirtd15:17
hallynjamespage: so this is happening on >1 hosts?15:21
jamespagehallyn, so I've seen that crash once and the lockup a few times on multiple different hosts15:22
hallynall stock utopic?15:24
hallynnow mind you we shouldn't be crashing when we can't connect to cgmanager15:26
hallynso i'm not handling a DBusError or something somewhere15:26
jamespagehallyn, yes15:30
sturmflut-workAnybody here who runs Ubuntu on ARM64/ARMv8-A hardware? Not just the emulator, a real machine.15:38
TurkerTunali1Hi guys,  I've created a user when installing ubuntu server 14.04 (namely:ubuntu) . I want to ask you that does this user has root privileges? Because I have some strange behaviours. I have a script which installs Postgresql 9.3 along with our ERP and it works greate on AWS but my local machines can't connect Postgresql.15:47
rbasakTurkerTunali1: cloud images allow the ubuntu user to sudo with no password.15:48
CarlFKTurkerTunali1: the user created by the installer has sudo privs15:48
rbasakThe default user on Ubuntu desktop (or traditional server) can also sudo, but only with a password by default.15:48
rbasakSee /etc/sudoers.d/ in the different environments.15:48
TurkerTunali1I am checking, I've edited (sudo visudo) to give my user sudo capabilities without password15:49
CarlFKhmm, prolly better to figure out why you can't connect to Postgresql15:49
TurkerTunali1sudoers.d folder is empty15:51
TurkerTunali1on my local machine15:51
rbasakIndeed.15:51
CarlFKsame here (well, it includes a README)15:52
TurkerTunali1AWS has 90-cloud-init-users file15:52
TurkerTunali1AWS specified ubuntu user as NOPASSWD:ALL15:54
TurkerTunali1I've given this permission with sudo visudo15:54
TurkerTunali1on my local machine, so there must be something else15:54
=== kickinz1 is now known as kickinz1|afk
TurkerTunali1does ubuntu server 14.04 repos and AWS Ubuntu server repos are the same?16:00
TurkerTunali1maybe they are downloading from different postgresql repos16:01
CarlFKTurkerTunali1: how is postgresql server being installed?  (I am guessing a script that installs the whole erp system?)16:04
RoyKI have a wierd memory usage issue here on a vm that's running a java process. it's not ubuntu, but I don't think it's distro specific - ok to ask?16:09
patdk-wkeasy solution16:12
patdk-wkuninstall java :)16:12
CarlFKlol16:12
=== Lcawte|Away is now known as Lcawte
hallynjamespage: on a fresh utopic install, i follow https://wiki.ubuntu.com/SergeHallyn_libvirtnest  and cdboot starts fine, no cgmanager errors.16:13
RoyKpatdk-wk: not my choice - confluence runs on it :P16:16
RoyKAnyone that knows what on earth is using memory here? http://pastebin.centos.org/12351/ (munin graph here http://karlsbakk.net/bilder/memuse.png)16:16
RoyKit's really confusing16:16
patdk-wkroyk, likely your anonhugepages problem16:20
patdk-wksometimes java likes it, and sometimes not16:21
patdk-wkit depends on the java app16:21
RoyKwhat are they?16:21
patdk-wkoracle had a nice writeup on that somewhere16:21
patdk-wktransparent huge pages?16:21
patdk-wkit's converting those 4k memory blocks to 2megs16:21
RoyKI just don't get it - the java app just uses 1GB, as it's told to16:21
patdk-wklikely how the app works, it keeps shuffling things around, and conflicts16:21
patdk-wkya, but if it is getting allocated 2meg pages, but not using all 2megs16:22
patdk-wkcause it keeps randomly freeing parts of it16:22
RoyKAs you can see on the graph, some time back, the VM just had 2GB memory. I gave it another 2GB, and it just grabbed it all16:22
patdk-wkcause of how it's memory allocation works16:22
patdk-wkjemalloc has this problem16:22
RoyK(without it showing up in the ps list etc)16:22
RoyKok16:23
patdk-wktricks to help malloc, cause other issues :)16:23
patdk-wkcan't cross optimize :)16:23
RoyKdo you know any resources about this?16:24
RoyKshould be possible to fix it without giving each java-running vm 64 gigs of RAM :P16:24
patdk-wkhttps://blogs.oracle.com/linux/entry/performance_issues_with_transparent_huge16:26
patdk-wkwell that is talking about performance16:26
patdk-wkman, ran across it like a month ago16:27
Alina-malinawhen i connect with ftp, why i get owner groul as www-data www-data?17:00
RoyKAlina-malina: the question is, why do you use ftp? ;)17:01
RoyK!ftp17:01
ubottuFTP clients: Nautilus (Places -> Connect to server), gFTP, FileZilla (for !GNOME); Konqueror, Kasablanca, KFTPGrabber (for !KDE); FireFTP (for Firefox); ftp, lftp (for !cli) - See also !FTPd17:01
Alina-malinaRoyK, wel it was example17:01
RoyKubottu: also, FTP is an outdated protocol, don't use it! Use sftp instead.17:01
Alina-malinaRoyK, it is sftp17:03
Alina-malinaso what you think?17:03
Alina-malinawhy it shows www-data www-data?17:03
RoyKAlina-malina: it should be the user/group of the connecting user/group17:05
Alina-malinayes is it ok?17:05
RoyKis it www-data connecting and creating files?17:05
Alina-malinayes17:05
Alina-malinaprobably17:05
RoyKthen it's correct17:05
RoyKand there should be no 'probably's to sysadmining ;)17:06
Alina-malinabecause it is website, and from time to time it gives an error  failed to open stream: Permission denied17:06
Alina-malinaso what is wrong with that?17:06
FrEaKmAn_hi all17:13
FrEaKmAn_I have a VPS with root access to ubuntu 12.04. I have defined firewall rules with iptables17:13
FrEaKmAn_for some reason, after few days there are no rules anymore17:13
FrEaKmAn_my question is: when I define iptables rules, do I need to "flush" them to store?17:14
FrEaKmAn_I don't think they reset after restart17:14
RoyK!ufw | FrEaKmAn_17:19
ubottuFrEaKmAn_: Ubuntu, like any other Linux distribution, has built-in firewall capabilities. The firewall is managed using the 'ufw' command - see https://help.ubuntu.com/community/UFW | GUI frontends such as gufw and ufw-kde also exist. | An alternative to ufw is the 'iptables' command - See https://help.ubuntu.com/community/IptablesHowTo17:19
FrEaKmAn_RoyK: thanks17:28
=== xar_ is now known as xar-
=== phuh is now known as phuh_____
=== phuh_____ is now known as phuh
=== cmagina_ is now known as cmagina
=== Lcawte is now known as Lcawte|Away

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