-
Notifications
You must be signed in to change notification settings - Fork 52
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
Installation error for Nextcloud 20.0.2 #329
Comments
I am having exactly the same symptoms. This looks like it might be responsible for creating the DB: |
I have tricked this into working by saving https://github.com/nextcloud/ocsms/raw/2.0.0/appinfo/database.xml to apps/ocsms/appinfo then enabling the app. This created the database. |
[SOLVED] Thank you @troffasky . The database.xml solved this issue. Everything now works perfectly. |
[SOLVED] with database.xml . THX. |
Just like to point out that that is a workaround, not a solution. I'm getting the same problem with NextCloud 20.0.4 running on Ubuntu 20.0.4 Could we maybe get a change to the installer that verifies the download of that file? |
The database.xml file was deprecated and replaced by the new Database Migrations required for newer Nextcloud releases. But Nextcloud also enforces a limit of table and index name lengths which requires shortening of these names. This is no problem for new installations, but older legacy installations need to rename the affected tables. Currently it is not implemented to be done automatically by this app.
|
Ah, so this app is broken for installation on current releases on NextCloud due to this issue until a new release of this app is put out? I'm new to the NextCloud infrastructure. How would I go about installing from a local clone of the repo? |
newest release of ocsms 2.2.0 was supposed to "Migrate from database.xml to the new database migration" but somehow I am getting the same error of this thread so if you download the database.xml file (as proposed here) as workaround it will not work on this specific version 2.2.0 because it was supposed to get rid of this file one quick and dirty workaround I found was to
I have not tried to update to latest version 2.2.0 at this stage, anyone brave to test it and report here? |
Update done to 2.2.0 and everything works fine after the update. I confirm the workaround above to first install 2.1.9 and then upgrade to 2.2.0 is acceptable. |
thank you @drdetergent ! |
Thanks @drdetergent but unfortunately, this workaround does not always work around. I just followed your procedure on a fresh install, but Nextcloud insisted on upgrading the app afterwards, and then pronounced it incompatible. Screenshots follow. |
That is interesting, but from what I see you are upgrading to NextCloud 21 and ocsms blocks the upgrade because it is not officially compatible with the target version 21. Try this:
Good luck and keep us updated, we will help you : ) |
As a matter of fact, I was not doing an upgrade. I have no explanation for why Nextcloud did what it appeared to do here. This is all occurring on a fresh install of NC 21. Thanks. |
I see the most recent update of Nextcloud is 21.0.1, try to
|
confirmed that there is no version of ocsms available for nextcloud 21 so everything is fine (unfortunately), no way to use it with your version |
For the sake of posterity: I followed below steps in latest 22.3.0 version:
p.s. - I apologize to add comments on this already closed issue, however if these steps helpeds some-one, it worth my time spent :) |
Thanks all ! Great and working (today) with NextCloud 23.0.3... Here some quick notes of what I have done on my docker install of NextCloud to enable and use OCSMS 2.2.0 ! from NC root folder of NextCloud container MYSQL DATABASES
MYSQL INDEXES
INSTALL OCSMS APP
ACTIVATE OCSMS APP
INSTALL OCSMS APP
PATCH OCSMS APP from #340
NAVIGATE TO NEXTCLOUD/SMSINSTALL APK from FDROID with disabling APK INCOMPATIBILITY mode (from nerzhul/ncsms-android#232 (comment)) Add a ocsms account Try to synchronise and accept necessary privileges ENJOY... EDITED:
These are correct!
ADDED a topic to here : https://help.nextcloud.com/t/nc-23-android-11/137488 |
Would it be possible for you to translate the mysql commands to postgresql? (The only difference I see is that the datatypes need to be spelled in all caps, but I'm not super familiar with sql at this level, hence why I'm asking.) Either way, thanks for putting all this together. :) |
Hi, PostgreSQL DATABASES
PostgreSQL INDEXES
|
Steps to reproduce
Expected behaviour
I have never seen the app running.
I am expecting an empty message view, as there was no sync so far.
Actual behaviour
When accessing the Phone Sync app as a regular user I do see "Internal Server Error".
Logs shows errors, below.
Next as an admin, I disabled and removed the Phone Sync and then was trying to install it again. Now, it was impossible. I have got:
"
An error occured during the request. Unable to proceed.
An exception occurred while executing 'SELECT
user_id
,datakey
,datavalue
FROMoc_ocsms_user_datas
WHEREdatakey
LIKE ?' with params ["lastReadDate-%"]: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_ocsms_user_datas' doesn't exist"
Server configuration
Nextcloud/ownCloud version:
20.0.2
PHP version:
7.4.3
HTTPd server:
apache2 2.4.41-4ubuntu3.1
Database engine & version:
ubuntu package: mysql-common 5.8+1.0.5ubuntu2
mysql --version: mysql Ver 15.1 Distrib 10.3.25-MariaDB
Client configuration
Android version:
Phone:
Nextcloud SMS app version:
Logs
The text was updated successfully, but these errors were encountered: