Skip Menu |
 

This queue is for tickets about the Devel-SizeMe CPAN distribution.

Report information
The Basics
Id: 94414
Status: open
Priority: 0/
Queue: Devel-SizeMe

People
Owner: Nobody in particular
Requestors: scott [...] slowass.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Attachments


Subject: No node 1
Date: Thu, 03 Apr 2014 18:11:42 -0700 (PDT)
To: bug-devel-sizeme [...] rt.cpan.org
From: scott [...] slowass.net
Download (untitled) / with headers
text/plain 1.7k
The :3000 display doesn't show much of interest to the web browser so I assume one of these errors are actually significant. This is the tail end of the perl -d:SizeMe run and then the sizeme_graph.pl run: Calculated sizes for compiled regexes are incomplete Devel::Size: Calculated sizes for FMs are incomplete Calculated sizes for perlio layers are incomplete | sizeme_store.pl --db=sizeme.db exited with an error status [root@dev TGC]# sizeme_graph.pl daemon Reading sizeme.db Opening sizeme.db [Fri Apr 4 00:33:06 2014] [info] Listening at "http://*:3000". Server available at http://127.0.0.1:3000. [Fri Apr 4 00:34:37 2014] [debug] Your secret passphrase needs to be changed!!! [Fri Apr 4 00:34:37 2014] [debug] GET "/". [Fri Apr 4 00:34:37 2014] [debug] Routing to a callback. [Fri Apr 4 00:34:37 2014] [debug] Rendering template "index.html.ep" from DATA section. [Fri Apr 4 00:34:37 2014] [debug] Rendering template "layouts/default.html.ep" from DATA section. [Fri Apr 4 00:34:37 2014] [debug] 200 OK (0.020068s, 49.831/s). [Fri Apr 4 00:34:39 2014] [debug] GET "/jit_tree/1/1". [Fri Apr 4 00:34:39 2014] [debug] Routing to a callback. Opening sizeme.db /jit_tree/1/1 ... [Fri Apr 4 00:34:39 2014] [error] No node 1 at /data/apps/bin/sizeme_graph.pl line 246. [Fri Apr 4 00:34:39 2014] [debug] Template "exception.development.html.ep" not found. [Fri Apr 4 00:34:39 2014] [debug] Template "exception.html.ep" not found. [Fri Apr 4 00:34:39 2014] [debug] Rendering inline template "b260ba41ebf72d49075cbbc0f6086768". [Fri Apr 4 00:34:39 2014] [debug] Rendering inline template "f460d533626235abe1fccfae3f785367". [Fri Apr 4 00:34:39 2014] [debug] 500 Internal Server Error (0.239589s, 4.174/s). Thanks, -scott
This is perl 5, version 16, subversion 2 (v5.16.2) built for x86_64-linux
[4]- Exit 111 perl -d:SizeMe t/mobrater/ideas_delete_user.t
Download (untitled) / with headers
text/plain 2.2k
Hi, From what I can see, this happens when your node ids do not start from 1 (in my case, the lowest id which existed was 4). There are some assumptions in the graph script that the default request should route to node 1. You just need to alias "node 1" to "the lowest node possible", or rather, the highest. Example workaround attached. At least, this worked for me. On Thu Apr 03 21:11:57 2014, scott@slowass.net wrote: Show quoted text
> > The :3000 display doesn't show much of interest to the web browser so > I assume one of these > errors are actually significant. This is the tail end of the perl > -d:SizeMe run and > then the sizeme_graph.pl run: > > Calculated sizes for compiled regexes are incomplete > Devel::Size: Calculated sizes for FMs are incomplete > Calculated sizes for perlio layers are incomplete > > | sizeme_store.pl --db=sizeme.db exited with an error status > [root@dev TGC]# sizeme_graph.pl daemon > Reading sizeme.db > Opening sizeme.db > [Fri Apr 4 00:33:06 2014] [info] Listening at "http://*:3000". > Server available at http://127.0.0.1:3000. > [Fri Apr 4 00:34:37 2014] [debug] Your secret passphrase needs to be > changed!!! > [Fri Apr 4 00:34:37 2014] [debug] GET "/". > [Fri Apr 4 00:34:37 2014] [debug] Routing to a callback. > [Fri Apr 4 00:34:37 2014] [debug] Rendering template "index.html.ep" > from DATA section. > [Fri Apr 4 00:34:37 2014] [debug] Rendering template > "layouts/default.html.ep" from DATA section. > [Fri Apr 4 00:34:37 2014] [debug] 200 OK (0.020068s, 49.831/s). > [Fri Apr 4 00:34:39 2014] [debug] GET "/jit_tree/1/1". > [Fri Apr 4 00:34:39 2014] [debug] Routing to a callback. > Opening sizeme.db > /jit_tree/1/1 ... > [Fri Apr 4 00:34:39 2014] [error] No node 1 at > /data/apps/bin/sizeme_graph.pl line 246. > > [Fri Apr 4 00:34:39 2014] [debug] Template > "exception.development.html.ep" not found. > [Fri Apr 4 00:34:39 2014] [debug] Template "exception.html.ep" not > found. > [Fri Apr 4 00:34:39 2014] [debug] Rendering inline template > "b260ba41ebf72d49075cbbc0f6086768". > [Fri Apr 4 00:34:39 2014] [debug] Rendering inline template > "f460d533626235abe1fccfae3f785367". > [Fri Apr 4 00:34:39 2014] [debug] 500 Internal Server Error > (0.239589s, 4.174/s). > > Thanks, > -scott
Subject: workaround-node1-err.patch
From d20b0561997617aec1ee8f7711639300c7ffe88d Mon Sep 17 00:00:00 2001 From: alucas <anthony_lucas@discovery.com> Date: Fri, 18 Jul 2014 11:01:19 +0100 Subject: [PATCH] - workaround for node 1 error --- bin/sizeme_graph.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/sizeme_graph.pl b/bin/sizeme_graph.pl index 6b1e988..1b2f4bd 100755 --- a/bin/sizeme_graph.pl +++ b/bin/sizeme_graph.pl @@ -208,6 +208,12 @@ sub _get_node { my $node = $node_cache{$id}; return $node if ref $node; + if ($id eq 1) { + my $idsql = "select id from node order by id asc LIMIT 1"; + my $idrow = $dbh->selectrow_arrayref($idsql); + $id = $idrow->[0] if ($idrow and @$idrow); + } + my @ids; # ensure the one the caller wanted is actually in the batch push @ids, $id; @@ -287,6 +293,7 @@ sub _merge_up_only_children { push @merge, $onlychild; } $node = shift @merge; + print "MERGE: @merge\n"; return $node unless @merge; warn "merging up into $node->{id} children: @{[ map { $_->{id} } @merge ]}\n"; -- 1.8.3.2


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.