/srv/irclogs.ubuntu.com/2015/12/01/#ubuntu-server.txt

francis_Hi! Can SMART Extended scan detect bad sectors on hard disk?03:04
=== cpaelzer__ is now known as cpaelzer
lordievaderGood morning.07:55
melbaaHello, i have a question about my virtual ubuntu server that is running on my Windows 10 with hyper-V. Is it possible that the virtual ubuntu reads my Windows 10 storage so i can access it in the virtual machine?08:40
eahmedshendyHi, anyone here10:46
eahmedshendyI have issue related to apparmor, anyone could help?10:46
jjohanseneahmedshendy: what's the issue10:47
eahmedshendyhttp://paste.ubuntu.com/13596640/10:47
eahmedshendyI tried to uninstall mysql 5.5, then install 5.6 and till now I can't install mysql10:47
eahmedshendyjjohansen10:48
jjohanseneahmedshendy: you need to add a rule to the mysql profile10:48
jjohanseneahmedshendy:  look for the file /etc/apparmor.d/usr.sbin.mysqld10:49
jjohansenwell or something close to that10:49
jjohansenyou need to add the rule10:50
jjohansen     /etc/mysql/my.cnf.fallback   r,10:50
jjohansenthe rule will need to go into the mysqld profile10:51
jjohansenit will likely look like10:51
jjohansen/usr/sbin/mysqld {10:51
jjohansen  # some comments10:51
jjohansen  .. rules ..10:51
jjohansen}10:51
jjohansenyou should be able to insert an new line in the block of rules (beginning or end are good choices)10:52
T3DDY/leave10:52
jjohansenand save the file10:52
jjohanseneahmedshendy: then do10:53
jjohansen  sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld10:53
jjohansen(or what ever the file name the profile was in)10:53
=== khildin is now known as robb_nl
eahmedshendyI do not understand this step:10:55
eahmedshendy /usr/sbin/mysqld {10:55
eahmedshendyjjohansen10:55
eahmedshendyI jsut added this: /etc/mysql/my.cnf.fallback   r, to  /etc/apparmor.d/usr.sbin.mysqld10:56
jjohanseneahmedshendy: okay, the profile file has format10:56
eahmedshendywhat do you mean by the profile file?10:56
eahmedshendyjjohansen10:56
jjohansenyes, but you need to add it within the profile rule block10:56
jjohansenthe profile within the file, will start like10:57
jjohansen  /usr/sbin/mysqld {10:57
eahmedshendyOk10:57
jjohansenor10:57
jjohansen  profile mysqld /usr/sbin/mysqld {10:57
eahmedshendy"/usr/sbin/mysqld {" .. I found it in  /etc/apparmor.d/usr.sbin.mysqld10:58
jjohansenyou can insert the rule on almost any new line between the start { and end }10:58
eahmedshendyjjohansen: that is it?10:58
jjohansenthat defines the profiles rules10:58
eahmedshendyyes jjohansen I did that first10:58
jjohansenokay.10:58
jjohansenonce you have that saved use10:59
jjohansen  sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld10:59
jjohansento compile the changed profile and load it into the kernel10:59
jjohansenyou should then be able to try installing mysql again10:59
jjohansenyou could get another denial11:00
eahmedshendydo remove then uninstall or just dpkg-reconfigure -a?11:00
eahmedshendyjjohansen11:00
jjohansenif you want you could put the profile into complain mode, where it will allow all accesses but complain about those not in the profile11:00
jjohanseneahmedshendy: err, I think you should be able to get away with dpkg-reconfigure11:01
jjohansenbut it does depend on how the package has done the apparmor integration11:02
eahmedshendyjjohansen: I did not understand your sentence at all :), I did that apt-get purge --auto-remove mysql-server-5.611:02
eahmedshendyI will install it again11:02
jjohanseneahmedshendy: sorry, what I was trying to say, is it is possible apparmor will deny other things11:02
eahmedshendyjjohansen: mmm, ok11:03
jjohansenone way to deal with this is put the profile in a complain or learning mode11:03
jjohansenthat way the profile won't deny anything, but you will get messages like from your pastebin in your logs, except that they will have11:04
jjohansen  apparmor="ALLOWED" instead of11:04
jjohansen  apparmor="DENIED"11:04
jjohansenyou would then use those messages just as we have done for the denied message11:05
eahmedshendyjjohansen: http://paste.ubuntu.com/13596948/11:05
jjohansencomplain mode is a big help when developing profiles, as you don't have to deal with denial messages one at a time11:05
eahmedshendythe line you told me to add in apparmor is gone, I will add and use dpkg-reconfigure -a rather than purging it11:07
eahmedshendyjjohansen11:07
jjohanseneahmedshendy: hrmmm, you profile hasn't been updated, can you paste bin it?11:07
jjohanseneahmedshendy: got it, dpkg-reconfigure reinstalled the profile, wiping out your change11:08
eahmedshendyjjohansen: http://paste.ubuntu.com/13596977/11:08
eahmedshendyso?11:08
jjohansenhrmmm, actually you did a purge and then a reinstall. correct?11:09
jjohansenin that case it would have deleted the installed profile file11:09
eahmedshendyyes11:09
eahmedshendyI got what you need, just paste it now11:10
eahmedshendyjjohansen: http://paste.ubuntu.com/13597005/11:10
eahmedshendyThat is OK, right?11:10
jjohansenyeah that looks good11:10
eahmedshendyjjohansen: So now I should move and try to fix the other issue of mysql, right?11:13
eahmedshendyapparmor, is clear?11:13
jjohanseneahmedshendy: yep, unless you start hitting new denial messages11:14
eahmedshendyjjohansen: I forgot to told you that, mysql-server-5.6 was working fine yesterday, untill I did restart, mysql goes down again11:15
jjohanseneahmedshendy: did you switch to systemd?11:15
eahmedshendyjjohansen: This server is new for me, I just removed a database called cassandra that was running yesterday11:16
jjohansensystemd handles restart as stop/start, instead of having a dedicated restart action like upstart or sysv init scripts11:16
jjohansenthis has broken more than a few usage patterns, and has become the first question I ask when someone says something stopped working on restart11:17
jjohansenof course it depends what you mean by restart11:18
eahmedshendythere is a file called:  /etc/init/systemd-logind.conf, does that means systemd is installed?11:18
eahmedshendyjjohansen: just execute the command reboot11:18
jjohansenah, well that wouldn't be the problem then11:18
jjohansenI'm not sure why mysqld would fail on a reboot11:19
eahmedshendyjjohansen: How to know that admin that was here made a switch to ssytemd11:20
jjohanseneahmedshendy: unless you are using systemctl restart, I wouldn't chase that path11:20
eahmedshendyNo I don't have this command "systemctl"11:21
eahmedshendyon my current system11:21
jjohanseneahmedshendy: but if you want to know,11:21
jjohansen  ps aux | grep systemd11:21
jjohansenshould return with pid 1 as systemd11:21
eahmedshendyjjohansen: http://paste.ubuntu.com/13597160/11:22
jjohanseneahmedshendy: nah11:23
jjohanseneahmedshendy: actual11:24
jjohansen  pstree11:24
jjohansenmight be easier11:24
jjohansensystemd shows up as the root of the tree11:24
eahmedshendyIt is just init11:24
eahmedshendyjjohansen11:24
jjohansenright11:24
jjohansenyou just have a few cherry-picked "systemd" services11:25
eahmedshendyjjohansen: That is not what you afraid off?11:26
jjohanseneahmedshendy: if it says init you don't have systemd11:27
eahmedshendyjjohansen: yes, so this is fine11:27
jjohansenyep11:27
jjohansenso the systemd change I mentioned before is not the reason mysqld is failing11:28
eahmedshendyjjohansen: sorry for bothering you, and thank you so much for help, God bless you :)11:28
eahmedshendyjjohansen: yes11:28
=== Lcawte|Away is now known as Lcawte
eahmedshendyIs t here anyone can help with mysql-server 5.6 upgrade from 5.5 issue, or even help me to get back to 5.5.11:31
eahmedshendyhttp://paste.ubuntu.com/13597397/11:39
rbasakeahmedshendy: why do you have a PPA enabled?11:57
rbasakYou're getting mismatched versions of the packages which can't help.11:57
eahmedshendyrbasak: I came here and found it like this11:58
eahmedshendyShould I do another thing, I am just beginner in administration11:58
rbasakYou can probably repair it from where you are, but I don't have the time to go through that with you, sorry.12:02
rbasakThis channel is the right place to ask for help though. Maybe somebody else will come along.12:02
eahmedshendyrbasak: no problem sir, I think try and do it, thank you very much for pointing me12:03
eahmedshendy:)12:03
eahmedshendybtw, you mean that I can update the PPA for a package that is suitable for 14.04.312:03
eahmedshendyI have the same issue like this guys http://askubuntu.com/questions/699942/updating-to-mysql-5-6-27-fails-but-why12:09
eahmedshendyexactly12:09
eahmedshendyI think I am stuck with this problem12:10
rbasakIt looks like it is because the archive has been updated ahead of the PPA in a way that makes the PPA break things.12:11
rbasakI don't understand why the PPA exists in the first place.12:11
OerHeksi just went trough http://paste.ubuntu.com/13597397/ and found mysql-server_5.6.25-3+deb.sury.org~trusty+1_all.deb == https://launchpad.net/~ondrej/+archive/ubuntu/mysql-5.6/+sourcepub/5377389/+listing-archive-extra   so you did install a ppa ....12:12
rbasakI trust ~ondrej has a good reason for creating it12:12
rbasakBut perhaps it's not needed now that trusty-updates has 5.6.27?12:12
eahmedshendyOerHeks: this is your procedures? so you faced a problem like me12:13
OerHekseahmedshendy, your issue seemed curious, but it is not, why did you not mention that PPA in the 1st place?12:14
OerHekssuch info is very important.12:14
eahmedshendyOerHeks: I didn't change any PPA at all12:14
eahmedshendyOerHeks: rbasak just told me about it12:15
eahmedshendyI didn't do manaul change12:15
OerHeksno, that was before rbasak named ppa. you have added that ondrej ppa before.12:16
OerHeksppa-purge that repo and try to install again ( not from ppa but the original packages)12:17
eahmedshendyOerHeks: just today while trying to solve the problem with everyone here, I didn't add it before12:19
eahmedshendyOerHeks: what after that .. I just deleted the two files and make apt-get update12:25
rbasakcpaelzer: thank you for your feedback! I updated that paragraph and sent the email.12:27
eahmedshendyBecause I got this error when trying to do it with ppa-purge http://paste.ubuntu.com/13598152/12:27
cpaelzerrbasak, thank you - I'm eager to see what the responses will be like12:27
cpaelzerrbasak: within dpdk do you know if we just dropped the kernel modules without replacement or if we deliver them with the kernel?12:28
eahmedshendyOerHeks: I will try to reset the server repositories to its default12:29
OerHeksremoving those 2 files does not work well, you should use ppa-purge, with the correct name of the ppa.12:30
OerHeks!ppapurge12:31
ubottuTo disable a PPA from your sources and revert your packages back to default Ubuntu packages, install ppa-purge and use the command: « sudo ppa-purge ppa:<repository-name>/<subdirectory> » – For more information, see http://www.webupd8.org/2009/12/remove-ppa-repositories-via-command.html12:31
rbasakcpaelzer: I'm not sure. smb maybe knows? ^^12:32
cpaelzerrbasak: he went offline, will ask him later/tomorrow12:32
eahmedshendyOerHeks: I created them manually12:43
eahmedshendyOerHeks: http://paste.ubuntu.com/13598538/12:54
eahmedshendy?12:54
smbcpaelzer, rbasak, if the question was about the kernel modules. There are two which are usable and shipped with the standard kernel. uio-pci-generic and vfio-pci13:16
cpaelzersmb: the question was about the two .ko's that would be build in the dpdk source igb_uio.ko and rte_kni.ko IIRC13:17
cpaelzersmb: those are disabled for obvious build and packaging issues, but I wondered if those would be required in some way13:18
smbcpaelzer, Ok, yeah. Those should no longer be required (starting with dpdk 2.0) and the kernel ones being used13:18
cpaelzersmb: ok because they are still default on thx13:18
cpaelzersmb: FYI dpdk 2.2 no more builds with your trick to go to the lowest cpu/sse level13:19
smbcpaelzer, That is indeed a bit odd but the recommendation for that also came from upstream sort of13:19
cpaelzersmb: that is good to hear that this recommendation to disable them came from there13:19
cpaelzersmb: I'll have to search for "the new lowest" denominator that would build13:20
smbcpaelzer, hm, the "trick" was to use the machine level option. If that no longer builds ...13:20
cpaelzersmb: yeah I saw you configured thr T=..native, but then set RTE_MACHIEN=default13:20
cpaelzersmb: the rte.vars for default refer to core2 as the march13:20
smbEither they think they fixed online detection13:20
cpaelzersmb: and that is now too low as some code needs newer than that cpu features now13:21
smbRight the T is just to pick one of the template configs they ship13:21
cpaelzerright, but "native" depends on the build environment and is no option13:21
cpaelzerso seems core2 as of dpdk 2.213:22
cpaelzerI'll have to search for the new "low"13:22
cpaelzerlevel that is acceptable13:22
smbYes, so if default which is (or was supposed to be) a supported option no longer works it might be time to report them a bug13:22
cpaelzersmb: I fully agree, but for that I need to find out what would :-)13:22
cpaelzersmb: on the good side with that it fails upstream just as much as in the dpkg build environment13:23
cpaelzersmb: so it will be easy to report the bug13:23
smbcpaelzer, :) yeah. or play innocent and ask them what goes wrong there :)13:23
cpaelzersmb: not now after we wrote on a public channel and then innocent is a decade or more ago :-P13:24
smbcpaelzer, Note that I say "play" ;)13:25
=== Piper-Off is now known as Monthrect
=== kickinz1_ is now known as kickinz1
=== Monthrect is now known as Piper-Off
MelbatjeHello, I need some help with my Ubuntu server, I have a VM running on my Windows 10 PC and would like to share some storage so I access that on my VM. Does anyone have any clue how to do that with Samba and what settings?16:12
=== Piper-Off is now known as Monthrect
Melbatjedoes anyone read this message? xd16:16
lordievaderMelbatje: What hypervisor are you using?16:17
MelbatjeHyper-V16:17
lordievaderHmm, wouldn't be surprised if it hase some kind of a folder share function. However I am not familiar with hyper-v.16:18
Melbatjelordievader: I'm using Hyper-V16:18
Melbatjelordievader: I'm going to check that, thanks :P16:18
=== jgrimm is now known as jgrimm-away
=== jgrimm-away is now known as jgrimm
crvenihi18:48
crveniis server 15.10 have graphical environment?18:49
sarnoldyou can apt-get install whatever you want18:49
crveniI know, but I don't know how install unity18:50
crveniand how to make them startup18:51
sarnoldapt-get install unity ought to get most of the way there18:51
ianorlinI would not recommend it18:51
ianorlinas acessing the ui over the network is not the best18:52
ianorlinif locally I usually like to run an ubuntu-server virtual machine in just a normal desktop18:52
crvenime nead web server local18:53
sarnoldyou don't need a gui for that :)18:53
crveniyes i nead gui, bicose i use this laptop for development18:54
ianorlinactually gvfs is a quite nice way to transfer things like pictures to a web server18:54
crvenii dont know, i love ubuntu :)18:55
crveniand trying to meet them very well18:55
sarnoldcrveni: ah. feel free to install the desktop then and just apt-get install the server packages as you need them :)18:56
sarnoldlaptops are funny creatures, it's way easier to get them to work if you just go with the whole desktop thing up front18:56
crveni@sarnold I do it last week :)18:56
crvenii loveee ubuntu18:57
crveni:)18:57
crveniDo you everbody know where is Serbia?18:59
crveniI from Serbia :)18:59
simosxo/18:59
crveniNovak Djokovic :) :)18:59
crveniWe in serbia wery love ubuntu :)19:00
crveniok, nobody will not talk for me :(19:02
simosxcrveni, I said "hi".19:03
crvenihi simosx19:04
crveni:)19:04
crveniwhich system simosx you have?19:04
simosxI use 'DigitalOcean' for server.19:05
m1dnight_Hello guys. I'm in a bit of pickle with duplicity. I have a server `daytona` which serves as the storage for backups from my other machine `testarossa`. Testarossa uses duplicity and backsup via sftp. On testarossa, as root, I can ssh to daytona with the user `backupper`. I can run the duplicity command in the terminal as well. But hwen I put the duplicity command in a bash script (which runs fine as19:05
m1dnight_well from the commandline) and run it as a cronjob, I keep getting connection refused errors on the sshbackend of duplicity.19:05
m1dnight_Any tips?19:05
crvenisimosx what is thet :)?19:06
crvenithat?19:06
sarnoldm1dnight_: probably your cronjob doesn't use the same ssh agent that your shells use19:06
simosxcrveni, it's a Virtual Private Server (VPS). You get a server on the cloud (you connect with SSH). It is great to learn about servers.19:06
m1dnight_sarnold: how can I fix that, then?19:07
sarnoldm1dnight_: run ssh-add -l to see if you have keys in your agent..19:07
m1dnight_It used to work fine, but when I reinstalled the server it stopped working.19:07
crvenisimosx that is expensive for me :)19:08
m1dnight_Hm, sarnold that gave me that no agent was running, did eval `ssh-agent -s` now and added the private key. ill see what will happen now.19:09
m1dnight_Testing the cronjob again.19:09
simosxcrveni, you are paying as long as the server is active. if you look into it, it's somewhat affordable.19:09
sarnoldm1dnight_: the cronjob runs in an environment started by cron, seperate from your shells.. if the ssh agent is running, you can give the cron jobs access by adding the right environment variables..19:09
m1dnight_`BackendException: ssh connection to backupper@192.168.1.120:22 failed: [Errno 111] Connection refused` still19:10
m1dnight_oh can you point me in the right direction then, please?19:10
sarnoldm1dnight_: oh, you know, connection refused suggests something else is going on.19:10
crveniok simosx19:11
m1dnight_sarnold: yes, but the weird thing is that I can ssh to the machine just fine..19:11
sarnoldm1dnight_: try a cronjob with something like echo "" | nc 192.168.1.120 2219:11
m1dnight_And Im using the exact same user..19:11
crvenican I install the DNS server and they will charge domain19:13
crvenisimosx?19:13
crveni:)19:13
simosxcrveni, when you get a domain, they often give you DNS management for free. If you do not get free DNS management, you can use https://www.namecheap.com/domains/freedns.aspx19:14
simosxcrveni, if you do not have a domain, and you want a free one, you can try out http://www.freenom.com/ (includes free DNS management).19:15
crvenino simosx, you dont understand , how can I sell thousend .com domains?19:16
simosxcrveni, selling .com domains is a job called "Domain Registrar". It's kinda out of the scope in learning about servers.19:17
m1dnight_sarnold: where would I find the output of that? dmesg is empty.19:19
sarnoldcrveni: do you just want to host a few thousand domains as a host? or do you actually want to become a registrar?19:20
crveniok simosx. that job interesting for me :) easy mony19:20
sarnoldm1dnight_: check your mail, cron mails the output to you19:20
m1dnight_aha19:20
m1dnight_SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.319:20
m1dnight_Protocol mismatch.19:20
m1dnight_Shouldn't it negotiate for a proper protocol?19:20
sarnoldm1dnight_: interesting. the echo "" | nc   just sends a blank string to the remot ehost and returns what the remote host's banner was19:22
crveniyes simosx, I do to become registrar19:22
sarnoldm1dnight_: so at least your cronjob can make outgoing connections to that host just fine.19:22
m1dnight_Glad you find it interesting :>19:23
m1dnight_Using it in the shell shows me the same output.19:23
m1dnight_Hmmm19:24
crveniI want to become registrar, and don't know how :)19:25
m1dnight_aha, dist-upgrade installs some updates to libssl so it seems.19:25
m1dnight_Let's see where that brings us19:25
shaunoI'm not sure I'd call it 'easy money'.  domains strike me as a 'race to the bottom' unless you can parcel it in a wider package19:26
nat0Can anyone tell my why preseeding a fresh install of 14.04 fails after searching for dists/trusty-updates/Release, which doesn't even exist on the 14.04 installer DVD?19:27
simosxshauno, also DV certificates are likely to follow the same path.19:27
crvenishauno I thought to do the all via computer19:28
crvenii have to become a hacker :)19:29
crvenii love this job :)19:29
crvenidoes anyone know the web development project for free?19:31
crveniI have a project and need a worker19:32
sarnoldthere are more ideas than there are developers; in general, developers need to be paid19:33
crvenii work for free19:33
crvenimoney arriving later19:34
crveniIt is an advertising site, I hope it will be members19:34
shaunoI think you would have enjoyed the dotbomb era, but you're almost 20 years too late.  I can't think of a nicer way to put that.19:36
crveni:) shauno19:37
sarnoldhehe19:38
crveniI thought to do the site where it will be distributed, advertised IT projects19:38
crvenishere IT job19:38
crvenishare19:38
crvenifreelancing site19:39
sarnoldfivr vworker monster ...19:39
crvenii am big deady19:40
crvenidady19:40
crveni:)19:40
crveninice too meet you everybody19:41
nat0Does anyone know why anna, the package installer in debian-installer, requires Release signatures for an update branch even while attempting a fresh install?19:41
sarnoldhave fun crveni :)19:42
sarnoldnat0: probably to make sure that you're not installing maliciously supplied updates19:42
crvenimy site is http://www.elvescode.com but is serbish language19:42
nat0sarnold: then shouldn't those release signatures be included on the install DVD?19:42
nat0Because they'19:42
nat0re not, preventing me from installing anything.19:42
sarnoldnat0: the Release files are periodically updated, see e.g. http://mirrors.kernel.org/ubuntu/dists/trusty-updates/Release   "Date: Tue, 01 Dec 2015 12:00:33 UTC19:43
nat0I'm pxebooting 14.04.3's DVD1.  It loads the kernel and squashfs image fine.  The preseed file correctly repartitions the drive.  Then it verifies the release signatures, and 404's on dists/trusty-updates/Release.19:44
sarnoldnat0: because the Release files are updated periodically, their signatures can't be burned onto an install media19:44
sarnoldnat0: which mirror?19:44
nat0It's a local mirror I've manually created by essentially rsycing the contents of 14.04.3's DVD1 image onto a local filesystem served over HTTP.19:45
tewardwell there's one of the issues there - the release files are updated periodically and don't exist on the DVD images then19:45
sarnoldnat0: ah; then either also grab the trusty-updates tree off a mirror too, or figure out how to tell the installer that it shouldn't update packages during the install19:45
sarnoldnat0: .. of course you'll want to apply the updates immediately after you're done if you don't update the packages during the install19:46
nat0sarnold: Thanks.  I thought I'd done the latter by setting the pkgsel/update-policy to none.19:47
nat0In the preseed file that is.19:47
crvenihave fun geeks :) i get out19:48
sarnoldhmmm that might be worth a bug report then :)19:48
nat0ugh19:49
nat0I might just remove ubuntu as an option from this provisioning server.19:49
sarnoldare the updates really too difficult to mirror?19:50
tewardnat0: better question, why not run a local repo mirror for that release and put 1TB of space for each, or twice that much if you want to support two different releases19:50
nat0sarnold: clients will not be using this server to update their own packages, so it's unnecessary to include them.19:52
sarnoldnat0: ahh19:53
nat0tweard: again, I don't need to update machines from this server, and using 2TB of space to mirror one release is a bit absurd.19:53
sarnoldI think the archives are something like 900gigs total for all currently supported releases19:53
nat0This server will only be provisioning new clients, on an airgapped network, from a series of local mirrors made directly from distribution release images.19:53
tewardsarnold: eesh, so i'll have to build a 5TB RAID array in my next private-mirror server19:55
tewardmaybe my workplace will let me use their bandwidth to download the files on that server19:55
sarnoldteward: I'm looking at building one myself, and went looking through our NFS mounted archive the other day.. I came to the conclusion that it'd probably be a bit more than one TB once we have a third supported LTS release again, and a bit more than that once the 'newest releases' aren't also LTS releases..19:56
sarnoldteward: so 2tb sounds like a nice plan, if I've checked the right things :)19:57
m1dnight_sarnold: looks like it is fixed with the upgrade..19:59
m1dnight_Knock on wood19:59
sarnoldm1dnight_: woot!19:59
* m1dnight_ knocks on his head19:59
m1dnight_*ha ha*19:59
sarnoldm1dnight_: granted, it doesn't make -sense- to me, but hooray for a fix.19:59
m1dnight_Yep worked fine. Cronjob finished..19:59
sarnoldm1dnight_: crazy.20:00
tewardsarnold: true, but i also need a Debian mirror20:05
tewardbecause i have four debian vms20:05
tewardso that's what, another 1TB maybe?20:05
sarnoldteward: hmm, dunno, I don't know a quick way to measure that20:05
tewardsarnold: indeed.20:06
teward5TB array of disks should be fine though20:06
hackeronanyone has any ideas what could be causign this boot problem with Kernel 4.2? < https://bugs.launchpad.net/ubuntu/+source/linux/+bug/152174920:27
ubottuLaunchpad bug 1521749 in linux (Ubuntu) "NUC NUC5CPYH Does not boot on 4.2.0-19 (Ubuntu 15.10)" [Undecided,New]20:27
sarnoldhackeron: how about /var/log/syslog.0 or similar rotated files?20:29
sarnoldhackeron: how about systemd's journals?20:30
tewardhackeron: also consider there's a request for *more information* in the bug20:32
tewardeither run apport-collect 1521749 or if you actually can't boot as such comment accordingly on the bug and change the status to Confirmed20:32
hackeronsarnold: /var/log/syslog.0 shows yesterday's log - /var/log/syslog shows a successful boot (3.19), then shows a gap where all the failed boots are (4.2.0), then shows the next successful boot20:35
sarnoldhackeron: ouch :(20:36
hackeronsarnold: just checked journalctl - also nothing20:36
TJ-hackeron: try editing the kernel command-line, add "systemd.unit=emergency.target" see if you can get that far20:37
hackeronteward: that wasn't there a second ago, heh - trying20:37
hackeronTJ-: If I select "Ubuntu, with Linux 4.2.0-19-generic (recovery mode)" from the list - it boots into the recovery console, so I am guessing yes20:41
TJ-hackeron: I'd look at the various targets systemd goes through on its way to multiuser.target, and boot to each in turn until you hit the issue20:43
TJ-hackeron: or, do a bisect on the list of targets20:44
TJ-hackeron: it looks like the local-fs-pre us good, so do "grep -rn 'local-fs-pre' /lib/systemd/*" and then try to get to "local-fs.target"20:47
hackeronTJ-: ah, that's a good idea - I will try that20:48
TJ-hackeron: unfortunately systemd doesn't make it too easy (like sysv-init) to figure out the order so you have to dig20:50
hackeronTJ-: is there anyway to get a list of what runs after the emergecy.target in order? - looks a bit of a maze otherwise20:50
hackeronTJ-: ah, ok, that answers that question, heh20:50
TJ-You've got 'targets' which I think of as groups of 'services', and you've got 'wants' which targets/services declare as their dependencies20:51
hackeronTJ-: thank you, will play around in a little bit, just going for a quick job. Hopefully will be able to narrow it down. It seems the next target after the one it reaches is Bluetooth, hmmm20:55
hackeronjog*20:55
TJ-hackeron: I found "systemd-analyze critical-chain" will provide the list you need20:56
tewardhackeron: thoug that apport-collect should be run under the affected kernel20:57
tewardand if you can't boot to that then...20:57
=== SpamapS is now known as TheKettle
=== TheKettle is now known as SpamapS
smackusrevivalhow do i know whether a server has experienced a dos attack?22:32
bekkssmackusrevival: you will notice it by not being able to reach the service.22:38
bekksDoS == Denial of Service.22:38
smackusrevivalwhat if access is super-slow but does eventually respond?23:00
hackeronteward: TJ: Ah, correction, it does not boot into the recovery console either - or rather it seems intermittent -- sometimes it boots, most of the time it does not :( (with kernel 4.2 -- boots fine with 3.19)23:00
smackusrevivalalso, notices a large spike in traffic at one point yesterday which took entire allocated memory of server to maximum during this time.23:01
bekkssmackusrevival: those are symptoms of a DoS.23:05
smackusrevivalbekks: thanks, i think so. problem is, server is still slow, yet everything still intact. i am not too sure what to do next. i have taken server offline until i can resolve.23:09
=== Jikai is now known as Jikan
=== Monthrect is now known as Piper-Off
tewardhackeron: make sure that's noted in the bug23:21
hackeronteward: yeh, I updated the description - I managed to get into the emergency console by adding systemd.unit=emergency.target -- but as soon as I try to do anything, like start apport for example - it freezes :/ - added a screenshot to the bug report too23:23
smackusrevivalbekks: just performed security scan on entire server data. found nothing suspicious.23:27
bekkssmackusrevival: Thats because a DoS attack happens from outside your computer.23:27
smackusrevivalbekks: so why would it still be really slow?23:28
bekksThats what you have to investigate. There are a gazillion of possible reasons, like excessive swap usage, excessive memory usage, etc.23:29
smackusrevivalmemory usage at normal and swap is 0%.23:30
smackusrevivalall resources seem normal.23:31
smackusrevivalthis is either an external network provider issue beyond our control, or an sql issue. i believe the former.23:36
bekksSince you took it offline, it isnt.23:37
smackusrevivalshould a wordpress page load when loading with localhost23:41
smackusrevival?23:41
bekksDepends on your webserver configuration.23:44
smackusrevivalif sql was corrupted, would this be a sign of an attack on the actual sql db?23:45
bekksNot necessarily.23:45
smackusrevivalbekks: what would i be looking for?23:47
bekksLogs, reasons for the sql db being corrupted, things that appear in your webserver logs, things that appear in the system logs, etc.23:48
smackusrevivalok, i know what i will be doing today. reading logs. :-(23:48
quanticsmackusrevival: infosec 101. welcome to my world.23:49
smackusrevivallol, why do we do this job.23:49
tewardsmackusrevival: because if we don't do it nobody will and everything dies23:49
bekksBecause we didnt listen to our parents and didnt get another job :P23:49
tewardsmackusrevival: that said, if this is a place where you can add hardware to the infrastructure, a IDS/IPS would be nice23:50
teward(adding one can help protect sometimes against some DoS vectors)23:50
smackusrevivalyeah increased security hardware is something our company will be looking at. hopefully sooner rather than later...23:51
=== Lcawte is now known as Lcawte|Away
smackusrevivalodd, apache logs show nothing at the time of the alleged attacks.23:59

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