/srv/irclogs.ubuntu.com/2014/01/18/#ubuntu-server.txt

rostamHI I am using 12.04 LTS there is no /etc/apt/apt.conf, ??01:16
jkitchenmake one01:17
jkitchenor use apt.conf.d01:17
sarnoldrostam: feel free to put what you need into one, or a file under /etc/apt/apt.conf.d/01:17
rostamThis is for apt-cacher-ng configuration ..01:18
sarnoldrostam: yikes01:18
rostamsarnold,  why?01:18
sarnoldrostam: https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/123494601:19
uvirtbotLaunchpad bug 1234946 in apt-cacher-ng ""Size mismatch" caused by writing wrong data" [Undecided,Confirmed]01:19
sarnoldrostam: strongly recommend you use squid-deb-proxy instead01:19
sarnold(it's faster, too :)01:19
rostamsarnold,  thank you  so much I will use that then01:19
sarnoldhave fun :)01:20
=== peter is now known as Guest9618
embiopteridsarnold: jeeze I was about to use apt-cacher, cuz I have 3 ubuntu vms and 3 debian vms just right now, and I'm sure I'm not the only one annoyed by the waste of bandwidth.  Thx dude.02:59
sarnoldembiopterid: amen; I've got piles of VMs and schroots for building packages; having a local cache or local archive mirror is the only way I can get things done, so when apt-cacher-ng suddenly stopped working for me, it was -miserable-03:49
sarnoldembiopterid: .. and you can guess how horrible it was to figure out that a cache that had worked fine for three or four releases was suddenly corrupting files.. *sigh* oh well, squid-deb-proxy works better, and though I miss the awesome apt-cacher-ng stats page, squid Just Works. So hooray. :)03:50
=== wickedpuppy2 is now known as wickedpuppy
embiopteridI guess I'll just throw that in another vm so I don't have to reconfigure anything that's working already.  I usually try do do it that way, but I just set this thing up.  Some of this new hardware has some serious issues, what a pain.  I'm still waiting for the kernel dev team to get iommu working along with my stupid marvel sata card and my dual pcie dual-port ethernet card but at least I'm not having spontaneos reboots any05:49
embiopteridmore.  I'f it wasn't mine I'd just scrap it and start over with new hardware but I'm cheap and don't have that kind of money :\05:49
SiliconGHello all -06:10
SiliconGI am trying to build php5.4.2306:11
SiliconGand I am getting a really strange error I dont understand06:11
SiliconGcollect2: ld returned 1 exit status06:11
SiliconGmake: *** [libphp5.la] Error 106:11
SiliconGany of you seen this?06:11
SiliconGhere is the complete error06:12
SiliconGhttp://pastebin.com/jXWgZ1bz06:12
cfhowlett!php06:45
ubottuPHP is an HTML-embedded scripting language. A command-line only version can be installed in Ubuntu with the "php5-cli" package. See also !lamp for integrated server PHP. The Ubuntu server PHP5 guide is found at https://help.ubuntu.com/12.04/serverguide/C/php5.html06:45
misterjinxhello, has this happened to anyone before http://serverfault.com/q/568125/39795 ? I don't know what to do to solve the problem.08:36
TJ-misterjinx: Obviously you need to find out if the "Broken" entries in the upgrade-log are current or historic, and if they are current, to look at a specimen package from that log and see what its installed version is, and what the current Ubuntu archive version is (see packages.ubuntu.com) to identify if that system is behind the times or otherwise confused08:46
misterjinxTJ-: I tried to update some of the packages from there but on each one I get that it is up to date, that it is already the newest version08:47
misterjinxwhat means that the system is confused ? what can I do to "fix" it ?08:48
TJ-OK.... so is that log file a result of the latest "do-release-upgrade" - when it is attempting to go from 12.10 to 13.04 ?08:49
misterjinxyes08:49
TJ-Have you checked you have the latest version of "do-release-upgrade", which is in the package "ubuntu-release-upgrader-core"08:50
misterjinxI checked now, it tells me it is already the newest version08:51
TJ-OK.. so when you run "sudo do-release-upgrade" what does it say it is going to do? because the 2 screenshots you've posted show it trying to fetch package lists for both raring and quantal? if it does that then you've got some out-of-date entries in the APT sources lists08:53
TJ-if do-release-upgrade breaks it can sometimes have replaced the "current" release name with the "target" release name in the sources lists, and you have to manually edit those back to the current release name08:54
misterjinxin the sources.lst there are four entries that specify the release name "quantal"08:55
TJ-OK ... how about in /etc/apt/sources.list.d/*08:56
hXmhi08:58
hXmwhat is the best (or easier configure) imap server?08:58
misterjinxTJ-: to answer your first question, when I run do-release-upgrade it starts with "Checking for a new Ubuntu release; Get:1 Upgrade tool signature; Get2: Upgrade tool; Fetched ...; authenticate 'raring.tar.gz' against 'raring.tar.gz.gpg'; extracting 'raring.tar.gz' and then it switches to a new screen when it starts to fetch repositories and so on08:59
misterjinxTJ-: and inside /etc/apt/sources.list.d/ there are 2 files: izx-ovz-libc-precise.list and izx-ovz-libc-precise.list.distUpgrade09:00
TJ-OK, that looks good then... it doesn't look like it is too confused!09:00
misterjinxinside first file there are two lines: 'deb http://ppa.launchpad.net/izx/ovz-libc/ubuntu precise main # disabled on upgrade to quantal09:01
misterjinxand deb-src http://ppa.launchpad.net/izx/ovz-libc/ubuntu precise main # disabled on upgrade to quantal09:01
misterjinxI think they have to do with OpenVZ09:01
misterjinxand libc6 (I read something about it on the web)09:01
misterjinxto mention that after the first upgrade (from 12.04 to 12.10) these lines were commented09:02
TJ-misterjinx: Check that "izx-ovz-libc-precise.list" make sure any "deb" lines are commented out.... That "ovz" suggests to me that the VPS is a Virtuosso/OpenVZ based system... and I'd hazard a guess your ISP has its own custom Ubuntu repositories, and is somehow interfering with the HTTP fetch to the ubuntu servers, possibly using a transparent proxy09:02
misterjinxTJ-: after I did the first upgrade, indeed, the deb lines were commented out09:02
misterjinxbut I uncommented them thinking that perhas that was the problem09:03
TJ-misterjinx: Well, those references in that file to "precise" are wrong for starters, so they ought to be disabled09:03
misterjinxturned out that even I uncommented them the upgrade still fails09:03
misterjinxok, I will disable them again09:04
misterjinxTJ-: thanks for your time, btw09:05
TJ-That system does have full Internet access doesn't it? If so, rerun do-release-upgrade and capture its output to a pastebin so we can read it09:05
misterjinxwhen I ping google.com, for instance, I receive back responses. I'll try to capture the output, but don't know if I will be able to catch it all since it is kinda long09:07
TJ-Redirect it to a log-file "do-release-upgrade 2>&1 | tee /tmp/dru-01.log"09:11
misterjinxok, in a minute09:11
misterjinxTJ-: I cannot capture the correct output. when I run the do-release-upgrade command it outputs four lines (http://pastebin.com/fQrz5Uad) and then switches to another screen, whos output I cannot capture; to get back to the command line I have to press 'x' when the upgrade finishes (in order to detach the window)09:23
misterjinxand that output is lost :(09:24
TJ-I'll fix yours... if you can fix mine ... 2 runs of md5sum on the same 1TB backup gave different results :O09:24
TJ-Grrrr... OK, we'll have to look at the log-file d-r-u created in /var/log/dist-upgrade/09:25
misterjinxin a minute, I have there a file screnlog.0 that has the output09:26
TJ-misterjinx: OK :)09:27
misterjinxTJ-: here it is, sorry for waiting http://pastebin.com/BR7pB1JA09:36
TJ-misterjinx: "E:Unable to correct problems, you have held broken packages"09:51
TJ-misterjinx: So what does "apt-get -f install" say/do ?09:51
misterjinxTJ-: apt-get -f install doesn't do anything: '0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded'10:01
TJ-misterjinx: how about "apt-get dist-upgrade" ?10:02
misterjinxTJ-: the response is the same10:03
TJ-misterjinx: take a look in /var/log/dist-upgrade/  in case there are more detailed logs available10:10
TJ-misterjinx: it has got itself confused somehow10:10
misterjinxTJ-: now I was thinkinh, could this problem be related to some dhcp6client (or something like that) package ? I remember that during the first upgrade this was the only package that asked me something, the interface to use, and I left the field blank (didn't know the interface). I think it disabled something because of this. could this be causing the upgrade error by any chance ?10:14
TJ-misterjinx: If there were any package issues, apt-get should show them10:17
misterjinxyes, you're right10:17
misterjinxTJ-: well, unfortunately I don't know if there is a solution to my problem. I now see myself forced to reinstall the machine :(. thanks again for your support10:19
TJ-misterjinx: the only time I've seen something like this is when there is a local (network) cache or proxy repository held by the ISP where the packages aren't the versions in the Ubuntu archives.10:19
misterjinxcould be, don't knnw exactly10:20
misterjinx*know10:20
ExoFlamehello10:26
xnccan someone help me a little with ssl on apache210:38
bekksxnc: That depends on your problem.10:39
xnci have installed ssl and trying to make it work on my webpage10:39
bekks"installed ssl" - what exactly does that mean?10:39
xncmade certificate and using ssl on apache210:39
xncon port 44310:40
xncbut its not encrypted10:40
xnci have also configured enabled page in apache2/sites-enabled10:40
xncto use ssl10:40
xncas domain im using ip10:40
xncseems like its running ok but it yet doesnt use ssl its something thats missing10:41
xnc[Sat Jan 18 10:29:22.802313 2014] [ssl:warn] [pid 7011:tid 140247411410816] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)10:41
xnc[Sat Jan 18 10:29:22.918665 2014] [ssl:warn] [pid 7012:tid 140247411410816] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)10:41
xnc[Sat Jan 18 10:29:22.922304 2014] [mpm_event:notice] [pid 7012:tid 140247411410816] AH00489: Apache/2.4.6 (Ubuntu) OpenSSL/1.0.1e configured -- resuming normal operations10:42
xnc[Sat Jan 18 10:29:22.922507 2014] [core:notice] [pid 7012:tid 140247411410816] AH00094: Command line: '/usr/sbin/apache2'10:42
bekks!pastebin10:42
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.10:42
TJ-xnc "BasicConstraints: CA == TRUE !?" ... says you've installed a CA cert, not a server cert10:55
xnchm10:55
xncwhat's the difference?10:55
TJ-xnc: To test a TLS/SSL connection, use "openssl s_client -connect host:port"10:55
xncdid it10:56
xncwhat should i look for10:56
TJ-xnc: you need to do some basic research if you don't know that, for your own safety. CAs are root authorities.10:56
xncbut im trying to learn:P10:57
TJ-xnc: "s_client" will give you details of the connection and the certificate(s) being presented by the server10:57
xncokey10:57
TJ-xnc: see http://httpd.apache.org/docs/2.2/ssl/ssl_intro.html10:58
xncseems like it a well informed page10:59
xncbut i cant just read all the time10:59
xncbut thanks man10:59
xncfor the help10:59
Diegonathello guys... I have a problem with my email server. I hope you can help me. Whenever I try to send an email trough my email server to a gmail account I receive this error message: The IP you're using to send mail is not11:04
Diegonat    authorized to 550-5.7.1 send email directly to our servers.     <-- However, I think that my dns config is fine. What can I do to fix it?? Can you help me?11:04
TJ-Diegonat: check with Google, it is their server refusing the connection11:08
DiegonatTJ i dont know how11:11
=== fire is now known as ffio
=== freeflying is now known as freeflying_away
LongCatTHI upgraded kernel from 3.8.0-31-generic to 3.11.0-14-generic, then some modules are missing13:53
LongCatTHfrom this https://gist.github.com/anonymous/b3932f7a9939c911b23d to this https://gist.github.com/anonymous/2507fe12abc12fa4eb9813:55
LongCatTHIm tried to enable them using modprobe but it's say can't find those modules13:56
James_EppIn my server I SSH'd as root. (I have earlier done a 'sudo passwd') After this I edited crontab and appended the line “0 2 * * * exec ‘/root/updates.sh’”. The contents of updates.sh are found here (http://pastebin.com/fjLdcLqy). However, after a week I SSH'd back into the box and it said there were required updates. I performed them by doing exec /root/updates.sh and it worked perfectly. Why isn't my schedule working?15:45
ShapeshifterHi. Is there really no ssh client available on the ubuntu server install medium? I went to TTY2, looking around, but there's really not much there to do diagnostics etc.16:09
hitsujiTMOshadeslayer: the livecd would be better for diagnostics16:19
hitsujiTMOShapeshifter: ^16:19
shadeslayeror just check the manifest16:20
MeistarinI need to install vnc on my ubuntu server, I really cant get it to work somehow, is vnc even compilable with ubuntu server ?16:40
=== bitnumus is now known as Guest29255
TJ-shadeslayer: openssh-server is an option at install-time, otherwise you have to install it later yourself16:54
TJ-Meistarin: vnc is for X-windows ... if the server isn't running an X server you would use an ssh client16:55
ShapeshifterhitsujiTMO: thanks. honestly I find it odd that the install medium doesn't ship with basic diagnostic tools and does not offer to install them ad-hoc.17:20
aegisHi all, any ideas on how I can get a local machine to be able to send mail via another local machine running postfix (with an outside connection to my ISP smtp server)?18:19
TJ-aegis: using postfix you can configure it for that, one forwarding all mail to the other18:39
aegisTJ-: So, as a quick fix, I just got the localhost to use 'sendmail' and it seems to be working fine now...18:41
=== aarcane_ is now known as aarcane
joshuhi when I try to run sudo apt-get update on 8.04 I get a lot of 404 not found. I haven't made any manual changes to the source.list. Any reason for this?18:41
TJ-joshu: is 8.04 still suported?18:41
joshuTJ- no idea...this is an old mail server running zimbra18:42
TJ-The packages will have been removed from archive.ubuntu.com18:42
joshuTJ- OH shit..18:42
TJ-joshu: you'll need to change the /etc/apt/sources.list to point instead to "old-releases.ubuntu.com"18:42
joshuTJ- so 8.04 no longer gets security updates?18:43
TJ-joshu: https://wiki.ubuntu.com/LTS18:43
joshuTJ- thanks18:44
ExoFlamehello im geting this error anybody know why?18:44
ExoFlameln -s /usr/lib/openssh/sftp-server /home/lighting/yourwebsite/18:45
ExoFlameln: target `/home/lighting/yourwebsite/' is not a directory: No such file or directory18:45
andolExoFlame: What on earth are you trying to accomplish?19:06
Patrickdklooks like break his server security19:10
Patrickdkand probably attempting to do chroot19:10
mmpresti_hello19:13
mmpresti_ls19:13
mmpresti_cd19:13
mmpresti_119:14
=== fire is now known as ffio
miseria"charlando con un arbol pregunte: porque tenia el cerebro enterrado? responde: la mision es proteger la tierra" bienvenidos: http://castroruben.com *temo_a_un_ser_sin_rival*19:56
g0tchaheya guys, can someone help me out setting up a weekly backup for my ubuntu server by any chance?22:39
bekks!backup | g0tcha22:40
ubottug0tcha: There are many ways to back your system up. Here's a few: https://help.ubuntu.com/community/BackupYourSystem , https://help.ubuntu.com/community/DuplicityBackupHowto , https://wiki.ubuntu.com/HomeUserBackup , https://help.ubuntu.com/community/MondoMindi - See also !sbackup and !cloning22:40
g0tchathanks bekks.. what do you suggest?22:40
bekksg0tcha: I suggest reading the links given.22:41
g0tchabekks, ok.. do all of these methods support backing up the machine while its running?22:41
bekksg0tcha: No, thats why it is required to read them.22:41
g0tchabekks, if none of them supports backing up a system while its running, whats the point of reading them?22:42
g0tchaim asking out of curiousity, not to be mean or anything22:42
RoyKbackup is for cowards - real men know their data never dies :D22:42
bekksI did not say "none are supporting online backups", I said "no, not every solution supports it".22:43
g0tchaRoyK, strange world youre living in22:43
g0tchabekks, can you at least specify which one?22:43
RoyKg0tcha: ever heard the word "irony"? ;)22:43
bekksg0tcha: Well, I dont know your backup requirements and constraints, so you have to choose the solution that fits best.22:44
ddsssUbuntu 12.04 lts server. Fdisk says 4TB, I mount it  from fstab -> but then df -h says 2TB ???  mistery. any help?22:45
g0tchabekks, thanks for the links, but i really dont need to read each one of them if 90% i do not need22:45
bekksg0tcha: It's your choice then.22:45
RoyKddsss: what sort of fs?22:45
g0tchaops, i had my window scrolled up22:45
g0tchaignore what i wrote22:45
ddsssRoyK, here's the commands output: http://paste.ubuntu.com/6776851/22:45
ddsssRoyK, ext422:45
g0tchabekks, whati need is simply to backup the whole system and not just the home directory of the user22:46
hitsujiTMOddsss: ubuntu 32bit by anychance?22:46
bekksg0tcha: Then read the links.22:46
g0tchalol22:46
RoyKddsss: some partition tables don't support >2TB22:46
RoyKddsss: better don't use partitions22:46
g0tchawhy dont you just point the one that fits me the most since you already know them all?22:46
bekksddsss: MBR partitions tables do not support partitions > 2TB. Use GPT.22:47
ddssshitsujiTMO,   stan@linsrv:~$ uname -a22:47
ddsssLinux linsrv 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux22:47
=== yctn is now known as ws2k3
bekksg0tcha: Because I am not the one who will read the links given for you.22:47
g0tchabekks, why dont you just point the one that fits me the most since you already know them all?22:47
RoyKddsss: just don't use partitions with LVM22:47
g0tchabekks, ah ok, i guess i assumed you knew about each method in those links22:47
RoyKddsss: just use the whole drive22:47
g0tchaanyone else that might shine more details for a noob?22:47
bekksg0tcha: Why dont you start reading the links?22:48
hitsujiTMOddsss: pastebin the output of: sudo gdisk -l /dev/sdX22:48
ddsssbekks, so the poblem is in MBR partition type. Can I also jsut use the whole drive as RoyK  says?22:48
bekksddsss: Sure.22:48
g0tchabekks, i already read 2 of those links before coming here to ask and they seemed complicated22:49
g0tchai rather focus my reading on a method that i know would work for me and learn that22:49
bekksg0tcha: There is no "easy" full backup.22:49
g0tchabekks, uh, trust me, from the search ive been doing, i know that for a fact22:49
g0tchathat there is no easy way of doing it22:49
ddssshitsujiTMO, http://paste.ubuntu.com/6776882/22:49
bekksg0tcha: Then start reading, as a fact. Start to get into the issue of "a full backup" instead of searching for a copy&paste method.22:50
TJ-g0tcha: for whole-system online you need snapshots... so maybe LVM-based system ?22:50
RoyKddsss: if the plan is to use a 4TB drive with LVM, just create a new PV on that drive22:50
hitsujiTMOddsss: there's your problem, mbr partition instead of gpt22:50
ddssshitsujiTMO, daaamn.   do u know by any chance if there is a way to change it in-place?22:51
g0tchaTJ-, this is for the server i have here at home and not for a remote system though22:51
g0tchabekki, i didnt ask for a copy/paste way of doing it22:51
bekksg0tcha: Anyways, you have been given the starting points for further research.22:51
hitsujiTMOddsss: http://askubuntu.com/questions/84501/how-can-i-change-convert-a-ubuntu-mbr-drive-to-a-gpt-and-make-ubuntu-boot-from22:52
ddsssRoyK, i only use lvm on OS drive there. (there are 4 hdds in the system, others 3 are just mounted)22:52
RoyKddsss: I use lvm for all sorts22:52
RoyKthat is, lvm for the root and var and so on22:52
RoyKand lvm on top of the md raid22:53
g0tchabekks, one last question then, in your opinion, to run a full backup of a running system, what would you do? just generally speaking, not a 1.2.3 steps22:54
bekksg0tcha: I'd create a full backup with my tool of choice, based on my particular requirements, constraints knowledge.22:55
g0tchabekks, i have to ask, what is your tool of choice?22:55
bekks"based on my particular requirements, constraints and knowledge".22:56
g0tchaheheh to be honest, i dont understand why youre being so cryptic about this22:57
hitsujiTMO!wfm | g0tcha this would be why23:01
ubottug0tcha this would be why: Common Sense: Just because you can, does not mean you should (and especially recommend to others). Think before you do. "Works for me" does not mean it is ok. The latest version of everything is not always useful if you aim for stability. Please see http://geekosophical.net/random/worksforme/23:01
androidbrucehey guys i'm going an install and i'm wondering if it is hung or working23:01
androidbrucegot a good signature from Ubuntu Archive23:01
androidbrucenow it says ini: starting pid 390. tty '/dev/tty2' " -/bin/sh'23:02
androidbrucestrike that it's moving along23:04
g0tchathanks for all the help23:16

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