From nobody@FreeBSD.org  Sat Jan 26 09:47:33 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 1000146E
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 26 Jan 2013 09:47:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id EB48881C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 26 Jan 2013 09:47:32 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0Q9lW4N099499
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 26 Jan 2013 09:47:32 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r0Q9lWMd099498;
	Sat, 26 Jan 2013 09:47:32 GMT
	(envelope-from nobody)
Message-Id: <201301260947.r0Q9lWMd099498@red.freebsd.org>
Date: Sat, 26 Jan 2013 09:47:32 GMT
From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: www/owncloud:  ERROR:  null value in column "configvalue" violates not-null constraint
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         175602
>Category:       ports
>Synopsis:       www/owncloud:  ERROR:  null value in column "configvalue" violates not-null constraint
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kevlo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 26 09:50:00 UTC 2013
>Closed-Date:    Sat Feb 16 07:45:27 UTC 2013
>Last-Modified:  Fri Feb 22 15:40:02 UTC 2013
>Originator:     O. Hartmann
>Release:        FreeBSD 10-CURRENT/amd64/ PostgreSQL 9.2
>Organization:
FU Berlin
>Environment:
>Description:
Access to OwnCloud database fails due to error when accessing as administrator for setup after the init.

ERROR:  null value in column "configvalue" violates not-null constraint
DETAIL:  Failing row contains (media, types, null).
STATEMENT:  EXECUTE mdb2_statement_pgsql_29ec56d7cde1fee874b7ff78a6195243184b0f53fa ('media', 'types', NULL)
ERROR:  null value in column "configvalue" violates not-null constraint
DETAIL:  Failing row contains (files_odfviewer, types, null).
STATEMENT:  EXECUTE mdb2_statement_pgsql_51849c6c9f3a5b3a7d9209346306001a913f640a61 ('files_odfviewer', 'types', NULL)
ERROR:  null value in column "configvalue" violates not-null constraint
DETAIL:  Failing row contains (gallery, types, null).
STATEMENT:  EXECUTE mdb2_statement_pgsql_60a4404ca1f4978bddb500cf1f202bc57d5108ab7f ('gallery', 'types', NULL)
ERROR:  null value in column "configvalue" violates not-null constraint
DETAIL:  Failing row contains (user_migrate, types, null).
STATEMENT:  EXECUTE mdb2_statement_pgsql_684eb6d98018c5f7b22c680ca6e07fafbbbc0ca58b ('user_migrate', 'types', NULL)
ERROR:  null value in column "configvalue" violates not-null constraint
DETAIL:  Failing row contains (files_texteditor, types, null).
STATEMENT:  EXECUTE mdb2_statement_pgsql_8604967b354f049139728e81cb1fa1b871d83c53ea ('files_texteditor', 'types', NULL)
ERROR:  null value in column "configvalue" violates not-null constraint
DETAIL:  Failing row contains (calendar, types, null).
STATEMENT:  EXECUTE mdb2_statement_pgsql_101999cbbf3ced6541345d58f37c2502522b2d5a79 ('calendar', 'types', NULL)
ERROR:  null value in column "configvalue" violates not-null constraint
DETAIL:  Failing row contains (files_pdfviewer, types, null).
STATEMENT:  EXECUTE mdb2_statement_pgsql_108b2cf3751ec4926f0c5de7fbd7aa236ed5f27df2 ('files_pdfviewer', 'types', NULL)
ERROR:  null value in column "configvalue" violates not-null constraint
DETAIL:  Failing row contains (admin_migrate, types, null).
STATEMENT:  EXECUTE mdb2_statement_pgsql_130fe2f226dfebc2cc86146ad47da26aac93148b25 ('admin_migrate', 'types', NULL)
ERROR:  null value in column "configvalue" violates not-null constraint
DETAIL:  Failing row contains (contacts, types, null).
STATEMENT:  EXECUTE mdb2_statement_pgsql_1452fba8cc470345d6fd8b0ed3f7b91dc58d097466 ('contacts', 'types', NULL)
ERROR:  null value in column "configvalue" violates not-null constraint
DETAIL:  Failing row contains (files_imageviewer, types, null).
STATEMENT:  EXECUTE mdb2_statement_pgsql_152ba051fdf5c90982836f4d7bf69e99d5c1d4b50c ('files_imageviewer', 'types', NULL)

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kevlo 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Jan 26 09:50:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175602 
State-Changed-From-To: open->closed 
State-Changed-By: kevlo 
State-Changed-When: Sat Feb 16 07:44:45 UTC 2013 
State-Changed-Why:  
Fixed in 4.5.6. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175602 

From: David Gessel <gessel@blackrosetech.com>
To: bug-followup@FreeBSD.org, ohartman@zedat.fu-berlin.de
Cc:  
Subject: Re: ports/175602: www/owncloud:  ERROR:  null value in column &quot;configvalue&quot;
 violates not-null constraint
