Camelia, the Perl 6 bug

IRC log for #metacpan, 2013-07-26

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:31 shmuel joined #metacpan
01:25 ether_ joined #metacpan
03:31 preflex_ joined #metacpan
04:59 ether joined #metacpan
05:23 metacpan joined #metacpan
05:23 metacpan [cpan-api01] rwstauner pushed 1 new commit to master: http://git.io/m3eXrw
05:23 metacpan cpan-api/master 5c16692 Randy Stauner: Use quotes to preserve decimal point on MIME-Version...
05:23 metacpan left #metacpan
05:23 dipsy [ Use quotes to preserve decimal point on MIME-Version · 5c16692 · CPAN-API/cpan-api · GitHub ]
06:28 Mike-PerlRecruiter_ joined #metacpan
08:07 daxim joined #metacpan
10:34 bowtie_ joined #metacpan
14:02 oalders rwstauner++
15:19 talexb joined #metacpan
15:20 talexb oalders, Just installed metacpan-developer .. it chugged away for a while, then gave me 'err: Could not retrieve catalog from remote server: Connection refused - connect(2)' after starting puppet master.
15:23 talexb Here's what it looked like: http://pastebin.com/aWaqRYEr
15:23 dipsy [ First time install of metacpan-developer - Pastebin.com ]
15:25 oalders talexb: i've seen something similar when my hostname wasn't set up properly, but it's weird that you're seeing this on the VM
15:25 oalders it should "just work"
15:25 oalders ranguard:^^^
15:25 talexb Um, OK, I do not have puppet installed ..
15:26 talexb and I see that the provision script calls /etc/puppet/run.sh ..
15:26 talexb Oh, duh. That's in the VM. Never mind.
15:26 oalders yep :)
15:27 talexb OK, let me tinker around and see what I can come up with.
15:27 oalders can you just try "vagrant up" for a second time?
15:27 oalders you'll have to "vagrant halt" first
15:27 talexb It says that the VM is already running.
15:28 talexb Oops. :/ Should learn to type more slowly.
15:30 talexb OK, different error this time: 'err: Could not retrieve catalog from remote server: Server hostname 'puppet' did not match server certificate; expected debian'
15:42 oalders yeah, so it's an issue with the hostname
15:43 oalders i see the issue
15:43 oalders your paste says "Assuming node debian"
15:43 oalders it should say "Assuming node mcwheezy"
15:45 oalders are you on the latest master for metacpan-developer?
15:47 oalders talexb: you could also "vagrant ssh" and then "sudo /etc/puppet/run.sh mchweezy"
15:48 talexb oalders, :) I'm on the right track .. just looking at /etc/puppet/run.sh right now.
15:48 talexb Let me try your suggestion.
15:49 talexb :( Same error .. ' Server hostname 'puppet' did not match server certificate; expected debian'
15:51 rwstauner talexb: are you on the latest master?
15:52 talexb rwstauner, I just cloned it about 90 minutes ago ..
15:52 rwstauner sounds like it might be an issue with the ssl dir
15:52 rwstauner ok
15:52 rwstauner i just destroyed mine and am waiting for the import
15:53 talexb git pull confirms it's up to date.
15:53 rwstauner ok
15:53 talexb Cool .. thanks for jumping in to help.
15:53 rwstauner sure
15:53 rwstauner it's the responsible thing to do, as i may have been the one that broke it ;-)
15:53 talexb LOL
15:53 rwstauner i recently changed the way that was mounted, i think
15:54 talexb There's nothing like a fresh, bare-metal install to shake out a few bugs. :)
15:54 rwstauner indeed
15:54 rwstauner hmm... Creating a new SSL key for debian
15:54 rwstauner but your puppet doesn't run, right?
15:55 talexb Hmm .. that's not what I saw .. it created a new SSL key for mcwheezy ..
15:55 rwstauner are you up to date with the puppet repo?
15:55 talexb Puppet started, gave me four info lines, finishing with Caching certificate for mcwheezy, then produced the error.
15:56 rwstauner yeah, strange
15:56 rwstauner mine works right away
15:56 talexb Uh-oh .. the other repos may not be up to date.
15:59 talexb Sorry. I owe you a beer.
15:59 talexb Sigh.
16:00 talexb Hmm .. same error.
16:01 talexb rwstauner, Thanks for your help .. I'm going to triple check my setup and do some digging on my own.
16:01 talexb I'll be back.
16:01 rwstauner ok
16:02 oalders rwstauner: i do still get an error from "Do the mount-tmp-dir-on-top trick for metacpan's var"
16:02 oalders but it runs for me
16:03 rwstauner you get an error?
16:03 oalders rwstauner: well, a warning at least https://gist.github.com/oa​lders/eb53b464bb869cbe7038
16:03 dipsy [ gist:eb53b464bb869cbe7038 ]
16:03 rwstauner i did that to fix the error i was getting
16:04 oalders :)
16:04 rwstauner are you up to date?
16:04 rwstauner am i?
16:05 rwstauner which base box are you using?
16:05 oalders i'm up to date. have you pushed everything?
16:06 rwstauner looks like it
16:06 rwstauner what vagrant/virtualbox do you have?
16:06 rwstauner b/c my output doesn't look like that eithre
16:06 rwstauner oh, are you on a mac?
16:06 oalders http://vmbox.metacpan.org/m​cwheezy_vm_base_001_32.box
16:06 oalders i'm on a mac
16:07 oalders VirtualBox 4.2.12
16:07 oalders Vagrant 1.2.3
16:07 oalders er 1.2.2
16:07 rwstauner must be a mac thing then (why our output looks a little different)
16:07 oalders right
16:08 rwstauner i commented on your gist with what i see
16:09 oalders so why is yours assuming node debian?
16:09 rwstauner idk
16:10 rwstauner probably this in my /etc/hosts: 127.0.1.1       debian
16:10 rwstauner or 'debian' in /etc/hostname
16:11 oalders on the guest?
16:11 rwstauner yeah
16:12 rwstauner OH
16:12 rwstauner no, nm
16:12 rwstauner i was noticing that 2 commits ago you updated the box url
16:12 rwstauner but i think i checked out after that
16:13 oalders so you're on an older box?
16:13 rwstauner no
16:13 rwstauner my timestamps are much newer than that commit
16:13 oalders did you edit /etc/hosts by hand?
16:14 oalders 127.0.1.1mcwheezy.metacpan.orgmcwheezy
16:14 rwstauner nope
16:14 rwstauner i just did destroy and re-up
16:14 oalders weird
16:14 rwstauner hmm
16:14 rwstauner are you sure you're using the box that's on that url and not the one you were test-building?
16:14 oalders i'm beginning to wonder
16:15 oalders i thought i had actually used the box from the url
16:15 oalders i can destroy and try again
16:15 rwstauner that won't do it
16:15 rwstauner if you've done 'vagrant box add' with your test box you'll get that again
16:15 rwstauner unless you've made mods to it
16:15 rwstauner in which case a destroy might help
16:16 rwstauner though in that case you'd lose your changes ;-)
16:16 rwstauner fwiw, talexb's output matches mine, not yours
16:17 rwstauner though even if your basebox is different, i don't see why you'd be getting that error
16:18 oalders what's the best way for me to start fresh?
16:18 rwstauner vagrant destroy; vagrant up
16:18 rwstauner you'll lose anything in that vm, but hopefully you don't have anything unsaved in there
16:19 oalders i've got backups (i think)
16:19 rwstauner ok
16:19 rwstauner here's an idea
16:20 mike joined #metacpan
16:20 rwstauner i put my md5's in a comment on that gist
16:20 rwstauner compare those to yours
16:21 rwstauner and that should tell you if we're using the same box
16:21 rwstauner or at least it should tell if we would be if you do a destroy
16:25 oalders i just added mine below yours
16:25 oalders this is after destroy
16:25 klapperl joined #metacpan
16:27 rwstauner destroy doesn't affect those files
16:27 oalders so we really aren't working with the same files?
16:27 rwstauner looks that way
16:28 rwstauner i'm guessing you vagrant added one you were testing with
16:28 rwstauner to use it
16:28 rwstauner and it hasn't been uploaded yet
16:28 rwstauner you could try just renaming that directory (~/.vagrant.d/boxes/mcbase)
16:28 rwstauner and see if vagrant will download the other
16:29 oalders that seems to be downloading the new box this time
16:29 rwstauner that's a hack to rename a basebox
16:30 rwstauner that i haven't tried
16:30 oalders apparently this is going to take 20 minutes to download, so i'll check on it again after lunch :)
16:32 rwstauner :-)
16:33 rwstauner looking again at that error you were seeing, i think a simple destroy and up would fix that (at least on a clean basebox)
16:34 rwstauner the error is that there's a broken symlink in ther
16:34 rwstauner if we need to we could attempt to remove it if present
16:34 rwstauner but that seems like a bad box configuration if that persists across a destroy
16:42 rwstauner talexb: what's you ram/cpu like on your host pc?  i wonder if puppet "connection refused" was just b/c it hadn't finished starting up yet... maybe a sleep is needed
17:21 talexb rwstauner, Sorry, lunching .. CPU is AMD Phenom(tm) 9650 Quad-Core Processor, and I have 8G RAM.
17:22 rwstauner np
17:22 rwstauner ok, so you've got a plenty-beefy host machine
17:22 rwstauner similar to mine
17:22 talexb :) That was my plan.
17:22 rwstauner so that probably shouldn't be the issue
17:22 rwstauner but it's worth a try
17:22 rwstauner perhaps
17:22 talexb Was using a single core with 1G RAM until recently. This is a nice upgrade.
17:23 rwstauner indeed :-)
17:23 talexb Let me know where to add a sleep and I'll pop one in.
17:29 * talexb tries a destroy followed by an up ..
17:31 rwstauner metacpan-puppet/run.sh => at the bottom it starts the puppet master, then does puppetd -t, then stops puppetmaster
17:31 rwstauner i'm not sure why it does that instead of simply 'puppet apply'
17:31 talexb So you'd suggest a sleep before the stop?
17:31 rwstauner but try sleeping after the 'master start'
17:31 rwstauner no, before the puppetd -t
17:31 rwstauner b/c that's the client
17:32 rwstauner that is attempting to connect to the sever that just started
17:32 talexb Ah ..
17:34 neilb joined #metacpan
17:36 oalders so, i downloaded the box and now i also get "Assuming node debian"
17:37 oalders but it does boot for me
17:37 oalders i also still get "mount: mount point /home/metacpan/metacpan.org/var is a symbolic link to nowhere"
17:37 talexb Looks like puppet master takes about ten seconds to start .. still waiting for 60 second timeout ..
17:37 rwstauner oh!
17:37 rwstauner oalders: that symlink is on your host pc, right?
17:38 talexb :( Argh. Same error.
17:38 oalders ah
17:38 rwstauner b/c that repo really lives on your host
17:38 talexb 'Server hostname 'puppet' did not match server certificate; expected debian'
17:38 rwstauner and i bet the symlink points to something that isn't shared
17:38 oalders var -> /tmp/meta_var
17:38 rwstauner yeah, that's exactly what i was trying to fix
17:39 rwstauner that the old script was messing with the host pc
17:39 rwstauner so, are you willing to remove that symlink?
17:39 oalders talexb:  try adding something like 127.0.1.1mcwheezy.metacpan.org mcwheezy debian to /etc/hosts on the gust
17:39 rwstauner i assume it doesn't work for you anywhere
17:39 oalders *guest
17:39 rwstauner oalders: his vm isn't mcwheezy
17:40 rwstauner and neither is yours anymore ;-)
17:40 oalders heh, but i did put "debian" at the end.
17:40 oalders but that's still not right
17:40 rwstauner :-)
17:40 oalders you could put "puppet" in there :)
17:40 rwstauner puppet should be in the hosts
17:40 neilb Hi, can anyone point me to an example use of metacpan API to generate a list of a user's latest modules. ie the list that appears in, for example, https://metacpan.org/author/NEILB?
17:40 dipsy [ Neil Bowers (NEILB) - metacpan.org ]
17:40 rwstauner i think something puts it there
17:40 oalders killed the symlink on the host and now trying halt && up
17:41 rwstauner ok
17:41 talexb So, puppet instead of debian?
17:41 rwstauner talexb: both, probably
17:42 rwstauner is 'puppet' in the vm /etc/hosts anywhere?
17:42 oalders neilb: yes. hang on
17:42 talexb rwstauner, Yes, it's automagically added as 127.0.0.1 ..
17:42 talexb Hmm .. so re-defining it as 127.0.1.1 might be confusing.
17:42 rwstauner ok, good
17:43 rwstauner neilb: $ curl 'api.metacpan.org/release/_search?q=author:N​EILB+AND+status:latest&fields=distribution'
17:44 neilb oalders: thanks!
17:44 talexb '127.0.0.1    puppet' is the original, and I've added '127.0.1.1 mcwheezy.metacpan.org mcwheezy debian puppet' -- but that gives puppet two addresses.
17:44 rwstauner talexb: can you nopaste the output of 'mount' ?
17:45 oalders neilb: https://github.com/CPAN-API/metacpan-exampl​es/blob/master/scripts/endpoints/release/4a​-latest-release-versions-bool-filter-es.pl
17:45 dipsy [ metacpan-examples/scripts/endpoints/release/​4a-latest-release-versions-bool-filter-es.pl at master · CPAN-API/metacpan-examples · GitHub ]
17:45 oalders that's for releases, but that should point you in the right direction
17:45 oalders you can pare it down and search on release.author
17:45 talexb rws http://nopaste.info/b3f30a8994.html
17:45 dipsy [ Nopaste - powered by project-mindstorm IT Services ]
17:46 rwstauner talexb: thanks, that looks right
17:46 talexb \o/
17:46 ranguard talexb: having puppet in /etc/hosts twice would be confusing
17:46 talexb That's what I thought .. which one is correct?
17:46 oalders neilb: thanks for fixing that Changes file for me :)
17:46 rwstauner talexb: what version of Vagrant and VirtualBox do you have installed?
17:47 ranguard is there a reason for 127.0.1.1 ?
17:47 talexb Virtual box is 4.2.10 .. vagrant is 1.2.3
17:47 jayallen joined #metacpan
17:48 talexb I installed them last week, so I assume that they're fairly recent.
17:48 oalders ranguard: maybe related to https://github.com/mitchellh/vagrant/pull/1176 ?
17:48 dipsy [ Fix for DNS resolution bug on Ubuntu 12.10 by paulv · Pull Request #1176 · mitchellh/vagrant · GitHub ]
17:48 rwstauner ok
17:49 oalders rwstauner: weren't you having issues with a  recent VirtualBox release?
17:49 rwstauner latest virtualbox happens to be 4.2.16 but i don't think that's a problem
17:49 rwstauner 4.2.14 was broken for vagrant importing
17:49 rwstauner but it was a very obvious error
17:51 * ranguard 's gut says it's something to do with that IP not being 127.0.0.1
17:52 rwstauner i don't see why the hosts file would be wrong on a fresh box
17:52 oalders talexb: what's your host OS?
17:52 ranguard does 127.0.0.0/8 include 127.0.1.1?
17:52 talexb oalders, Ubuntu 13.04.
17:53 talexb ranguard, I don't think so. Though 127.0.0.0/9 would include 127.0.1.1 ..
17:54 ranguard ok, well that's the problem: https://github.com/CPAN-API/metacpan​-puppet/blob/master/fileserver.conf
17:54 dipsy [ metacpan-puppet/fileserver.conf at master · CPAN-API/metacpan-puppet · GitHub ]
17:54 ranguard only allows access from 'localhost' and 127.0.0.0/8
17:55 ranguard I'd try work out why you have 127.0.1.1 and not 127.0.0.1 in /etc/hosts
17:55 ranguard oalders / rwstauner do either of you have this 1.1 thing - sorry I've not got the new VM downloaded atm
17:56 oalders ranguard: 127.0.1.1debian
17:56 oalders from the latest box
17:56 rwstauner ditto
17:57 ranguard ok, well that's just confusing :)
17:57 rwstauner talexb: cd metacpan-puppet; diff -u puppet.conf puppet.conf.default
17:57 ranguard and what is 'localhost' defined as in /etchosts ?
17:57 rwstauner 127.0.0.1
17:58 talexb rwstauner, No difference.
17:58 ranguard ok, so that's probably what's giving the access
17:58 rwstauner ok, good
17:58 ranguard sorry, I'll stop guessing now :)
17:58 rwstauner hmm
17:59 oalders the last IP in 127.0.0.0/8 is 127.255.255.255
17:59 rwstauner talexb: /sbin/ifconfig: do you have lo as 127.0.0.1 and eth0 as 10.0.2.15 ?
18:00 talexb rwstauner, Yup.
18:00 rwstauner also normal
18:00 talexb Maybe I should just make all the host names point to 127.0.0.1 ..
18:01 talexb This 127.0.1.1 puzzles me.
18:01 rwstauner seems normal to me
18:01 rwstauner my host pc is similar
18:01 talexb Hmm .. the mask on lo is 255.0.0.0 ..
18:01 rwstauner 127.0.0.1 => localhost, 127.0.0.1 => other-name
18:01 talexb rwstauner, Right.
18:02 rwstauner likewise (lo mask)
18:02 talexb Just pinged 127.0.1.1 and it echoed back fine.
18:02 talexb As I expected.
18:02 rwstauner ok, i was going to ask
18:02 rwstauner strange
18:03 talexb So I think I can remove puppet from 172.0.1.1 .. and try running /etc/puppet/run.sh again.
18:03 rwstauner no, i believe that is needed
18:03 rwstauner i think run.sh will tell you that
18:04 rwstauner my /etc/hosts has puppet as 127.0.0.1
18:04 talexb Right, that's the original entry.
18:04 rwstauner and that's how puppetd determines the host to connect to, i think
18:06 rwstauner bizarre
18:06 rwstauner the purpose of the vm is to avoid issues like this
18:06 rwstauner :-/
18:06 talexb Right.
18:06 rwstauner can you 'ping puppet' ?
18:07 talexb Yup -- 127.0.0.1.
18:07 rwstauner sudo /etc/puppet/run.sh
18:08 talexb Running now .. still has the 60 second sleep for the server to start ..
18:08 rwstauner assumes node debian, starts master,caches catalog, applies config, stops master
18:08 talexb 'Assuming node debian' ..
18:08 talexb 'Supply a node arg to override (dev, or one of the live machines: n1, n2..)' ..
18:09 talexb :/ same error -- 'Server hostname 'puppet' did not match server certificate; expected debian'
18:10 rwstauner do you have an /etc/puppet/autosign.conf ?
18:10 talexb Yes -- a single line with '*'
18:10 rwstauner ok
18:11 oalders i believe you could blow away /etc/puppet/ssl/*
18:11 oalders and it should recreate the certs
18:11 rwstauner right, but that should be happening from the start
18:11 rwstauner rather, the dir should start out empty
18:11 rwstauner talexb: /etc/resolv.conf ?
18:12 rwstauner mine gets updated with some host info
18:12 rwstauner i wonder if that's confusing anything
18:12 talexb rws /etc/resolv.conf is 'nameserver 10.0.2.3'
18:13 talexb Oh, interesting .. 'host puppet' said it had no idea what host puppet was.
18:13 rwstauner hmm
18:13 rwstauner try putting 'search metacpan.org' in that resolv.conf
18:14 rwstauner b/c mine starts out with my ISP info, and then puppet overwrites it
18:14 rwstauner but i have certs leftover from my isp in the puppet/ssl dir
18:15 talexb rwstauner, Ooh .. now host puppet reports 46.43.35.68 .. three times.
18:15 rwstauner hmm
18:15 rwstauner that's it
18:15 rwstauner if i remove the 'search' line from my /etc/resolv.conf then puppet fails like yours
18:15 rwstauner np
18:16 talexb Should I restore /etc/hosts to the original and try running /etc/puppet/run.sh now?
18:17 rwstauner no, just give me moment
18:17 talexb Sure thing.
18:20 rwstauner talexb: git pull on metacpan-developer and try 'vagrant provision'
18:21 talexb Running ..
18:22 talexb no errors yet ..
18:23 talexb OOOOOH ..
18:24 * talexb loves it when one of his four CPUs is at 100%.
18:24 rwstauner yeah
18:24 talexb notice: Finished catalog run in 42.03 seconds
18:24 rwstauner i've been trying to $work in b/t vm up/down and my pc is dragging
18:24 talexb I think that did it.
18:24 rwstauner talexb: success!  thanks for your debugging help
18:24 rwstauner have fun hacking
18:24 talexb You're very welcome.
18:24 talexb Thanks so much for your time. :)
18:24 rwstauner np ;-)
18:26 * talexb sees his CPUs and network connection are getting hammered so goes for a break.
18:28 Mike-PerlRecruiter_ joined #metacpan
18:31 oalders rwstauner++
19:10 ether something's not quite right with the list of documentation modules at https://metacpan.org/release/mod_perl ...
19:10 dipsy [ mod_perl-2.0.8 - Embed a Perl interpreter in the Apache/2.x HTTP server - metacpan.org ]
19:15 rwstauner i'm guessing all those duplicates (like config.pod) have a =head1 NAME \n mod_perl
19:16 rwstauner not sure if there's a better display name, but we could consider "mod_perl (config.pod)"
19:17 rwstauner particularly for those that don't have an abstract
19:35 talexb Stupid question: the module AnyEvent is required to run the tests. Can I just install that with the cpan command?
19:39 * talexb just wings it and goes with cpan. :)
19:48 dsteinbrunner sounds like a missing dependency
19:52 talexb dsteinbrunner, Yeah .. I installed the moule using cpan, which installs it in the system's Perl lib, and not the perlbrew lib. Need to shake that rust off.
19:55 rwstauner talexb: are you following along with the README in metacpan-developer?
19:55 rwstauner there's a section about "running the metacpan-web test suite"
19:55 rwstauner which has commands for using the right perl
19:55 talexb rwstauner, Yes, I am following along on that.
19:55 rwstauner and a little before that there's a section about installing missing modules
19:56 rwstauner i believe most are installed, but there are a few new ones that might be missing
19:56 rwstauner notably AnyEvent::Curl::Multi or something like that
19:56 talexb Getting .. Can't locate AnyEvent/Curl/Multi.pm in @INC
19:56 rwstauner exactly
19:56 rwstauner /home/metacpan/bin/install_modules AnyEvent::Curl::Multi
19:56 talexb I did '/home/metacpan/bin/install_modules --installdeps .' as root and it said there was nothing to do.
19:57 talexb Oh.
19:57 rwstauner in order to do the '--installdeps .' part you need to be *in* a project directory
19:57 rwstauner which is not entirely clear in that README
19:57 rwstauner cd /home/metacpan/metacpan.org
19:58 rwstauner then /home/metacpan/bin/install_modules --installdeps .
19:58 rwstauner we could probably add that to the provisioner
19:58 talexb Yup -- did that again just now .. 'Nothing to install'
19:59 talexb That was in  /home/metacpan/metacpan.org
19:59 talexb Maybe I'll try the other two ..
19:59 rwstauner the other would be home/metacpan/api.metacpan.org
20:00 rwstauner i don't think the puppet repo requires perl mods
20:00 talexb Yup. Nothing to be installed there either.
20:00 rwstauner can you run the test suite now?
20:01 talexb Same error -- not surprising, since nothing installed.
20:01 rwstauner which user are you?
20:02 talexb metacoan, as per the directions.
20:02 rwstauner ok
20:02 talexb Er, metacpan.
20:02 rwstauner `which perl` ?
20:02 dipsy `which perl`  is /home/ilmari/bleadperl/bin/perl, /home/ilmari/bleadperl/bin/cpanm is installed from running Makefile.PL under this, but it still runs Makefile.PL of modules I try to install with /usr/bin/perl
20:02 rwstauner dipsy: forget `which perl`
20:02 dipsy rwstauner: I forgot about `which perl`.
20:02 talexb I think prove is looking for AnyEvent::Curl::Multi in perlbrew ..
20:03 rwstauner it should be
20:03 talexb which perl gives .. /usr/local/perlbrew/perls/perl-5.16.2/bin/perl
20:03 rwstauner good
20:03 talexb I used cpan to install .. which went into the system.
20:03 rwstauner right, so the brewed perl wouldn't find it
20:04 talexb AnyEvent is /usr/local/perlbrew/perls/perl-5.16.2/lib​/site_perl/5.16.2/i686-linux/AnyEvent.pm .. but AnyEvent::Curl::Multi isn't there.
20:05 rwstauner i'm trying to figure out why install_modules didn't work
20:05 rwstauner it might not work as the metacpan user (but i'd think you'd get an error message)
20:06 talexb rwstauner, The install_modules stuff is supposed to be done as the root user ..
20:06 rwstauner indeed
20:06 talexb That's what I did.
20:06 rwstauner hmm
20:06 rwstauner and you did that from /home/metacpan/metacpan.org ?
20:06 rwstauner it should pick up that dep
20:07 rwstauner you cloned all these repos today, right?
20:07 talexb Yes.
20:07 rwstauner so nothing would be too out of date
20:07 talexb All repos cloned today. I freshened metacpan-developer after you updated provision.sh
20:07 rwstauner so what output does that install_modules command give you?  does it show a huge list of the modules that are already up to date?
20:08 talexb It just says 'Nothing to install'
20:10 rwstauner if i do this (as the vagrant user) it shows me a big list of modules and prompts me for yes/no... do you get that?
20:10 rwstauner sudo bash -c 'cd /home/metacpan/metacpan.org && /home/metacpan/bin/install_modules --installdeps .'
20:11 talexb 'Nothing to install'
20:13 rwstauner it should prompt you to confirm a huge list of modules and then it will try and install them
20:13 rwstauner try this: /home/metacpan/bin/install_modules AnyEvent::Curl::Multi
20:13 rwstauner that should at least get you the dep you're missing
20:14 talexb rwstauner, Wow.
20:14 rwstauner ?
20:14 talexb OK, that asked me if I wanted to install to /usr/local/perlbrew/perls/perl-5.16.2/bin/perl, and it's now running.
20:15 talexb So I'm guessing the install_modules script isn't quite doing the right thing?
20:15 rwstauner ok
20:15 rwstauner that's possible, it is a little funky
20:15 rwstauner but i don't know why you and i would be getting different results from the same command
20:16 rwstauner run from the same dir
20:16 rwstauner anyway, the script exists primarily to ensure that the files are installed with the right owner/perms
20:16 talexb Now I tried to run the test suite, and it's giving a privilege violation trying to mkdir /home/metacpan/metacpan.org/t/controller/var ..
20:17 rwstauner what's your `pwd` ?
20:17 talexb /home/metacpan/metacpan.org
20:17 oalders talexb: who are you logged in as?
20:17 talexb metacpan
20:18 oalders that's fine. what's the exact error?
20:18 talexb mkdir /home/metacpan/metacpan.org/t/controller/var: Permission denied at app.psgi line 35.
20:19 rwstauner i don't think it should be trying to write to t/controller/var
20:19 talexb Got that error for everything -- except for t/encoding.t, which worked fine.
20:19 rwstauner oh, weird... i do have one of those
20:19 rwstauner though it's very old
20:20 talexb Interesting.
20:20 rwstauner sudo chown -R metacpan t/controller/var
20:21 talexb Huh .. no such directory.
20:22 rwstauner i still can't believe it's trying to write to that dir
20:22 rwstauner we need to fix that
20:22 talexb Cool .. uncovering hidden bugs on my first day (happy dance).
20:22 oalders talexb: did you "source ~/.metacpanrc"
20:22 talexb Why don't I create that dir, chown it to metacpan, and see if the tests run.
20:23 oalders good plan
20:23 talexb oalders, Yes, I did that before running prove.
20:23 rwstauner there must be a chdir in there that doesn't belong
20:23 oalders talexb: prove -lv ?
20:23 rwstauner talexb: try it, but it may not work b/c that dir is a subdir of what is shared from the host
20:23 oalders if you add -r you'll get that error
20:23 rwstauner which likely means an ownership change won't have any effect
20:24 oalders it sounds like talexb  is running "prove -lvr" rather than "prove -lv"
20:24 talexb oalders, prove -lv produced Can't locate List/MoreUtils.pm in @INC ..
20:24 talexb rwstauner, Right, so not useful for me to add that directory after all.
20:24 rwstauner oalders: -r is ok for metacpan.org i believe
20:24 oalders ah, ok
20:25 oalders talexb: /home/metacpan/bin/install_modules List::MoreUtils
20:25 rwstauner talexb: try making that dir
20:25 rwstauner on my pc there's nothing in it
20:25 rwstauner well, there are subdirs, but there are no files
20:25 rwstauner i wonder if something requires the dir to be present but doesn't write to it anymore
20:26 rwstauner sudo mkdir -p /home/metacpan/metacpan.org/t/​controller/var/tmp/scoreboard/
20:26 oalders my $scoreboard = "$FindBin::RealBin/var/tmp/scoreboard";
20:26 rwstauner oh
20:26 oalders app.psgi
20:26 rwstauner hmm
20:27 rwstauner things normally write to ./var/tmp/scoreboard
20:27 rwstauner the weird thing is that it's beneath t/controller
20:27 rwstauner but that findbin might be able to be changed to __FILE__
20:27 oalders well, it's creating the path based on the location of the test file
20:27 rwstauner or maybe something in t/controller can be fixed
20:27 rwstauner right
20:27 talexb /home/metacpan/bin/install_modules List::MoreUtils told me that List::MoreUtils is up to date. (0.33) ..
20:28 oalders or we can skip the scoreboard if HARNESS_ACTIVE
20:28 rwstauner talexb: which prove
20:28 talexb /usr/bin/prove
20:29 rwstauner do this: . ~/.metacpanrc
20:29 rwstauner i'm not sure why that isn't automatic
20:29 rwstauner must be missing from puppet
20:29 talexb rwstauner, OK, done. which still finds the same prove ..
20:30 rwstauner that shouldn't be
20:31 rwstauner which perl?
20:31 dipsy which perl is which
20:31 rwstauner dipsy: forget which perl
20:31 dipsy rwstauner: I forgot about which perl.
20:32 talexb OK, prove is now .. /usr/local/perlbrew/perls/perl-5.16.2/bin/prove
20:32 talexb And prove -lv works fine ..
20:32 rwstauner ok
20:32 talexb Let me try prove -lvr
20:33 oalders i'm going to push a fix for the scoreboard as soon as my tests pass
20:33 rwstauner oalders++
20:33 talexb Now it's having problems making /home/metacpan/metacpan.org/t/controller/var/tmp
20:34 talexb I did a chown but not a chgrp :/
20:34 talexb Bad developer.
20:34 rwstauner did you do that mkdir -p command?
20:34 rwstauner chgrp shouldn't be required nor should it help in this case
20:34 talexb Oh, not so bad .. that's a different directory.
20:35 metacpan joined #metacpan
20:35 metacpan [metacpan-web01] oalders pushed 1 new commit to master: http://git.io/B-mIDg
20:35 metacpan metacpan-web/master b60ac64 Olaf Alders: Disable scoreboard when running test suite.
20:35 metacpan left #metacpan
20:35 dipsy [ Disable scoreboard when running test suite. · b60ac64 · CPAN-API/metacpan-web · GitHub ]
20:35 oalders talexb: pull the latest master from metacpan-web
20:37 talexb oalders, Done. Do I need to restart metacpan-www before continuing?
20:37 oalders talexb: no, just try running the test suite again
20:37 oalders it doesn't run against the live install anyway
20:38 talexb oalders, Ooh, this looks good.
20:38 oalders :)
20:39 oalders i wonder why this didn't break on travis
20:40 talexb All tests successful. \o/
20:41 rwstauner might be a perm thing in that on travis it's allowed to write there
20:41 rwstauner otherwise i don't know
20:41 * rwstauner doesn't even know what scoreboard is
20:41 talexb Anything like the Apache scoreboard?
20:42 oalders yeah, i think so
20:42 oalders Plack::Middleware::ServerStatus::Lite
20:43 talexb OK, well thanks again for all of your help. I have to go run an errand right now, but I'll be back a little later to poke around.
20:43 oalders talexb++
20:43 talexb You guys rock!
20:43 talexb oalders++ rwstauner++
20:44 oalders :)
20:44 rwstauner :-)
20:51 oalders so, i broke the build on 5.18. no idea how
21:01 rwstauner i thought it already was broken b/c lots of deps are broekn
21:07 mst rwstauner: a fair few have been fixed now
21:07 rwstauner ok
21:08 rwstauner i haven't checked travis lately
21:10 oalders the previous build passed on everything
21:17 rwstauner hmm
21:17 rwstauner oh, i'm thinking of the api
21:18 rwstauner that one was a bit more broken
21:19 rwstauner wow, that's weird (the build output)
21:19 rwstauner one of those is the release page, one is the change log
21:19 rwstauner or something like that
21:20 rwstauner i restarted the job just to see
21:20 rwstauner what happens
21:28 oalders still fails
21:29 rwstauner boo hoo
22:00 rwstauner oalders: Template::Alloy fails one of its tests on 5.18
22:00 oalders ah, good catch
22:00 rwstauner which could explain our test failure, or maybe not
22:01 rwstauner i've just been trying to install deps in order to run our tests
22:01 oalders good idea. i hadn't tried 5.18 at all
23:24 rwstauner oalders: i think i got it
23:29 oalders ?
23:40 rwstauner looks like that failure may be a hash randomization issue combined with my lack of catalyst understanding
23:40 rwstauner i'm updating deps on my other perls to test
23:48 rwstauner let's see what travis thinks of that
23:48 metacpan joined #metacpan
23:48 metacpan [metacpan-web01] rwstauner pushed 1 new commit to master: http://git.io/K9HUhw
23:48 metacpan metacpan-web/master f7e8c90 Randy Stauner: Remove incorrect Chain from changes actions...
23:48 metacpan left #metacpan
23:48 dipsy [ Remove incorrect Chain from changes actions · f7e8c90 · CPAN-API/metacpan-web · GitHub ]
23:56 rwstauner 5.18 and 5.16 pass, looks good to me
23:56 jayallen joined #metacpan
23:56 oalders rwstauner++
23:56 oalders how did you figure that out?
23:57 rwstauner well, like i mentioned earlier, the test output showed one was the release page and one was a change log
23:57 rwstauner i watched the plackup and noticed duplicate uris
23:58 rwstauner so i compared it to some of the other sub definitions
23:58 * rwstauner needs a better understanding of catalyst
23:59 rwstauner to celebrate all passing on travis, i'm going to go eat pizza
23:59 * rwstauner &

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary