noosfero | fresh install using `script/quick-start` failing: "relation articles does not exist" (#331)

Joenio Costa gitlab at mg.gitlab.com
Tue May 8 13:16:53 BRT 2018


New Issue was created.

Issue 331: https://gitlab.com/noosfero/noosfero/issues/331
Author:    Joenio Costa
Assignee:  

steps:

* Create a new LXC Container running Debian Jessie
* Run ./script/quick-start on a clean state of noosfero repository clone

Error:

```
Using whenever 0.9.4
Using will_paginate 3.0.7
Using xss_terminate 0.0.0 from source at vendor/plugins/xss_terminate
Bundle complete! 79 Gemfile dependencies, 146 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Configuring Noosfero to use PostgreSQL, with your user.
$ cp config/database.yml.pgsql config/database.yml
$ rake db:schema:load
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "articles" does not exist
LINE 5:                WHERE a.attrelid = '"articles"'::regclass
                                          ^
:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
                FROM pg_attribute a LEFT JOIN pg_attrdef d
                  ON a.attrelid = d.adrelid AND a.attnum = d.adnum
               WHERE a.attrelid = '"articles"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum
/HOLODEV/noosfero/app/models/concerns/acts_as_filesystem.rb:49:in `has_path?'
/HOLODEV/noosfero/app/models/concerns/acts_as_filesystem.rb:22:in `acts_as_filesystem'
/HOLODEV/noosfero/app/models/article.rb:275:in `<class:Article>'
/HOLODEV/noosfero/app/models/article.rb:2:in `<top (required)>'
```

I fixed error commenting the line below. But I suppose the right solution isn't on that point:

```diff
joenio at linda-lee:~/src/noosfero-projects/noosfero (master)$ git diff
diff --git a/app/models/concerns/acts_as_filesystem.rb b/app/models/concerns/acts_as_filesystem.rb
index b3bcb5202..3d71e225f 100644
--- a/app/models/concerns/acts_as_filesystem.rb
+++ b/app/models/concerns/acts_as_filesystem.rb
@@ -46,7 +46,7 @@ module ActsAsFilesystem
     end
 
     def has_path?
-      (['name', 'slug', 'path'] - self.column_names).blank?
+      #(['name', 'slug', 'path'] - self.column_names).blank?
     end
 
   end
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/issues/331
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180508/eb17f1f5/attachment-0001.html>


More information about the Noosfero-dev mailing list