Date: Fri, 22 Feb 2013 18:22:00 +0300

 Initial setup, login, set db config to existing database, user, pass, 
 attempt to log in to admin account, screen returns to login, the 
 following errors appear in /var/log/messages:
 
 Feb 21 20:24:49 boxen postgres[25360]: [2-1] ERROR:  null value in 
 column "configvalue" violates not-null constraint
 Feb 21 20:24:49 boxen postgres[25360]: [2-2] STATEMENT:  EXECUTE 
 mdb2_statement_pgsql_300ed37956fb15e38fa5025721c475ce2ba54cc2d1 
 ('media', 'types', NULL)
 Feb 21 20:24:49 boxen postgres[25360]: [3-1] ERROR:  null value in 
 column "configvalue" violates not-null constraint
 Feb 21 20:24:49 boxen postgres[25360]: [3-2] STATEMENT:  EXECUTE 
 mdb2_statement_pgsql_370044314f155169757e69890d5be3d6f5359db93f 
 ('files_imageviewer', 'types', NULL)
 Feb 21 20:24:50 boxen postgres[25360]: [4-1] ERROR:  null value in 
 column "configvalue" violates not-null constraint
 Feb 21 20:24:50 boxen postgres[25360]: [4-2] STATEMENT:  EXECUTE 
 mdb2_statement_pgsql_48dca1f469419aa6a4f7e1d70f6d06c69af0a8581b 
 ('contacts', 'types', NULL)
 Feb 21 20:24:50 boxen postgres[25360]: [5-1] ERROR:  null value in 
 column "configvalue" violates not-null constraint
 Feb 21 20:24:50 boxen postgres[25360]: [5-2] STATEMENT:  EXECUTE 
 mdb2_statement_pgsql_555b259d39c92b1493e180fdd58ddffbe7eb905f81 
 ('user_migrate', 'types', NULL)
 Feb 21 20:24:50 boxen postgres[25360]: [6-1] ERROR:  null value in 
 column "configvalue" violates not-null constraint
 Feb 21 20:24:50 boxen postgres[25360]: [6-2] STATEMENT:  EXECUTE 
 mdb2_statement_pgsql_85fedcc37df28bf2cca01b3f881048ead49f74ce1f 
 ('files_odfviewer', 'types', NULL)
 Feb 21 20:24:50 boxen postgres[25360]: [7-1] ERROR:  null value in 
 column "configvalue" violates not-null constraint
 Feb 21 20:24:50 boxen postgres[25360]: [7-2] STATEMENT:  EXECUTE 
 mdb2_statement_pgsql_93a7b243dc096eaee0c3569e74278a522eb87301eb 
 ('files_texteditor', 'types', NULL)
 Feb 21 20:24:50 boxen postgres[25360]: [8-1] ERROR:  null value in 
 column "configvalue" violates not-null constraint
 Feb 21 20:24:50 boxen postgres[25360]: [8-2] STATEMENT:  EXECUTE 
 mdb2_statement_pgsql_102a15fb102823eb4a33e4dc71e4c6d8127e139d50 
 ('gallery', 'types', NULL)
 Feb 21 20:24:50 boxen postgres[25360]: [9-1] ERROR:  null value in 
 column "configvalue" violates not-null constraint
 Feb 21 20:24:50 boxen postgres[25360]: [9-2] STATEMENT:  EXECUTE 
 mdb2_statement_pgsql_124ccd57636a8417088ee2a75e6b8fe78219a74f60 
 ('admin_migrate', 'types', NULL)
 Feb 21 20:24:50 boxen postgres[25360]: [10-1] ERROR:  null value in 
 column "configvalue" violates not-null constraint
 Feb 21 20:24:50 boxen postgres[25360]: [10-2] STATEMENT:  EXECUTE 
 mdb2_statement_pgsql_14062218ffdb9b7e6b8458d3e7432067c65ff01589 
 ('calendar', 'types', NULL)
 Feb 21 20:24:50 boxen postgres[25360]: [11-1] ERROR:  null value in 
 column "configvalue" violates not-null constraint
 Feb 21 20:24:50 boxen postgres[25360]: [11-2] STATEMENT:  EXECUTE 
 mdb2_statement_pgsql_149a8088b291e5c8c6cd612b7e3955b68734c6bd0a 
 ('files_pdfviewer', 'types', NULL)
 
 ...with
 
 owncloud-4.5.6
 postgresql-client-9.0.12
 postgresql-server-9.0.12
 FreeBSD 9.1-RELEASE
 
 I tried setting pg_hba.conf to "trust" and restarting postgresql, but to 
 no avail.
 
 
>Unformatted:
