Setting up foodsoft on Uberspace - has anyone managed to do this recently?

Hello,

I’m trying to install FoodSoft on an uberspace server running ruby 3.2.5.

There is this tutorial from 2018: FoodSoft auf Uberspace installieren · foodcoops/foodsoft Wiki · GitHub

Does anyone still have a working FoodSoft setup on Uberspace, or managed to install it there recently?

I’m currently stuck with this error I cannot resolve:

Completed 500 Internal Server Error in 397ms (ActiveRecord: 32.0ms | Allocations: 122453)


  
ActionView::Template::Error (Tried to load unspecified class: ActiveSupport::HashWithIndifferentAccess):
    1: = config_input form, :name, required: true, input_html: {class: 'input-xlarge'}
    2: = form.fields_for :contact do |c|
    3:   = config_input c, :street, input_html: {class: 'input-xlarge'}
    4:   .fold-line
    5:     = config_input c, :zip_code, input_html: {class: 'input-mini'}
    6:     = config_input c, :city, input_html: {class: 'input-medium'}
  
app/lib/foodsoft_config.rb:120:in `[]'
app/helpers/admin/configs_helper.rb:147:in `block in config_input_field_options'
app/helpers/admin/configs_helper.rb:147:in `each'
app/helpers/admin/configs_helper.rb:147:in `config_input_field_options'
app/helpers/admin/configs_helper.rb:18:in `config_input'
app/views/admin/configs/_tab_foodcoop.html.haml:3
app/views/admin/configs/_tab_foodcoop.html.haml:2
app/views/admin/configs/show.html.haml:10
app/views/admin/configs/show.html.haml:9:in `each'
app/views/admin/configs/show.html.haml:9
app/views/admin/configs/show.html.haml:4
app/controllers/application_controller.rb:92:in `set_currency'
app/controllers/application_controller.rb:80:in `set_time_zone'

Any ideas would be appreciated. Thank you!

The main problem is that the Foodsoft is not yet compatible with ruby 3. We will be solving this within the next months.

1 Like

Thank you very much for the quick response!

I have been able to install ruby 2.7.8 using rvm (curl -sSL https://get.rvm.io | bash -s stable, rvm install 2.7.8 --autolibs=read-only) and upgraded sqlite to 1.6.9 in the Gemfile, and at first glance it seems to be working now. Maybe this can be a workaround until support for ruby 3 is available.