/srv/irclogs.ubuntu.com/2015/04/17/#ubuntu-server.txt

andre_plthis live disk doesn't have smartctl, how can I get the serial number of a drive? I'm not sure which one I just wiped :)00:10
sarnoldtry lshw?00:11
andre_plthere we go, thanks :)00:12
andre_plso, I booted my machine back into its original os (the same hardware that just had a working array) and on startup I get: mdadm: superblock on /dev/sdd doesn't match others - assembly aborted.  then a bit further down [....] Cleaning up temporary files...00:19
andre_plbut it seems hung there00:19
andre_plit eventually booted but theres no sign of the array here... :\00:31
andre_plnothing in /proc/mdstat or mdadm --detail00:31
ebonicshaving an issue with dovecot.. it's not sending AUTH LOGIN. if anyone can check if my configs are wrong thatd be great: https://dpaste.de/aqcb00:37
sarnoldebonics: is there anything inthe logs?00:40
ebonicssarnold, not in mail.log or mail.err, but i have a feeling it's just configured wrong00:42
sarnoldebonics: does dovecot have its own log file?00:42
ebonicssarnold, afaik it just logs to those two00:43
zerowaitstateebonics: it often does. rsyslogd has a config file that routes some syslog traffic to different files00:43
andre_planyone have any thoughts as to why the live CD auto assembled my array, but an older debian install won't due to the non-matching superblock?00:43
andre_plor how I can safely correct it?00:44
ebonicshmm ok ill investigate zerowaitstate thanks00:44
ebonicsok sarnold zerowaitstate it's just using method=PLAIN00:46
ebonicsis there some reason why it would default to that?00:47
zerowaitstateas opposed to what?00:48
ebonicsauth_mechanisms = plain login00:48
ebonicsisn't login a method?00:48
zerowaitstatewhat type of login mechanism do you want?00:49
ebonicsi thought that "LOGIN" was a mechanism, which explains the AUTH LOGIN smtp packet header00:49
ebonicsi had it working before but i guess i broke something00:49
zerowaitstateare we talking about SMTP or dovecot?00:51
ebonicsdovecot00:51
zerowaitstateSMTP is Postfix, not dovecot00:51
ebonicsso when i telnet to port 587 what protocol is that ?00:51
zerowaitstateESMTP00:52
ebonicswhich is dovecot right?00:52
zerowaitstatewhich is being handled by Postfix, as shown in your dpaste00:52
ebonicsoh..00:52
ebonicsi thought that it just meant that dovecot was delegating to postfix00:52
ebonicsshouldn't it be going through dovecat?00:53
zerowaitstatethere is some interaction yes, because dovecot needs to know where postfix is storing messages for that domain00:53
zerowaitstatepostfix handles SMTP, dovecot handles POP3/IMAP00:53
zerowaitstateI realize it's confusing00:53
ebonicslike for a mail client i have it configured to port 587 and under imap00:54
ebonicsand yet when i telnet to port 587 it's using ESMTP00:54
ebonicsso i don't really understand00:54
zerowaitstateSMTP is what your mail client is using to SEND MAIL. IMAP is what your client is using to CHECK MAIL.00:54
ebonicsoh wow my mail client is using port 143.. what the00:54
zerowaitstatethey are two totally different protocols. for historical reasons, mostly, they are handled by two different software packages00:55
ebonicsokay i understand now zerowaitstate thanks00:55
ebonicsso really postfix is my problem zerowaitstate?00:56
zerowaitstateare you having problems sending mail, or checking mail?00:56
ebonicsi'm hitting spambox in my tests when i send mail. so i tried telnetting and realised it wasnt sending the AUTH LOGIN packet so i assume that has to do with it00:57
zerowaitstatehitting spambox...i don't follow00:57
ebonicsmy mail is being sent to spam00:57
ebonicsbecause of some auth or validation related reason00:58
ebonicsie. it wasn't hitting spam earlier and it was using AUTH LOGIN00:58
zerowaitstatemail you are sending is being sent to the spam folder when someone else receives it?00:58
ebonicswhen i receive it00:58
ebonicsyes00:58
ebonicsmy server -> my gmail account00:58
zerowaitstateah, so you are testing by sending to yourself?00:58
ebonicsgmail spamboxes it00:58
ebonicsyes00:59
zerowaitstateokay. unfortunately, the answer is "it's complicated"00:59
zerowaitstateebonics: your smtp server is functioning, however, Google does not fully trust it00:59
zerowaitstateebonics: there are a number of reasons that can happen.00:59
zerowaitstateebonics: lack of DKIM / SPF records for the domain can be one reason01:00
zerowaitstateebonics: the lack of SSL support server-to-server can be another01:00
ebonicszerowaitstate, shouldn't it be using SSL01:01
ebonicsi implemented a cert01:01
zerowaitstateebonics: also, if you are sending from an IP block that is a previous known abuser, it may be blacklisted01:01
ebonicsand zerowaitstate thanks for the info, however i wasn't hitting spambox earlier and i noticed in my telnet adventures that it was sending AUTH LOGIN, while now it's not01:02
ebonicsso i feel like that's likely the problem at hand at this moment01:02
ebonicszerowaitstate, are you saying the AUTH LOGIN is handled by postfix?01:03
zerowaitstateebonics: AUTH LOGIN is what the client sends, not the server01:03
ebonicszerowaitstate, how :| i swear it was sending AUTH LOGIN earlier..01:03
=== markthomas is now known as markthomas|away
zerowaitstateebonics: and yes, SMTP is handled by postfix, so the config you're interesting in is there01:04
zerowaitstateebonics: ah, yeah, you definitely have a postfix problem01:04
zerowaitstateebonics: it looks like you are operating an open SMTP without authentication01:04
ebonicslol01:04
ebonics:|01:04
zerowaitstateebonics: however there is a little caveat. It may be that postfix is set up to support pop-before-smtp which allows you to use smtp from an ip address without authentication if you used pop/imap from that same address recently01:07
ebonicszerowaitstate, i haven't enabled pop3 as far as i know01:08
ebonicszerowaitstate, shall i post my postfix conf?01:08
zerowaitstateyeah, but the same is true for imap I believe01:08
ebonicszerowaitstate, https://dpaste.de/yObJ01:09
zerowaitstateI actually have to go in a sec. However, I would recommend you check smtp from a different IP address that has not checked mail via POP/IMAP to that server recently.01:09
ebonicszerowaitstate, okay, thanks for the help.01:09
zerowaitstateebonics: based on my prior experience with dovecot, my guess is you checked mail from your computer, then ran your smtp test and it didn't attempt to authenticate you due to dovecot telling postfix via SASL that you were already legit.01:10
zerowaitstateebonics: the reason imap-before-smtp is used is so people putting in their email stuff on their phones, etc, don't have to enter a username/password twice for both imap and smtp01:11
ebonicszerowaitstate, that's possible. i'm using thunderbird so it will be using my ip01:11
zerowaitstateebonics: i think it's poor security personally01:12
zerowaitstateebonics: but it's a very popular default configuration01:12
ebonicszerowaitstate, it seems good for large scale systems for performance01:12
zerowaitstatehttp://en.wikipedia.org/wiki/POP_before_SMTP01:12
zerowaitstatehttp://wiki2.dovecot.org/HowTo/PopBSMTPAndDovecot01:13
ebonicszerowaitstate, do you know how i can flush the session or whatever it is so i can do proper testing01:13
zerowaitstateno idea, but it's probably in the dovecot docs01:13
zerowaitstatesince dovecot is handling the user database01:13
zerowaitstateebonics: performance has nothing to do with it. there is very little performance hit in checking a password, especially compared to doing things like TLS01:14
ebonicszerowaitstate, there could be if the database isn't threadsafe01:15
zerowaitstateebonics: also, NAT screws up POP before SMTP01:15
zerowaitstateebonics: username/password databases are key value stores. it's very easy to make a key-value store threadsafe01:15
zerowaitstateebonics: anyway, I got to eat. take it easy01:15
ebonicsseeya zerowaitstate thanks for the help01:16
andre_plpatdk-lap: as I suspected, mdadm says the 2TB is too small to replace the 3, so i'm going commando01:37
cyclob|workhi guys, trying to set up munin cgi using this guide: http://munin-monitoring.org/wiki/MuninConfigurationMasterCGI but all i get is 403 forbidden :S any help on what to do01:37
patdk-laphmm01:37
andre_plis it basically fail & remove /dev/sdX1, then add /dev/sdX01:37
andre_plno format in between?01:38
patdk-lapyou can01:38
andre_plfrom your reply i gather there is a better way?01:39
patdk-lapnot really01:39
patdk-laphave two options01:39
patdk-lapget a larger disk to rotate with01:39
patdk-lapor make your raid array with your 2tb, and copy it all over01:39
patdk-lapand copy it all back01:39
patdk-lapwould be the only 100% safe way01:40
andre_pli'll take my chances with the swaps01:40
patdk-lapdoing a drop and add is ok01:40
patdk-lapbut there can be risk during the time01:40
andre_plby doing that as I said above, it will use the full disk instead of a partition, and I'll get the full 3tb each once it's all done?01:40
patdk-lapit will see the full 3tb01:41
patdk-lapbut it won't use it till you tell it to grow01:41
patdk-lapand it won't grow till your done01:41
andre_plok I just saw something frightening01:42
andre_plresync claims to be WAY faster than last time, and if I'm reading it right, mdadm says there's only 2tb of data instead of 5ish01:43
andre_plUsed Dev Size: is that per disk? or total occupied space?01:44
patdk-lapper disk I think01:44
andre_plI guess I can mount it and see if anything is missing?01:44
andre_plit seem wierd that a ton of data would just disappear like that01:44
andre_plbut i'm also worried about how the previous OS wouldn't reassemble the array01:44
patdk-lapya, per disk01:45
andre_plphew01:45
patdk-lapArray size is total01:45
andre_plthe resync is gonna take 350 mins.. last time it was 120001:46
andre_pli dont think these disks are that much faster01:46
patdk-lapnewer faster disks01:46
andre_plpossible I guess...01:47
andre_plscary.. I should have looked closer at the files to make sure they were all there01:47
=== zz_DenBeiren is now known as DenBeiren
=== NiTeMaRe is now known as NiTe
=== NiTe is now known as NiTeMare
=== NiTeMare is now known as NiTeMaRe
=== sl0wz is now known as slowz
=== slowz is now known as Guest63161
=== slowz_ is now known as slowz
ruben23hi guys05:20
ruben23i have an existing ubuntu server with apps - when i do  apt-get update does it effect the other apps installed or update them also..?05:20
ruben23any idea guys05:20
sarnoldruben23: how did you install those other apps?05:21
ruben23i worry my server might get broken when i run  - apt-get update05:21
ruben23they are install by package, some are by source05:21
sarnoldwhen you built packages by source, did you install them into /opt/ or /usr/local or did you install them into /usr?05:22
ruben23/usr/local some are /usr/src05:22
sarnoldokay, those should be left alone, packages should leave /usr/local alone, some packages od install into /usr/src but that's mostly kernel headers, I think...05:23
sarnoldnow, the packages, how did you install those packages? did you download .deb files and use dpkg -i on them? or did you add new repositories to your /etc/apt/sources* files?05:24
=== Lcawte|Away is now known as Lcawte
=== Lcawte is now known as Lcawte|Away
=== cipi is now known as CiPi
arcskyi did chmod -R 700 /home/user and now all files are green08:55
lordievaderGood morning.08:55
jrwrenarcsky: dont' do that. :)09:08
ebonicsanyone know if its common for GNU mailman with default settings to be hitting gmail spambox on postfix (DKIM + SPF enabled) setup? i don't hit spambox when just sending through postfix09:08
arcskyjrwren: how should i make it then? if i dont want other users to list my home dir?09:31
=== Lcawte|Away is now known as Lcawte
=== 20WAA3BE8 is now known as misty_g3ar
=== misty_g3ar is now known as g3ar
=== g3ar is now known as misty_gear
=== misty_gear is now known as gear
=== misty_g3ar is now known as g3ar
jrwrenarcsky: without the -R09:53
jrwrenarcsky: -R means recurse. It sets mode on all files and dirs in that dir recursiverly09:54
arcskyjrwren: danke10:04
arcskyjrwren: how can i switch back fist to default mode?10:06
jrwrenarcsky: you cannot.10:12
spyridonasHello guys i tried to setup postfix/dovecot with virtual emails but i recieve the following error "status=bounced (cannot update mailbox /home/admin//var/vmail for user admin unable to create lock file /home/username//var/vmail.lock: No such file or directory)"11:06
spyridonasThe mailbox path is wrong but i can't find it to change it , where is it located?11:06
spyridonasAny ideas?11:16
=== Lcawte is now known as Lcawte|Away
spyridonas Hello guys i tried to setup postfix/dovecot with virtual emails but i recieve the following error "status=bounced (cannot update mailbox /home/admin//var/vmail for user admin unable to create lock file /home/username//var/vmail.lock: No such file or directory)"11:34
spyridonasThe mailbox path is wrong but i can't find it to change it , where is it located?11:34
strikovspyridonas: http://www.postfix.org/postconf.5.html#home_mailbox11:49
strikov'Optional pathname of a mailbox file relative to a local(8) user's home directory.'11:49
spyridonasOh , how i see the user home directory?11:50
spyridonasstrikov : cat /etc/passwd says  vmail:x:2000:2000:Virtual Mailboxes,,,:/var/vmail:/usr/sbin/nologin12:00
spyridonasstrikov: can i modify it so its /var/vmail?12:03
strikovspyridonas: it depends on what you want to achieve; 'If set, mail_spool_directory specifies an absolute path where mail gets delivered. Alternatively, if set, home_mailbox specifies a mailbox relative to the user's home directory where mail gets delivered.'12:05
strikovspyridonas: you seems to have home_mailbox=/var/vmail which is probably wrong12:08
spyridonasstrikov: thanks this seems to fix it but no i don't recieve the email at all, and no errors to be found12:08
strikovspyridonas: what did you do exactly?12:08
spyridonasstrikov: the logs says everything is ok12:09
spyridonasstrikov: i commented out the home_mailbox and set  mail_spool_directory to be /var/vmail12:09
strikovspyridonas: i think you receive mail w/o any issues now but it gets placed to some unexpected folder12:09
strikovspyridonas: it should be placed into /var/vmail then12:09
spyridonasstrikov: but i have virtual mailboxes that defined like that mail_location = maildir:/var/vmail/%d/%n/Maildir:INDEX=/var/vmail/%d/%n/Maildir/indexes12:10
spyridonasstrikov: but that's inside dovecot12:11
spyridonasstrikov: i also have "virtual_mailbox_base = /var/vmail"12:12
spyridonasstrikov: on postfix12:12
strikovspyridonas: i'm not an expert but i assume that you have two options12:12
strikovspyridonas: you either store mail for user X inside /home/X/<something>12:12
strikovspyridonas: or you store all the mail inside /var/vmail/ and do sorting there12:13
strikovspyridonas: which way you want?12:13
strikovIf you want 1st way (which is simpler) you do home_mailbox = Maildir/12:13
spyridonasstrikov: the 1st because virtual emails are stored like so "/var/vmail/domain/user/"12:13
strikovand then (when you receive mail) mutt -f ~/Maildir12:14
strikovthis dir should exist i think12:14
spyridonasstrikov: that means i have to delete everything postfixadmin created and redo the whole virtual mail boxes setup....12:15
strikovspyridonas: you want 2nd way then (I think) not 1st12:15
spyridonasstrikov: the problem is that the directories are variables12:16
spyridonasstrikov: i don't want all emails to /var/vmail , i want the email from admin@example.com to be on /var/example/admin/ and the email from admin@example2.com to be on /var/example2/admin.12:17
strikovspyridonas: try to comment out both mail_spool_directory and home_mailbox12:18
strikovspyridonas: it seems to me that you have a working config but this home_mailbox thing simply broke everything12:19
spyridonasstrikov: hmm... still nothing12:20
strikovspyridonas: define 'nothing'12:21
spyridonasstrikov: i wonder why virtual_mailbox_base doesn't simple override everything12:21
strikovspyridonas: check /var/vmail/*12:21
strikovspyridonas: i assume that you should get mail to /var/vmail/%d/%n/Maildir as you defined in the config12:21
spyridonasstrikov: /var/vmail has nothing delivered to it and the domain folders i cant understard if something was just added12:21
spyridonasstrikov: the Maildir has .Archive, .Drafts etc...12:22
spyridonasstrikov: but nothing delivered to it12:22
strikovspyridonas: Maildir is used only when home_mailbox is set12:23
strikovspyridonas: you either use it or not12:23
strikovspyridonas: we came to conclusion that you don't want to have it12:23
spyridonasstrikov: ok i dont want it then12:24
spyridonasstrikov: sure12:24
strikovspyridonas: so, you don't have home_mailbox in the config?12:24
strikovspyridonas: you don't forget to restart the thing, right?12:24
spyridonasstrikov: i do have it commented out because its relative the user12:25
spyridonasstrikov: home_mailbox12:25
spyridonasstrikov: relative to user means /home/vmail but i have it on /var/vmail. Should i just delete the Maildir part of "mail_location = maildir:/var/vmail/%d/%n/Maildir:INDEX=/var/vmail/%d/%n/Maildir/indexes"12:27
spyridonasstrikov: but then indexes doesn't exist...12:27
spyridonasstrikov: should i simply copy the folder to /home/vmail instead ?12:29
strikovspyridonas: /var/vmail/%d/%n/Maildir means that mail will be stored at /var/vmail/<domain>/<user>/Maildir12:30
strikovspyridonas: you either want this or not12:30
strikovinfo@example.com will be store at /var/vmail/example.com/info/Maildir12:30
spyridonasstrikov: i don't mind if i copy it to the parrent folder, the problem is the parrent folder doesn't have indexes folder which its used latter12:31
strikovspyridonas: i don't understand you problem12:31
spyridonasstrikov: "mail_location = maildir:/var/vmail/%d/%n/Maildir:INDEX=/var/vmail/%d/%n/Maildir/indexes"12:31
spyridonasstrikov: says on dovecot12:31
spyridonasstrikov: i can simple made it "mail_location = maildir:/var/vmail/%d/%n"12:32
spyridonasstrikov: but i wont have the indexes part12:32
strikovspyridonas: for what reason?12:32
spyridonasstrikov: because i dont want to user Maildir12:32
strikovspyridonas: you want to 'convert' existing mail database into a new hierarchy of folders?12:33
spyridonasstrikov: no i don't care the existing mail database is empty12:33
strikovspyridonas: i don't know if Maildir name is required or not by some other components12:34
strikovspyridonas: i'd stick with a regular way and don't invent the wheel12:34
spyridonasstrikov: i will delete i then12:34
spyridonasstrikov: if that doesn't work i will re-do it12:35
spyridonasstrikov: it doesn't work.. i will re-do it again, thanks for helping me out12:39
strikovspyridonas: yw12:39
spyridonasHello guys is there any way to track a directory when new files are created?13:42
dasjoeinotify?13:46
purplehoraceHi looking for some help on a strange problem with ubuntu server and apache213:47
purplehoraceI have the system set up and there is an index.html being served in /var/www/13:48
Slingspyridonas: yeah, inotify could be used for this, you can let it 'monitor' a specific location13:48
Slinguse the google power to find out how exactly13:48
purplehoraceI have tried to remove the index.html to try and use an index.php but no matter what I do it always returns the content of the index.php even if I move it out of the way ???13:49
Slingpurplehorace: most likely due to browser caching13:49
spyridonasSling: Thanks, i can't recieve emails but i can't understand where the files end up.13:49
Slingpurplehorace: or do you mean it returns the contents of index.html instead of index.php ?13:49
tewardpurplehorace: purge your browser cache and retry13:49
purplehoraceThe browser is rendering the index.html and the server isn't serving the index.php even though its there.  I thought it should use the php if the html isn't there13:54
dasjoepurplehorace: check /etc/apache2/sites-enabled/ for enabled sites and their docroot13:55
purplehoraceOK I'll have a check of settings, thanks13:56
Slingpurplehorace: make sure DirectoryIndex lists index.php before index.html13:59
Slingbut still, if index.html doesn't exist and your browser still 'gets' the index.html contents, its definitely caching13:59
Error404NotFoundHow do I know which screen session i am connected to from within a screen session, assuming have multiple screen sessions running and I am connected to others too from same machine.14:07
SlingError404NotFound: screen -list will show the PID's14:15
Slingso from within one of the screens do echo $PPID14:15
Slingand that should correspond to one of them14:15
Error404NotFoundhmmm, let me try14:15
Slingassuming your shell is a child process of the screen process14:15
Error404NotFoundSling: awesome14:17
Error404NotFoundthanks14:17
spyridonasHey guys how can i change postfix default email save location?14:20
Slingspyridonas: postfix is usually not the daemon 'saving' email14:21
Slingits an MTA14:21
spyridonasif i change home_mailbox = it only appends whatever i type to /home/username/whatever/i/typed/14:21
Slingah14:22
Slingspyridonas: the most flexible would be letting postfix deliver it to procmail14:22
Slingand then each user can have its own procmail rules14:22
spyridonasSling: i have already setup dovecot/postfix, currently it doesn't work because emails end up on wrong directories14:23
spyridonasSling: i have them setup with virtual domains and emails14:23
Slingspyridonas: so what does your main.cf look like?14:24
Slingyou would normally have something like "virtual_transport = lmtp:unix:private/dovecot-lmtp" for a postfix+dovecot stack14:24
Slingand then have lmpt listed in the 'protocols' section in dovecot.conf14:25
spyridonasSling: like this http://pastebin.com/mFjyh5uG14:25
spyridonasSling: i dont have what you said14:27
SlingI see that14:27
Slingis this a new setup you're building or/14:28
spyridonasSling: it's new i dont care if i loose emails, i followed this guide http://serion.co.nz/howto/howto-setup-mailserver-using-postfix-mysql-dovecot-postfixadmin-amavis-new14:28
spyridonasSling: i need postfixadmin14:28
Slingwhy?14:28
spyridonasSling: map files are exactly the same with this guide14:30
spyridonasSling: i need to have multiple hosts with accounts end up in the same server14:30
Slingwhat I use is mysql for storing the domains/maps/aliases14:31
Slinglike, virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf14:31
Slingwhich then contains something like http://paste2.org/I1BUI5O414:31
Slingthen you can use SQL to manage your postfix stuff, or phpmyadmin, etc14:32
Slingbut maybe this is a topic for #postfix :)14:32
spyridonasSling: well i only need to change the directory , everything else works14:33
spyridonasSling: i can send emails , all emails have ssl, dmarc,dkim, and a bunch of stuff14:33
Slingdovecot should be storing your incoming mails14:33
Slingnot postfix14:33
spyridonasSling: i can't recieve them because that config doens't work... :S14:34
Sling..14:34
=== Lcawte|Away is now known as Lcawte
=== markthomas|away is now known as markthomas
=== utlemming is now known as utlemming_kitche
tashanyone know if you can configure unattended upgrades to notify only, but not actually upgrade?16:25
tashi can't seem to find it in docs16:26
rbasaktash: maybe --dry-run?16:29
rbasaktash: you might have to modify /etc/cron.daily/apt though16:30
rbasaktash: also note that you can run /usr/lib/update-manager/apt-check from a script16:30
rbasak(I'm not sure that's "official" API though)16:31
=== martins-afk is now known as martinst
ebonicsis it normal for mailman to be getting spam filtered by gmail with default settings (im using postfix with DKIM and SFP setup)? note: i dont get the same results with just postfix alone.16:48
=== martinst is now known as martins-afk
=== ruben_ is now known as Guest34824
=== martins-afk is now known as martinst
=== martinst is now known as martins-afk
lhoraceHello19:17
lhoraceI have a KVM with 238MB.... Webmin fits nicely but when it runs apt-show-versions... OOM get's excuted19:17
lhoraceI am just curious, apt-show-versions needs a lot memory to run? I assume it loading stuff into MEM?19:18
=== lhorace is now known as Negor
=== Negor is now known as lhorace
ebonicslhorace, https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-0419:21
lhoraceebonics: I know how... The KVM came with template but since you mention that19:22
lhoraceI am going to see if I can add swap19:22
lordievaderlhorace: Is apache running on the same box?19:29
lhoraceNope, just mail box19:30
lhoracejust Postfix, webmin19:30
lhoracesshd19:31
lhoraceThere extra process that I am not using and I am going to kill19:31
lhoracedbus,init, and kernel pids19:32
lhoraceI don't recall how to resize EXT4 so I am looking up that information19:33
lordievaderresize2fs19:33
lordievaderAnyhow 238Mb is really tiny...19:33
lhoraceThe assigned size is... 9.9GB total with 1.1Gb in use19:33
lordievaderAssigned size of what?19:34
lhoraceFor the plan that I have19:34
lordievaderWhat?19:34
lhoraceIt's 238MB with 9,9GB19:34
lhoraceI am renting a KVM from a hoster and they assigned me 238MB with 9.9GB19:34
bekksCan you pastebin "free -m" please?19:35
lhoraceI am also renting another KVM, which is 512MB, a bit bigger but I am using for something else19:36
lhoraceThey are Cloud Service19:37
lhoracehttp://pastie.org/1009876419:37
lhoraceBoth have Ubuntu 14.0419:37
bekks!webmin19:38
ubottuwebmin is no longer supported in Debian and Ubuntu. It is not compatible with the way that Ubuntu packages handle configuration files, and is likely to cause unexpected issues with your system.19:38
lhoracebekks: I don't have issues with Webmin on Ubuntu19:38
bekksFor a small mailserver, the 154M free would be ok. For nothing else.19:38
bekksWell, it isnt supported anymore on Ubuntu.19:39
lhoraceOkay, thanks19:39
lhoraceUmm, where you get 154M?19:39
lhoraceYou adding the cache and free?19:39
lhoraceBTW, This box relays mail to another box19:39
bekksYes. Because thats the RAM available to applications.19:39
bekkshttp://www.linuxatemyram.com/19:40
lhoraceThat does the actual deveilvery19:40
lhoracebekks: Thanks, I read up Linux memory management actually19:40
lhoraceIf I sound dumb, not trying to be19:41
lhoraceI think swap of size 300MB should be good enough19:44
lhoraceI can't resize2fs, it's online19:48
lhorace"resize2fs: On-line shrinking not supported", I am going to have to ask the admins to do it for me19:50
lordievaderWhat kind of filesystem is it?19:55
lhoraceExt4, I am going to look into a swap file19:56
lordievaderAh, shrinking... live extending is supported. Read that wrong...19:58
lhoraceyeah19:58
lhoraceI was going to make room for a swap partition since that's most recommended19:59
lhoraceswapfile is the most easiest fixed and the admins are not in the mood19:59
lhoracebekks: lordievader http://pastie.org/1009882420:06
bekksAnd?20:07
lhoraceThanks for the suggestion, that really helped me a lot, wasn't sure how to solve the problem... I was thinking of disabling Webmin from running apt-show-version... When it runs, it jumps, then processes based on score start to be killed20:07
lhoracebekks: Just show you I resolve the problem20:07
lhoracebekks: Better?20:07
bekksSo you added a swap file then?20:09
lhoraceyup20:09
bekksDid you change swappiness too, as well as changing the default behaviour of the OOM killer?20:10
lhoraceUh, I was thinking about swappiness but as for OOM killer behavior.. I still have more to read20:10
lhoraceI think, with 60, that should be good enough, I am not sure I really want to go for agressive swappiness20:11
lhoraceKVM is on SSD20:11
bekksWell, you actually dontwant to swap at all, if it can be avoided. So set vm.swappiness=5 or 10 in /etc/sysctl.conf20:11
lhoraceHmmm, good point20:12
lhoraceI will see20:13
bekksAnd set vm.oom_kill_allocating_task=1 too20:13
lhoraceWhat does that do?20:13
bekksWhen you are running out of memory, the OOM killer starts to randomly kill processes until the situation is resolved. You actually never want that. You want the process which causes the situation to be killed.20:14
lhoracebekks: Okay, my observation, apt-show-versions get's killed20:15
lhoraceThen, I have tmux20:15
lhoraceSo, I don't see ramdoniess, thus far20:15
lhoracewebmin which is the parent, get's killed but the time span20:16
lhoraceThe parent of 'apt-show-versions'20:16
bekksSo if tmux causes the OOM situation, and webmin gets killed, thats random death.20:16
lhoracelol20:16
lhoraceOkay20:17
lhoraceI so a lot of tmux inovked OOM20:17
lhoraces/so/saw/20:17
lhoraceFor now, my critical serices keep running20:17
lhoraceservices*20:18
lhoracebekks: Actually, the template, so swapiness to 020:19
lhoraces/so/set/ I don't have great spelling skills20:19
bekksSo if tmux is causing the OOM, set vm.oom_kill_allocating_task=1 to make sure tmux gets killed then.20:20
lhoraceokay, set20:20
=== SJrX is now known as SJr
=== NomadJim_ is now known as NomadJim
=== Lcawte is now known as Lcawte|Away
PeinigerI’m logged in to a server that is rejecting all new connections. In /var/log/auth.log I’m seeing the following message:  Connection closed by myipaddress [preauth]22:45
PeinigerI’ve restarted ssh and verified authorized_keys hasnt been changed.22:46
lhoracePeiniger: not enough information22:51
lhoraceSSHD might be closing the connection just becaust22:51
PeinigerWhat other info would you like?22:51
lhoraceYou can put SSHD in DEBUG mode22:52
PeinigerCan I put it in debug mode without losing my current connection?22:53
lhoracePeiniger: openSSH spawns SSH clients22:54
lhoraceso, you can restart SSHD witout affecting your current session22:54
pmatulisPeiniger: pastebin what you get with the client in verbose mode (ssh -v).  could be a number of things.  like permissions of .ssh directory or key files22:54
Peinigerno problem. 1 minute please22:54
pmatulismore v's are possible but one is usually good (ssh -vvv)22:55
Peinigerhttp://pastebin.com/YXbp1ZGC22:56
pmatulisPeiniger: so could be a few things.  but i would first check auth.log on the server.  pastebin the last few lines22:57
lhoraceUmm pmatulis you explain or can I?22:57
lhoraceUhhh22:57
pmatulislhorace: go ahead22:57
lhoraceWell, the authentication mentods is publickey22:57
lhoraceThat's why it faied22:58
lhoraceoops, failed*22:58
lhoraceThere is not other method to try22:58
pmatulislhorace: ?22:59
lhoraceWell, with my SSHD, I might keep it to just publickey22:59
lhoraceBut if you lose it, you need to find another way23:00
pmatulisPeiniger: anyway, provide auth.log.  otherwise, this error can occur if you're connecting to the wrong user account or the public key is not installed in the remote ubuntu user's home directory23:00
Peinigerpmatulis: the only sshd error im getting in /var/log/auth.log is Connection closed by myipaddress [preauth]23:00
lhoraceWhat SSHD tells me now is enough to know what is the problem23:01
lhoraceSome of you need to read the openSSH docs23:01
lhoraceIt's clear as day in the pastebin23:01
lhoracedebug1: identity file /Users/someuser/Documents/someorg/ssh-keys/someorg-east.pem type -1 ?23:02
lhoracethat might be the problem23:03
Peinigerlhorace: can you elaborate?23:04
sarnoldlhorace: but the command line asked for -i ~/Documents/someorg/ssh-keys/someorg-server1.pem and it appears it was tried.. debug1: Trying private key: /Users/someuser/Documents/someorg/ssh-keys/someorg-server1.pem23:04
lhoraceI keep my private key safe23:05
lhoraceOn, I have Arch Linux, Ubuntu, etc severs... I usally disable the password or any other mechnasim of auth on SSH23:07
sarnoldPeiniger: are you confident the public portion of /Users/someuser/Documents/someorg/ssh-keys/someorg-server1.pem  is in the authorized_keys of the user account on the remote server you're tryingt ouse?23:07
PeinigerI will double check23:07
lhoraceExcept for publickey23:07
lhoracesarnold: All the AUTH methods failed23:09
Peinigerthe output of my .pem file is a private key.23:09
Peinigerwhat do you mean the public section?23:09
lhoraceI didn't know that you keep private keys in PEM format23:10
sarnoldPeiniger: most ssh clients store the privkey ina file named e.g. id_rsa and the public portion in afile named id_rsa.pub23:10
lhoraceMust be a new SSH feature23:10
sarnoldlhorace: I think the .pem format was a feature of the ancient commercial ssh23:10
bekksThe .pem file contains a SSL certificate, which is not a SSH key.23:10
bekksIsnt it?23:11
Peiniger“The private key file is automatically downloaded by your browser. The base file name is the name you specified as the name of your key pair, and the file name extension is .pem. Save the private key file in a safe place.”23:11
sarnoldPeiniger: _browser_?23:11
Peinigerfrom the amazon docs23:11
lhoraceAs long of SSH that I have, I never seen SSH encode it in PEM format23:11
sarnoldlhorace: be thankful :)23:11
Peinigersarnold: i would ignore the browser piece23:12
Peinigermust download instructions23:12
sarnoldlhorace: the old commercial ssh was verybadterrible23:12
lhoraceI want to help Peiniger23:12
PeinigerIts for Amazon EC2 key pairs23:12
lhoracemake sure he solved his issue23:12
sarnoldlhorace: .. but this sounds like some funky amazonery rather than the old commercial ssh23:12
lhoracesarnold: Don't care about the backround23:13
Peinigerhttp://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html23:13
pmatulisPeiniger: i can connect to Amazon instances with such a .pem key23:13
pmatulisPeiniger: the problem is probably you didn't choose the proper key when you created your instance23:13
lhoraceIt might end with .pem23:13
Peinigerpmatulis: the instance has been around for a while now23:14
lhoracethe contents is different23:14
Peinigerssh suddenly stopped working23:14
Peinigeri just happened to be logged in to it23:14
pmatulisinteresting, "suddenly stopped working"23:14
pmatulisPeiniger: you have console access right?23:15
lhoraceSSH will spawn a process23:15
Peinigeryes…i should have said stopped receiving new connections23:15
lhoraceIt stop working doesn't mean the deamon stopped23:15
lhoraceI said, before, but SSHD in debug mode23:16
Peinigerlhorace: can i put it in debug mode without disconnecting my current session?23:16
lhoracePeiniger: It could be your SHELL that disconnect you23:17
Peinigerothers are experiencing this problem too23:17
lhoracePeiniger: If you currently logged and ROOT authority .. yes23:17
lhoraceSSHD spawns new process for clients under their priviledge23:18
lhoracePeiniger: When you say others, I need to know what Ubuntu Version?23:19
Peinigerlhorace: server is 14.04.123:20
lhoraceOkay, I have 4 14.04.123:21
lhoraceand Arch Linux.. etc23:21
lhoraceYou asked me a few times if making changes will destro your current session23:22
lhoraceSSHD spawns Processes23:23
lhoraceIt means depends on how the program is program that one process shouldn't effect another23:24
Peinigerim with you. thanks for the explination23:26
lhoraceI wanted to make sure everthing was goign alright with you Peiniger23:29
lhoraceI just finish reading up on SSH and PEM23:32
PeinigerI need to get a port opened to run in debug mode23:32
lhoraceThat debug1: identity file /Users/someuser/Documents/someorg/ssh-keys/someorg-east.pem type -123:32
lhoracethat was your problem23:32
lhoraceI took at my key, it's in PEM format23:33
lhoraceIt's not*23:33
Peinigerwhat is the problem?23:34
lhoracePEM and SSH key are both base64 but when you decode it.. it means something else23:35
sarnoldI really don't think that's it; the command line asked for a specific (different) key, and that other key was tested later23:36
sarnoldhere's a successful login to my isp with half-dozen of those "type -1" lines: http://paste.ubuntu.com/10841461/23:37
sarnoldI think you're better off putting that sshd into debug mode and hoping for more verbose messages that way23:37
lhoraceRIGHT23:38
PeinigerIll give that a shot once I can open another port23:38
Peinigerthanks for your help23:38
sarnoldunforuntately I don't see much in the way of debugging messages when I search for "Connection reset by", they all show up on len==0 results from socket reads, e.g. http://sources.debian.net/src/openssh/1:6.7p1-3/packet.c/?hl=1137#L113723:41
sarnoldso debug mode may not help much, but it's worth trying23:42
pmatulisPeiniger: i asked before, did you confirm the public key is installed in the remote ubuntu user's home directory?  even though it "suddenly stopped working", it is good to check23:50
Peinigeryes i did23:51
sarnoldPeiniger: check ls -ld output for ~ ~/.ssh ~/.ssh/authorized_keys on the remote server; if owners, groups, or permissions are the least bit wrong, sshd will refuse to use it; I'd expect it to log something about it on the server, but the client often has no visibility about why the public key didn't work23:54

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