Forums Instiki

ubuntu upgrade broke instiki

Subscribe to ubuntu upgrade broke instiki 2 posts, 2 voices

 
Trich 1 post

Seems like the upgrade switched ruby from 2.5 to 2.7. I’ve been using instiki on LAN as a wiki for our home business. And now it’s kaput. I’ve tried redownloading and running a test.

The output from my local installs:

/home/rich/instiki/vendor/rails/activesupport/lib/active_support/core_ext/uri.rb:7: warning: URI.escape is obsolete
/home/rich/instiki/vendor/rails/activesupport/lib/active_support/core_ext/uri.rb:7: warning: URI.unescape is obsolete
=> Booting Thin
=> Rails 2.3.18 application starting on http://0.0.0.0:2500
Traceback (most recent call last):
	26: from ./instiki:6:in `<main>'
	25: from ./instiki:6:in `load'
	24: from /home/rich/instiki/script/server:86:in `<top (required)>'
	23: from /home/rich/instiki/script/server:86:in `eval'
	22: from /home/rich/instiki/config.ru:1:in `<top (required)>'
	21: from /home/rich/instiki/config.ru:1:in `new'
	20: from /home/rich/instiki/vendor/bundle/ruby/2.7.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
	19: from /home/rich/instiki/vendor/bundle/ruby/2.7.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
	18: from /home/rich/instiki/config.ru:3:in `block in <top (required)>'
	17: from /home/rich/instiki/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
	16: from /home/rich/instiki/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
	15: from /home/rich/instiki/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
	14: from /home/rich/instiki/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
	13: from /home/rich/instiki/config/environment.rb:14:in `<top (required)>'
	12: from /home/rich/instiki/vendor/rails/railties/lib/initializer.rb:113:in `run'
	11: from /home/rich/instiki/vendor/rails/railties/lib/initializer.rb:194:in `process'
	10: from /home/rich/instiki/vendor/rails/railties/lib/initializer.rb:402:in `load_view_paths'
	 9: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/paths.rb:40:in `load!'
	 8: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/paths.rb:40:in `each'
	 7: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:69:in `load!'
	 6: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:86:in `templates_in_path'
	 5: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:86:in `each'
	 4: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:87:in `block in templates_in_path'
	 3: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:92:in `create_template'
	 2: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:92:in `new'
	 1: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:119:in `initialize'
/home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:119:in `gsub!': can't modify frozen String: "" (FrozenError)

I’ve also installed via apt and get this output:

Traceback (most recent call last):
	3: from /usr/local/bin/instiki:23:in `<main>'
	2: from /usr/local/bin/instiki:23:in `load'
	1: from /var/lib/gems/2.7.0/gems/instiki-0.10.2/instiki:6:in `<top (required)>'
/var/lib/gems/2.7.0/gems/instiki-0.10.2/instiki:6:in `load': /var/lib/gems/2.7.0/gems/instiki-0.10.2/script/server:27: formal argument cannot be a constant (SyntaxError)
...    'Default: 2500') { |OPTIONS[:port]| }
...                        ^~~~~~~
/var/lib/gems/2.7.0/gems/instiki-0.10.2/script/server:27: syntax error, unexpected '[', expecting '|'
...   'Default: 2500') { |OPTIONS[:port]| }
...                              ^
/var/lib/gems/2.7.0/gems/instiki-0.10.2/script/server:30: formal argument cannot be a constant
... 'Default: 0.0.0.0') { |OPTIONS[:ip]| }
...                        ^~~~~~~
/var/lib/gems/2.7.0/gems/instiki-0.10.2/script/server:30: syntax error, unexpected '[', expecting '|'
...'Default: 0.0.0.0') { |OPTIONS[:ip]| }
...                              ^

Any help would be appreciated. If I can’t get instiki running again I’ll need help extracting the latest revision from the sqlite3 so I can migrate.

 
admin Administator 60 posts

You will need to upgrade to the latest Instiki if you want to run on Ruby 2.7.

The Instiki website is running on Ruby 2.7.1.

Forums Instiki