jberger / Galileo

A Simple Modern Perl CMS
http://galileo-cms.herokuapp.com
166 stars 38 forks source link

Nasty error when running setup the second time #38

Closed szabgab closed 10 years ago

szabgab commented 10 years ago

I ran galileo setup set up the database by clicking on "Install or upgrade your database". launched the server with galileo daemon made some changes (created a page, changed the navigation) then closed the daemon (Ctrl-C). ran galileo setup again, visited the web page on port 3000 and clicked on "Install or upgrade your database" again. The web page sad something about 1 -> 2 but that's when I got this nasty error message on the command-line.

Then I ran galileo setup again, clicked on "Install or upgrade your database" again. This time the web pages said "Database schema is current" and there was no nasty error on the command-line.

SV = IV(0x7fb2c9032830) at 0x7fb2c9032840
  REFCNT = 1
  FLAGS = (ROK,READONLY)
  RV = 0x7fb2c9a92fd0
    SV = PVHV(0x7fb2c9b3e180) at 0x7fb2c9a92fd0
      REFCNT = 1
      FLAGS = (OBJECT,SHAREKEYS)
      STASH = 0x7fb2c7db2860    "DBI::db"
      ARRAY = 0x7fb2c2c60fd0  (0:7, 1:1)
      hash quality = 100.0%
      KEYS = 1
      FILL = 1
      MAX = 7
        Elt "InactiveDestroy" HASH = 0xc96c9812
        SV = IV(0x7fb2c90305d8) at 0x7fb2c90305e8
          REFCNT = 1
          FLAGS = (IOK,pIOK)
          IV = 1
    (in cleanup) dbih_getcom handle DBI::db=HASH(0x7fb2c9a92fd0) is not a DBI handle (has no magic) at /Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/site_perl/5.20.1/DBIx/Class/Storage/DBI.pm line 256 during global destruction.
SV = IV(0x7fb2c30472d8) at 0x7fb2c30472e8
  REFCNT = 1
  FLAGS = (ROK,READONLY)
  RV = 0x7fb2c3eafc70
    SV = PVHV(0x7fb2c30e2740) at 0x7fb2c3eafc70
      REFCNT = 1
      FLAGS = (OBJECT,SHAREKEYS)
      STASH = 0x7fb2c7db2860    "DBI::db"
      ARRAY = 0x0
      KEYS = 0
      FILL = 0
      MAX = 7
SV = IV(0x7fb2c9aaa598) at 0x7fb2c9aaa5a8
  REFCNT = 1
  FLAGS = (ROK,READONLY)
  RV = 0x7fb2c9aada48
    SV = PVHV(0x7fb2c3eb0fa0) at 0x7fb2c9aada48
      REFCNT = 1
      FLAGS = (OBJECT,SHAREKEYS)
      STASH = 0x7fb2c7db2860    "DBI::db"
      ARRAY = 0x7fb2c53b9080  (0:7, 1:1)
      hash quality = 100.0%
      KEYS = 1
      FILL = 1
      MAX = 7
        Elt "InactiveDestroy" HASH = 0xc96c9812
        SV = IV(0x7fb2c3eb6698) at 0x7fb2c3eb66a8
          REFCNT = 1
          FLAGS = (IOK,pIOK)
          IV = 1
    (in cleanup) dbih_getcom handle DBI::db=HASH(0x7fb2c9aada48) is not a DBI handle (has no magic) at /Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/site_perl/5.20.1/DBIx/Class/Storage/DBI.pm line 256 during global destruction.
SV = IV(0x7fb2c9a9b7f8) at 0x7fb2c9a9b808
  REFCNT = 1
  FLAGS = (ROK,READONLY)
  RV = 0x7fb2c9aa2560
    SV = PVHV(0x7fb2c82a5aa0) at 0x7fb2c9aa2560
      REFCNT = 1
      FLAGS = (OBJECT,SHAREKEYS)
      STASH = 0x7fb2c7db2860    "DBI::db"
      ARRAY = 0x7fb2c888a350  (0:7, 1:1)
      hash quality = 100.0%
      KEYS = 1
      FILL = 1
      MAX = 7
        Elt "InactiveDestroy" HASH = 0xc96c9812
        SV = IV(0x7fb2c30b11b0) at 0x7fb2c30b11c0
          REFCNT = 1
          FLAGS = (IOK,pIOK)
          IV = 1
    (in cleanup) dbih_getcom handle DBI::db=HASH(0x7fb2c9aa2560) is not a DBI handle (has no magic) at /Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/site_perl/5.20.1/DBIx/Class/Storage/DBI.pm line 256 during global destruction.
jberger commented 10 years ago

Oddly, it seems that the installer had taken to installing schema version 1 rather than 2 by default. Therefore when you ran it again, it performed the update. I'm fixing that on a branch for release as 0.037.

The peek output is something that I cannot get rid of. As much as I have tried, it seems not to be possible. Something deep within the bowel of DBICDH. If fact, a primary motivation for the web-based installer was so that users didn't have to see those nasty messages.