Content
Error in new version
Added by Douglas Leonardo almost 9 years ago
I installed the 5.0.x version, but as I have a 4.2.2 version in production on another server, I made a backup of the database and restored on the new server that is 5.0.x, but to access some pages as Project Settings and Administration I got the following error:
[2016-02-12T09: 08: 26.175512 # 1191] INFO -: Completed 500 Internal Server Error in 412ms (ActiveRecord 141.9ms) F [2016-02-12T09: 08: 26.177042 # 1191] FATAL -: ActionView :: Template :: Error (mysql2 :: Error: Unknown column 'repos.required_storage_bytes' in 'field list': SELECT * projects, wiki.filesize AS wiki_required_space, wp.filesize AS work_package_required_space, repos.required_storage_bytes AS repositories_required_space (. COALESCE (wiki.filesize, 0) + COALESCE (wp.filesize, 0) + COALESCE (repos.required_storage_bytes, 0)) FROM THE required_disk_space projects projects LEFT JOIN (SELECT wiki.project_id, SUM (wiki_attached.filesize) AS filesize FROM wiki wikis JOIN wiki_pages pages ON = pages.wiki_id wiki.id JOIN attachments wiki_attached ON (wiki_attached.container_id = pages.id AND wiki_attached.container_type = 'WikiPage') GROUP BY wiki.project_id ) Wiki ON projects.id wiki.project_id = LEFT JOIN (SELECT wp.project_id, SUM (wp_attached.filesize) AS filesize FROM work_packages wp JOIN attachments wp_attached ON (wp_attached.container_id = wp.id AND wp_attached.container_type = 'work package') GROUP BY wp.project_id ) Wp = ON projects.id wp.project_id LEFT JOIN repositories repos ON repos.project_id = WHERE `projects.id projects`.`id` = 3 LIMIT 1): 41: <% Unless project.new_record? %> 42: <section class = "form - section"> 43: <% = render partial "projects / form / required_storage" 44: locals: {project: project, storage: project.count_required_storage}%> 45: </ section> 46: <% end%> 47:
Can anyone help?