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

=== zz_DenBeiren is now known as DenBeiren
neonixcoderHi team,03:31
neonixcoderI am upgrading from 10.04 to 12.04.. but middle of installation after kernel upgrade, my system is rebooting with out any warning.. And once its boots I am getting kernel panic..03:32
neonixcoderThis is happening on already existing system. I tried on a new machine with same set of hardware and configs. At this time, the upgrade went smoothly.03:34
neonixcoderAny suggestion where should I check so that it will not reboot after kernel upgrade?03:34
sarnoldneonixcoder: were you able to capture any kernel messages?04:42
neonixcoderyes sarnold..04:44
neonixcoderone min, let me write it down here..04:44
sarnoldneonixcoder: can you pastebin them somehwere?04:44
neonixcodersure..04:44
neonixcodermy bad..04:44
neonixcoderwill do that04:44
neonixcoderIts a single line "kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,0)"04:45
neonixcodersarnold: I want to avoid it instead of correct it. Right now I am testing it in  lab.04:46
neonixcoderso in production, upgrade should go smooth04:47
sarnoldneonixcoder: hmm, do you need any 'funny' modules to mount your root filesystem on your hardware?04:47
neonixcodersarnold: I did not get you..04:48
patdk-lapdo you have some kind of raid card, flash thing04:48
patdk-lapusing something other than onboard sata ports04:49
neonixcoderpdtdk-lap:No such cards, but I install it on a small cf card04:57
neonixcoderwhich is 2gb04:57
sarnoldhmm, reminds me of my pandaboard es; after roughly a year it started crashing under heavy io load and then eventually started crashing rouhgly once a day..04:58
sarnoldreplacing the sd card was sufficient to fix it04:59
sarnoldneonixcoder: can you try something like badblocks on the card on a different system?04:59
neonixcodersarnold:the funny part is.. I am able to upgrade on the same machine with same CF card which is a fresh install from 10.04 to 12.0405:07
neonixcodersarnold:So I thought some where there could be a setting my old image where it reboots once kernel is update(I guess)05:07
=== Wiched is now known as Guest55027
sarnoldneonixcoder: none that I can recall :/05:09
neonixcodersarnold:hmm yes.. bit strange.. I will try to check if old image and fresh install have same settings in /etc/apt folder05:10
=== CiPi is now known as cipi
thomedyokay.. sudo apt-get install php5-fpm is not processing the triggeres05:19
thomedyi can man it but i cant finish the apt-get05:20
=== cipi is now known as CiPi
=== ashleyd is now known as ashd
=== broder_ is now known as broder
=== PaulePan1er is now known as PaulePanter
neonixcodersarnold: I just wondering how frequent linux write data to disk?05:38
sarnoldneonixcoder: that's quite complicated :) it'll write immediately when programs issue fsync or fdatasync calls; apt/dpkg do this extensively05:39
neonixcoderimmediately means less then a second?05:40
neonixcoderbcz I just want to check logs which are written when upgrading my OS which is resulting me in kernel panic..05:40
sarnoldyeah; it'l suspend the program execution until the writes have finished05:40
=== CiPi is now known as cipi
sarnoldneonixcoder: the fatrace program can do that05:41
sarnoldfor an upgrade it'll be an amazing amount of output..05:41
neonixcoderlet me check that..05:42
=== cipi is now known as CiPi
murchawhen i run cron to mv files to mounted backup partition i get error: sudo: no tty present and no askpass program specified07:36
sarnoldwhy are you tryiung to use sudo in cron? that won't go..07:37
murchasarnold: thanks, i  tried to mv files to backup partition but it required authentication.07:41
fcefanmurcha: See first fix here https://www.shell-tips.com/2014/09/08/sudo-sorry-you-must-have-a-tty-to-run-sudo/08:23
murchafcefan: thanks08:24
DenBeirenhi all,.. i'm trying to set up an rsync, but the transferspeed is way too slow09:10
DenBeireni'm getting 10MB between 2 dualGB nic machines09:10
DenBeirenconfigged with LAG on the GB switch09:10
DenBeirenthe copy is local, so encryption is not really needed09:11
DenBeirenany ideas?09:11
=== Daviey_ is now known as Daviey
lordievaderGood morning.09:16
DenBeirenhey lordie09:19
lordievaderHey DenBeiren, how are you?09:19
DenBeirengd gd09:19
DenBeirenmaybe you can help out with my "issue" here above?09:19
lordievaderIs that ram -> ram?09:21
DenBeiren?09:27
lordievader!pm | DenBeiren09:29
ubottuDenBeiren: Please ask your questions in the channel so that other people can help you, benefit from your questions and answers, and ensure that you're not getting bad advice.09:29
DenBeireni don't know if everybody is going to benefit from dutch ;-)09:29
lordievaderAsk the question in english.09:30
DenBeireni did :-)09:31
DenBeirenjust before you entered ;-)09:31
lordievaderDenBeiren: Yes, and I asked: Is that ram -> ram?09:31
DenBeirenit's a synonogy share => a temp ubuntu share (to reconfig the syno)09:37
lordievaderWhat I am trying to rule out is external factors like disks.09:38
DenBeirenwhen copying from a windows client to the temp samba i get 66 - 80 MB09:38
DenBeirenthe disks in the syno are brandnew09:39
murchais there any service to restart to effect changes in visudo09:41
lordievaderDenBeiren: Do you have root access or ssh access on the synology?09:43
DenBeirenyes, the rsync is running,.. only it's capping @ 10/11 MB09:43
DenBeirenevy now and again i see it peaking to 24 - 66 - 3009:44
DenBeirenbut stabilizing @ 1009:44
DenBeirencommand used is the following:09:45
lordievaderI'll take that as a yes I have ssh access. Run a dd over ssh towards the synology's /dev/null09:45
DenBeirensudo rsync -avhzP admin@192.168.6.9:/volume1/Data /samba/allaccess/09:45
lordievadermurcha: The sudoers file is read everytime when sudo is run, for as far as I know.09:47
DenBeirenlordievader: just got a call,.. need to go,.. get back to this later,.. TIA09:48
murchalordievader: when i change settings in visudo to allow a user and a script to run w/o sudo from cron, i get the same permission denied error09:49
lordievaderWithout sudo?09:50
lordievaderYou mean you allow it without a password? You still need sudo though.09:50
murchayes when i run a script from cron automatically i get this error: sudo: no tty present and no askpass program specified09:52
lordievaderCould you pastebin your sudoers file?09:52
murchasure09:52
murchalordievader: here is the configuration: http://pastebin.com/0BPJ0xrC09:54
lordievaderIt's about the classi-backup script?09:56
murchalordievader: yes09:58
jertoMurcha, are you trying to invoke sudo in a cron ?09:58
lordievadermurcha: As what user are you invoking the script?09:59
murchajerto: i want to run automatically the script through cron....but i get permission denied error09:59
murchalordievader: office10:00
lordievaderWhy not as root?10:00
lordievaderI suppose that the user office is in the group office?10:00
murchayes10:00
murchalordievader: i tried root user, again i get permisison denied error10:04
lordievaderNow that is interesting. Do you get the same when you run the script as root?10:05
murchalordievader: no not at all, only i get when i try the script from cron. from terminal it is all ok.10:06
lordievaderHmm, would it be environment variables. Could you pastebin the script?10:07
murchalordievader: here is the script a simple mv: http://pastebin.com/ShAdLwhi10:12
lordievaderYou are not specifiying an interpreter?10:15
murchalordievader: oh it is here at the top #!/bin/bash10:17
lordievaderAh, ok. Does it have execute permissions?10:18
murchalordievader: yes 77710:18
lordievaderHmm, odd.10:22
lordievaderDo you have another user in the group office?10:22
murchalordievader: i should check10:24
murchalordievader: yea there is www-data10:25
lordievaderCan that user run the script correctly?10:25
murchano it does not run the script10:30
murchalordievader: ^10:31
lordievaderDoes not run the script, how?10:35
murchai tried to run the script after login www-data user, but i get not found error10:37
lordievaderThe path to the script is correct? Or is mv saying that.10:39
murchalordievader: the path is correct10:40
murchalordievader: i tried to run the script like sudo bash path/to/script it is running fine10:43
murcha^ from www-data user10:43
lordievaderOkay, so that works...10:44
murchalordievader: thanks! finally worked after creating the script under root user.10:56
lordievaderStill odd...10:56
lordievaderBut okay, glad it works :)10:57
murcha:)10:57
_rubenis there a way to have grub operational through both console and serial?12:13
jamespagemfisch, hey - so https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1470120 covers the 2.3.2 update for ovs13:30
ubottuLaunchpad bug 1470120 in openvswitch (Ubuntu Vivid) "[SRU] openvswitch 2.3.2" [Medium,In progress]13:30
jamespagetook me a while to get it into wily due to some changes in behaviour in our testing; just working the SRU cogs now13:30
jamespagemed_, ^^13:31
med_mornign13:35
med_thanks jamespage13:35
jamespagemed_, np - sorry for the lag13:37
=== Luke_ is now known as Luke
Kully3xfhow much ram does tar use14:36
Kully3xfis it more cpu or ram14:36
Kully3xfcan I throttle it's ram usage?14:36
patdk-wkcan't imagine it uses either14:38
patdk-wkunless you enable some kind of compression option14:38
Kully3xftar -zxcf so gunzip14:40
Kully3xf-zcvf14:42
Kully3xffriday14:42
Kully3xfin case anyone was wondering it is very low memory and cpu intesive.14:44
pmatulisuse a monitoring utility to answer your question14:50
pmatulisKully3xf: ↑14:51
Kully3xfI figured it out - am not looking to figure it out on the fly, wanted to know before I ran the command14:51
Kully3xfin case anyone wants to know it's cpu instensive and no ram14:52
dannfrbasak, mdeslaur : fyi, arges is approving the msyql updates now15:08
tewardwith regards to Apache server, when I configure SSL, does the certificate file need to contain the entire chain or just the site's certificate?  And is there a way to serve the CA chain (intermediate cert, root CA cert) without putting it in the main certificate file?15:11
tewardprobably a better question: whatever I put in SSLCertificateFile, does that need the entire CA trust chain if I also provide SSLCertificateChainFile in the configuration for a vhost?15:21
rbasakIIRC it is the entire trust chain.15:28
rbasakI don't know if there's an alternate way to configure it.15:29
rbasakNo idea about SSLCertificateChainFile15:29
rbasakUse "openssl s_client" with -verify and experiment ;)15:29
tewardwell i think http://serverfault.com/questions/382633/difference-between-sslcertificatefile-and-sslcertificatechainfile answered it15:32
tewardthat'll be the first test15:32
=== markthomas is now known as markthomas|away
TJ-teward: This is how I configure domains, using symlinks to virtual-host home directories in order to make switching keys+certs not require any changes to the apache config.  https://iam.tj/projects/misc/apache-ssl-config.txt16:05
tewardTJ-: erm... that's not what i was after, but OK16:40
tewardi needed to know what specifically was in the CertificateFile file16:40
tewardI.E.16:40
tewarddoes it need just the site cert or the entire chain16:40
tewardand i got that answer16:40
tewardin that server there's only one site anyways, so changing the config wouldn't affect others.16:41
TJ-teward: I thought the example specifies that. The SSLCertificateFile contains *just* the site's certificate, any intermediate Certificates are in the SSLCertificateChainFile, and the root CA can be in that file, or in the usual /etc/ssl/certs/16:47
tewardi couldn't glean that from your example, sorry.16:48
teward(I'm tired :/)16:48
TJ-teward:  Hmmm, maybe I'm too familiar with it.  "ssl/certs/iam.tj.pem -> iam.tj.Wosign.solo.2018-06-29.pem"  "solo" is a bare cert with no supporting intermediates16:49
tewardahh, OK.16:49
tewardTJ-: i come from nginx, not apache, and workplace uses apache on some things :/16:49
tewardkinda inherited things on some of these services >.<16:49
TJ-teward: I used to have the 'chain' in the domain's /home/ but that was silly since many domains may use the same CA, so the intermediates are now always in  "/etc/ssl/certs/<CA-name>-chain.pem" which is referenced from the SSLCertificateChainFile16:50
TJ-teward: The remainder of the layout is so I can easily replace certs/keys without making changes to the server config, so it's a non-root operation16:51
=== yofel_ is now known as yofel
=== G_ is now known as G
=== shauno_ is now known as shauno
IamEld3stim installing ubuntu 14.04.2 server distribution but i cant get past the iscsi part i dont understand it i have unallocated disk in system and cant select it?21:55
IamEld3sti found out that i shoud disable raid setting in bios21:55
patdk-lapwhat does raid setting have to do with iscsi?21:58
IamEld3sti dont know i just cant get thour the installation i have one sata drive and while instaling configure iscsi voluems and i cant get past it22:00
IamEld3sti never seen it before22:00
patdk-lapwell, a sata disk isn't iscsi22:00
patdk-lapso going into iscsi isn't going to help22:00
IamEld3sti know22:00
patdk-lapwhat options are on your bios?22:00
patdk-lapfirst one you should pick is AHCI22:00
patdk-lapif there is no option, then select RAID22:00
IamEld3stok it was set to ide22:00
IamEld3stshould i save it and try it?22:01
patdk-lapyou can attempt ide also22:01
patdk-lapbut I wouldn't want to use it, unless you have to22:01
IamEld3stide went to that iscsi thing22:01
IamEld3stok i will try to install it22:01
patdk-laphow?22:02
patdk-lapit can't see your disk22:02
IamEld3styeah but in bios it shows up22:02
patdk-lapso?22:02
patdk-lapset it back to AHCI or RAID22:02
IamEld3stok22:02
patdk-lapand figure out why ubuntu can't see it22:02
patdk-lapsomething is wrong22:02
IamEld3sti booted ubuntu desktop and it sees it...22:03
IamEld3stin live distro22:03
IamEld3stok it went good thanks alot man22:24

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