Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W2G2 update problem #9193

Closed
sbrodriguez opened this issue Apr 15, 2018 · 7 comments
Closed

W2G2 update problem #9193

sbrodriguez opened this issue Apr 15, 2018 · 7 comments

Comments

@sbrodriguez
Copy link

Hello everybody.

I have updated some plugins and the W2G2 chrased showing the next message:

Preparing update
Set log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'CREATE TABLE oc_locks_w2g2 (file_id BIGINT UNSIGNED NOT NULL, locked_by VARCHAR(255) NOT NULL, created DATETIME DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY(file_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_bin ENGINE = InnoDB': SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created'

Any idea?

regards

@ghost
Copy link

ghost commented Apr 15, 2018

Hey, I have the same problem :/ I hope it get fixed

@StuartJMackintosh
Copy link

I have what I believe is a related issue with the database during an upgrade.

After clicking on "Update" for the W2G2 app in the apps list, the Nextcloud server reported an error (which I did not capture). Following this, the server switched to upgrade mode and now presents the following message:

App update required
These apps will be updated:

    W2G2 (w2g2)

Please make sure that the database, the config folder and the data folder have been backed up before proceeding. 

When 'Start Upgrade' is pressed, the following message is displayed:


Update to 13.0.0

Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'DROP INDEX "primary"': SQLSTATE[42704]: Undefined object: 7 ERROR: index "primary" does not exist

Detailed logs

Preparing update
Set log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'DROP INDEX "primary"': SQLSTATE[42704]: Undefined object: 7 ERROR: index "primary" does not exist

I don't have access to the back-end server today so can't get any logs etc from the docker container.

The server is a demonstrator so it has not caused any operational impact for me but this would be a major issue for anyone experiencing this on a Nextcloud that they rely on as it rendered the server unusable.

@ghost
Copy link

ghost commented Apr 15, 2018

So do we need to wait for the fix?

@StuartJMackintosh
Copy link

The bug has not yet been assigned so we either wait for a generous developer to give up their Sunday time to take a look, or for someone who pays for a support contract to request that this is looked at.

You could try to reach out to someone on the forums and see if you can get help that way.

@StuartJMackintosh
Copy link

I did find a suggestion on the forum that might help of anyone is stuck:
sudo -u www-data php occ app:disable w2g2
I have not tried it myself.

@ghost
Copy link

ghost commented Apr 16, 2018

This will not work with a webspace

@MorrisJobke
Copy link
Member

Please report this in the W2G2 issue tracker: https://github.com/newroco/W2G2/issues

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants