-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
The "unique" column option is not supported #541
Comments
I get the same error with MariaDB 10.5.9 with a fresh install. When trying to enable Maps it fails with this error message. |
Just installed the latest version of Nextcloud (21.0.0) using SQLite and I get the same error when I try to enable the app. |
Same. Nextcloud 21 and MariaDB. |
Same with Nextcloud 21.0.0.18 and MySQL 8 |
Just got this, editted /var/www/nextcloud/apps/maps/lib/Migration/Version000009Date20190625000800.php and removed the two lines (45 & 50) containing 'unique' => true, Now works, gave an sql error when first enabled but seems to be working now it's analysing photos. |
Yeah this may be a hotfix but no long-term solution, I dont want to have to temper with the files. That should be getting fixed by nextcloud/contributors for this app. |
Here is the nextcloud server issue: It's broken for more apps. |
On a pretty new install of nextcloud 21, I was able to edit the migration script as suggested to remove the unique elements. This allowed me to install maps. However, while I can now browse to the maps app, nothing loads, and the logs show:
Is there a way to re-run the table creation scripts? |
On Wed, Mar 10, 2021 at 11:17:29PM -0800, Christian McHugh wrote:
On a pretty new install of nextcloud 21, I was able to edit the migration script as suggested to remove the unique elements. This allowed me to install maps. However, while I can now browse to the maps app, nothing loads, and the logs show:
```
Doctrine\DBAL\Exception\TableNotFoundException: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_maps_tracks' doesn't exist
Doctrine\DBAL\Exception\TableNotFoundException: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_maps_favorite_shares' doesn't exist
Doctrine\DBAL\Exception\TableNotFoundException: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_maps_favorites' doesn't exist
```
Is there a way to re-run the table creation scripts?
Yes, using the occ utility in your Nextcloud directory.
occ migrations:execute maps <name>
The names of the migrations can be found in any app's lib/Migration directory,
but leave out the leading Version, and ending .php parts.
If Nextcloud complains they already ran, you can find the migration history in
the oc_migrations table in your database. Keep in mind that manually altering
records in this table might have unintended consequences. Ensure you have a
suitable backup before hacking around.
…--
With kind regards,
Patrick Spek
www: https://www.tyil.nl/
mail: ***@***.***
pgp: 1660 F6A2 DFA7 5347 322A 4DC0 7A6A C285 E2D9 8827
git: https://git.tyil.nl/
|
nextcloud 21 with mariadb fresh install same error here!. |
I tried removing the
|
@Tyil I apologize if this is an obvious question, but I'm new to NextCloud and I don't have any context. Does this occ utility need to be run in a terminal via ssh? I'm not sure if my provider gives me ssh access. |
Nextcloud 21 with MySQL8, same problem. |
The same issue arises with Postgres on Nextcloud 21. |
Signed-off-by: Julien Veyssier <[email protected]>
Test of #568 are welcome. |
After del this line 45&50, i got another error. Update: Update 2: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_maps_photos' doesn't exist In Exception.php line 26: In Statement.php line 82: |
Just testet it. Still not working. |
Very Nice!
Another Bug? |
Probably you mean #543, or something else? |
Yes, Thank you very Much! Now it works :) |
Same issue, latest nextcloud with mariadb. |
you can test the nightly or try this to fix it shortly. I used webmin to edit the DB |
Same issue. Nextcloud 21.0.0 and Mysql 8 It might worth considering removing a completely broken app from featured. Fortunately this worked: 1.) #541 (comment) |
didnt work : |
same error here with 21.0.1 on apache2 with mariadb v10.5.9 and php7.4 |
same here. Using 21.0.0.1 with mariadb 10.3 |
As stated here, the nextcloud server will not support unique in the same way anymore. So the only hope is someone fixing it in the maps-app. |
Same issue, fresh nextcloud and mariadb install running in docker/unraid |
Same issue. This app is one of the main reasons I use NC, but I can't install it. 😭 |
Same issue, using PostgreSQL 12.2. I'd like to point out that I just installed maps for the first time today, so it doesn't seem like the February patch fixed this for me. What exactly causes this to be an issue for me if I haven't used Maps before? |
Same issue on PostgreSQL 13… |
I manually installed the Manually installing apps is not ideal. We have the option to choose Nextcloud channels (stable, daily beta, production); we should similarly have the option to allow installing nighty (beta) app versions. Please thumbs up the relevant issue: nextcloud/server#10487 |
Worked for me too on a clean NextcloudVM running NC 21.0.1. Thanks! |
Just installed the nightly build of Nextcloud/Maps manually and it worked like a charm. My steps where
EDIT: |
Confirmed, thanks |
I did not have to drop anything from the Database, enabled via occ after editing files. |
With Nextcloud 21.0.2.1 and a fresh installation of Maps 0.1.8 (never installed/enabled before) this error also happens at installation time. Given that a fix has been integrated already if I read this issue correctly, what is stopping you from releasing the new version now? |
Confirmed as well, running NextCloud 21.0.2 with MariaDB 10.3.28 on CentOS 8 with php74-fpm |
I just started NextCloud a week ago, and found this issue recently. Thus, do you guys know how long it takes to be stabilized? I'm planning to download 0.1.9 when it becomes stable, but I'm not sure how long should I wait for. |
I can confirm 0.1.9 works quite well, at least for those never have used it before. Just downloaded and copied it into the |
same error here on postgresql 13 |
I think that I may have a solution to this issue; cd to /var/www/nextcloud/apps/maps/lib/Migration and move all *.php files to somewhere for safekeeping. The directory should now be empty, then install the app again. It should install and act properly now. Thanks. |
I would summarize that #568 fixes this issue. |
Error: Doctrine\DBAL\Schema\Exception\UnknownColumnOption: The "unique" column option is not supported.
details
``` 0. /var/www/html/3rdparty/doctrine/dbal/src/Schema/Column.php line 84 Doctrine\DBAL\Schema\Exception\UnknownColumnOption::new("unique") 1. /var/www/html/3rdparty/doctrine/dbal/src/Schema/Column.php line 68 Doctrine\DBAL\Schema\Column->setOptions({notnull: true,length: 255,unique: true}) 2. /var/www/html/3rdparty/doctrine/dbal/src/Schema/Table.php line 355 Doctrine\DBAL\Schema\Column->__construct("adr", Doctrine\DBAL\Types\StringType {}, {notnull: true,length: 255,unique: true}) 3. /var/www/html/custom_apps/maps/lib/Migration/Version000009Date20190625000800.php line 43 Doctrine\DBAL\Schema\Table->addColumn("adr", "string", {notnull: true,length: 255,unique: true}) 4. /var/www/html/lib/private/DB/MigrationService.php line 455 OCA\Maps\Migration\Version000009Date20190625000800->changeSchema(OC\Migration\SimpleOutput {}, Closure {}, {tablePrefix: "oc_"}) 5. /var/www/html/lib/private/DB/MigrationService.php line 418 OC\DB\MigrationService->migrateSchemaOnly("latest") 6. /var/www/html/lib/private/Installer.php line 163 OC\DB\MigrationService->migrate("latest", true) 7. /var/www/html/apps/settings/lib/Controller/AppSettingsController.php line 448 OC\Installer->installApp("maps") 8. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 218 OCA\Settings\Controller\AppSettingsController->enableApps(["maps"], []) 9. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 127 OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con ... {}, "enableApps") 10. /var/www/html/lib/private/AppFramework/App.php line 157 OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con ... {}, "enableApps") 11. /var/www/html/lib/private/Route/Router.php line 302 OC\AppFramework\App::main("OCA\\Settings\\ ... r", "enableApps", OC\AppFramework\ ... {}, {_route: "settin ... "}) 12. /var/www/html/lib/base.php line 993 OC\Route\Router->match("/settings/apps/enable") 13. /var/www/html/index.php line 37 OC::handleRequest() ```The text was updated successfully, but these errors were encountered: