Page MenuHomePhabricator

Can't create projects
Closed, InvalidPublic

Description

When creating a project, after updating today, several restarts, ( b10d128 Remove some unused properties), i'm receiving error

Unhandled Exception ("AphrontQueryException")
#1364: Field 'mailKey' doesn't have a default value

Looks like the mailKey hash is not created for the project, as the mailKey column in database has no default value.

Event Timeline

josetesan raised the priority of this task from to Needs Triage.
josetesan updated the task description. (Show Details)
josetesan added a project: Aphront.
josetesan added a subscriber: josetesan.

I can not reproduce this.

Screen Shot 2015-06-17 at 5.13.15 AM.png (1×2 px, 421 KB)

Here's what I did: ProjectsCreate Project. Then I entered a project name and description and pressed the "Save" button.

We initialize the mail key before writing projects to the database:

https://secure.phabricator.com/diffusion/P/browse/master/src/applications/project/storage/PhabricatorProject.php;b10d128c598ca0bd9577491cd14e043b49bb4144$277-280

The database shows the key initializing correctly:

mysql> select * from project order by id desc limit 1\G
*************************** 1. row ***************************
                id: 13
              name: New Project to Test T8582
              phid: PHID-PROJ-tizbh7twbfxen7flf2c2
        authorPHID: PHID-USER-cvfydnwadpdj7vdon36z
       dateCreated: 1434543192
      dateModified: 1434543192
            status: 0
   subprojectPHIDs: []
     phrictionSlug: new_project_to_test_t8582/
        viewPolicy: users
        editPolicy: users
        joinPolicy: users
isMembershipLocked: 0
  profileImagePHID: NULL
              icon: fa-briefcase
             color: blue
           mailKey: 7wcxghorz7xafb24f2wa
1 row in set (0.00 sec)

i had a lot of projects created before, but starting from today's update, can't create anymore.
And yes, i checked and had exactly the same code .

Is there any way i can turn on debug logging ?

btrahan claimed this task.
btrahan added a subscriber: btrahan.

We haven't seen any more reports of this and can't reproduce it ourselves. Ergo, I think its something strange with your configuration, or perhaps some localized supernatural activity. Sorry we can't be more helpful, and please do re-open this is you have new insight as to software defect(s) we can fix here.