List Info

Thread: reset_references error




reset_references error
user name
2006-04-26 14:42:37
Hi all,

I recently started to play with instiki last february and used version 0.10.2. I am now trying to upgrade to 0.11.0.  I have managed to migrate all the data but the reset_references script isn't working for me. I have no ruby experience so if anyone can help with this that would be great.

C:\instiki-0.11.0>ruby script\reset_references production
Loading Rails for production environment...
c:/ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize': unknown error (RuntimeErro
r)
 ;       from c:/ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'
  ;      from c:/ruby/lib/ruby/1.8/dl/import.rb:27:in `dlload'
    ;    from ./script/../config/../vendor/sqlite3-ruby/sqlite3/driver/dl/api.rb:
63
 ;       from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire'
        from ./script/../config/../vendor/rails/activerecord/lib/../../activesup
port/lib/active_support/dependencies.rb:214:in `require'
  ;      from ./script/../config/../vendor/sqlite3-ruby/sqlite3/driver/dl/driver.
rb:33
    ;    from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire'
        from ./script/../config/../vendor/rails/activerecord/lib/../../activesup
port/lib/active_support/dependencies.rb:214:in `require'
         ... 6 levels...
  ;      from ./script/../config/../vendor/rails/activerecord/lib/active_record/c
onnection_adapters/abstract/connection_specification.rb:106:in `retrieve_connect
ion'
        from ./script/../config/../vendor/rails/activerecord/lib/active_record/c
onnection_adapters/abstract/connection_specification.rb:20:in `connection'
       ; from ./script/../config/../vendor/rails/activerecord/lib/active_record/b
ase.rb:502:in `delete_all'
       ; from script/reset_references:13

C:\instiki-0.11.0>ruby -v
ruby 1.8.4 (2005-12-24) [i386-mswin32]

reset_references error
user name
2006-04-26 18:20:46
Nicholas,

I too have noticed that removing orphans seems not to remove
them. They  
still appear in the All pages list. However, the problem
seems related to  
the need to recreate that page - or something like this.
Sometimes  
shutting down the session (close browser) and return reveals
that orphans  
really ARE gone - often in fact. Other times, this doesn't
seem to work. I  
find this all confusing, and don't have time or skill to
chase it down.

I HAVE, however, always managed somehow to flush orphans in
all cases, and  
I run about 8 different Instiki wikis. I just love that
program!

- t.

On Wed, 26 Apr 2006 07:42:37 -0700, Nicholas Ng
<nicholas.nggmail.com>  
wrote:

> Hi all,
>
> I recently started to play with instiki last february
and used version
> 0.10.2. I am now trying to upgrade to 0.11.0.  I have
managed to migrate  
> all
> the data but the reset_references script isn't working
for me. I have no
> ruby experience so if anyone can help with this that
would be great.
>
> C:\instiki-0.11.0>ruby script\reset_references
production
> Loading Rails for production environment...
> c:/ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize':
unknown error
> (RuntimeErro
> r)
>         from c:/ruby/lib/ruby/1.8/dl/import.rb:29:in
`dlload'
>         from c:/ruby/lib/ruby/1.8/dl/import.rb:27:in
`dlload'
>         from
>
./script/../config/../vendor/sqlite3-ruby/sqlite3/driver/dl/
api.rb:
> 63
>         from  
>
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21
:in
> `re
> quire'
>         from
>
./script/../config/../vendor/rails/activerecord/lib/../../ac
tivesup
> port/lib/active_support/dependencies.rb:214:in
`require'
>         from
>
./script/../config/../vendor/sqlite3-ruby/sqlite3/driver/dl/
driver.
> rb:33
>         from  
>
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21
:in
> `re
> quire'
>         from
>
./script/../config/../vendor/rails/activerecord/lib/../../ac
tivesup
> port/lib/active_support/dependencies.rb:214:in
`require'
>          ... 6 levels...
>         from
>
./script/../config/../vendor/rails/activerecord/lib/active_r
ecord/c
>
onnection_adapters/abstract/connection_specification.rb:106:
in
> `retrieve_connect
> ion'
>         from
>
./script/../config/../vendor/rails/activerecord/lib/active_r
ecord/c
>
onnection_adapters/abstract/connection_specification.rb:20:i
n  
> `connection'
>         from
>
./script/../config/../vendor/rails/activerecord/lib/active_r
ecord/b
> ase.rb:502:in `delete_all'
>         from script/reset_references:13
>
> C:\instiki-0.11.0>ruby -v
> ruby 1.8.4 (2005-12-24) [i386-mswin32]



-- 

================================================
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< TC.BestMindHealth.com / BestMindHealth.com >>
<< tomcloydbestmindhealth.com >>
================================================
_______________________________________________
Instiki-users mailing list
Instiki-usersrubyforge.org
h
ttp://rubyforge.org/mailman/listinfo/instiki-users
reset_references error
user name
2006-04-26 20:51:51
Hi Nicholas,

>         from c:/ruby/lib/ruby/1.8/dl/import.rb:29:in
> `dlload'
>         from c:/ruby/lib/ruby/1.8/dl/import.rb:27:in
> `dlload'
>         from
>
./script/../config/../vendor/sqlite3-ruby/sqlite3/driver/dl/
api.rb:
> 63

Looks like the sqlite3 driver can't load the sqlite3 dll.
Have you
downloaded and placed sqlite3 on the path?

Cheers,
Assaph

_______________________________________________
Instiki-users mailing list
Instiki-usersrubyforge.org
h
ttp://rubyforge.org/mailman/listinfo/instiki-users
reset_references error
user name
2006-04-26 22:42:45
Thanks Assaph!

The sqlite3.dll already came with the instiki package.&nbsp; However, I had to add to the path that was in instiki.cmd to get it to work.

set PATH=.\lib\native\win32;%PATH%

Thanks again,
Nick
 

On 4/26/06, Assaph Mehr <gmail.com">assaphgmail.com> wrote:
Hi Nicholas,

  ; &nbsp; &nbsp;  from c:/ruby/lib/ruby/1.8/dl/import.rb:29:in
>; `dlload'
&gt; &nbsp; &nbsp;   ;  from c:/ruby/lib/ruby/1.8/dl/import.rb:27:in
>; `dlload'
&gt; &nbsp; &nbsp;   ;  from
> ./script/../config/../vendor/sqlite3-ruby/sqlite3/driver/dl/api.rb:
> 63

Looks like the sqlite3 driver can't load the sqlite3 dll. Have you
downloaded and placed sqlite3 on the path?

Cheers,
Assaph

_______________________________________________
Instiki-users mailing list
rubyforge.org">Instiki-usersrubyforge.org
http://rubyforge.org/mailman/listinfo/instiki-users

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )