nextcloud / social

🎉 Social can be used for work, or to connect to the fediverse!
https://apps.nextcloud.com/apps/social
GNU Affero General Public License v3.0
490 stars 59 forks source link

Can't install on AIO 4.6.2 (NC 25.0.4): An error occurred during the request. Unable to proceed. #1703

Closed Moonbase59 closed 1 year ago

Moonbase59 commented 1 year ago

Describe the bug Tried to install "Social" on AIO (NC 25.0.4) but it fails with above error. Upon closer inspection, it tries to download and install version 0.4.2 which is supposed to be for NC 21, according to the web page. It should install 0.6.0-beta5 instead.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Apps'
  2. Click on 'Social → Download and Enable'
  3. Error shown at top right of screen.

Expected behavior Offer the latest version to go with my instance, and install it.

Screenshots

Client details:

Server details **Social app version:** **Operating system**: **Web server:** **Database:** **PHP version:** **Nextcloud version:** (see Nextcloud admin page) 25.0.4
Logs #### Nextcloud log (data/nextcloud.log) ``` Insert your Nextcloud log here ``` #### Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
danielromney commented 1 year ago

Same issue here. Same steps as above to repeat Initial error seen in the UI: An error occurred during the request. Unable to proceed.

Log [index] Error: Exception: Undefined constant Doctrine\DBAL\Types\Type::TEXT in file '/var/www/html/custom_apps/social/lib/Migration/Version0003Date20200611000001.php' line 228 at <>

  1. /var/www/html/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch(["OCA\Settings\ ... "], "enableApps")
  2. /var/www/html/lib/private/Route/Router.php line 315 OC\AppFramework\App::main("OCA\Settings\ ... r", "enableApps", ["OC\AppFramewo ... "], ["settings.AppSettings.enableApps"])
  3. /var/www/html/lib/base.php line 1055 OC\Route\Router->match("/settings/apps/enable")
  4. /var/www/html/index.php line 36 OC::handleRequest()

Caused by:

Error: Undefined constant Doctrine\DBAL\Types\Type::TEXT at <>

  1. /var/www/html/custom_apps/social/lib/Migration/Version0003Date20200611000001.php line 76 OCA\Social\Migration\Version0003Date20200611000001->createActors(" sensitive parameters replaced ")
  2. /var/www/html/lib/private/DB/MigrationService.php line 446 OCA\Social\Migration\Version0003Date20200611000001->changeSchema(["OC\Migration\SimpleOutput"], ["Closure"], ["oc_"])
  3. /var/www/html/lib/private/DB/MigrationService.php line 409 OC\DB\MigrationService->migrateSchemaOnly("latest")
  4. /var/www/html/lib/private/Installer.php line 153 OC\DB\MigrationService->migrate("latest", true)
  5. /var/www/html/apps/settings/lib/Controller/AppSettingsController.php line 451 OC\Installer->installApp("social")
  6. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\Settings\Controller\AppSettingsController->enableApps(["social"], [])
  7. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController(["OCA\Settings\ ... "], "enableApps")
  8. /var/www/html/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch(["OCA\Settings\ ... "], "enableApps")
  9. /var/www/html/lib/private/Route/Router.php line 315 OC\AppFramework\App::main("OCA\Settings\ ... r", "enableApps", ["OC\AppFramewo ... "], ["settings.AppSettings.enableApps"])
  10. /var/www/html/lib/base.php line 1055 OC\Route\Router->match("/settings/apps/enable")
    1. /var/www/html/index.php line 36 OC::handleRequest()

POST /settings/apps/enable by danielromney at 2023-04-06T17:23:20+00:00

Server details

Deice Details

ArtificialOwl commented 1 year ago

is it 0.4.x or 0.6.x that is installed this way ?

danielromney commented 1 year ago

Appears to be 0.4.X version. When installing via the apps interface in nextcloud I am not seeing the 0.6.x version

On Thu, Apr 13, 2023 at 4:10 AM Maxence Lange @.***> wrote:

is it 0.4.x or 0.6.x that is installed this way ?

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/social/issues/1703#issuecomment-1506777888, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFN56QA77Q4NCP7NE4GBJTXA7NIZANCNFSM6AAAAAAWJL7IZ4 . You are receiving this because you commented.Message ID: @.***>

--

Daniel Romney Phone: 801-688-6482

srijansaxena11 commented 1 year ago

You need to change update channel to beta to get beta release version as updates. Since there is no stable update for the app after 0.4 for now therefore you are not getting any update.

image

You can close the issue after verifying.

danielromney commented 1 year ago

It did work updating to the beta channel. Now I am running into an issue with the "well-known" url stuff on my nextcloud instance. This isn't an issue with social. I didn't start this issue, so I can't make it as solved. Thank you for the response and solution.

srijansaxena11 commented 1 year ago

Now I am running into an issue with the "well-known" url stuff on my nextcloud instance.

Set your redirection rules for well-known error. https://help.nextcloud.com/t/netcloud-20-0-1-well-known-webfinger-and-well-known-nodeinfo-errors/113158

srijansaxena11 commented 1 year ago

@Moonbase59 requesting you to close the issue.

danielromney commented 1 year ago

I appreciate the suggestion but none of these work in my case. I have my nextcloud installed on TrueNas Scale and the nginx configuration file is not where all the suggestions say it is.

On Mon, Apr 17, 2023, 11:32 Srijan Saxena @.***> wrote:

Now I am running into an issue with the "well-known" url stuff on my nextcloud instance.

Set your redirection rules for well-known error. https://help.nextcloud.com/t/netcloud-20-0-1-well-known-webfinger-and-well-known-nodeinfo-errors/113158

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/social/issues/1703#issuecomment-1511790110, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFN56WB47VI4HBD7G4FVZ3XBV5DBANCNFSM6AAAAAAWJL7IZ4 . You are receiving this because you commented.Message ID: @.***>

srijansaxena11 commented 1 year ago

It has to be somewhere. Let me know if you can setup Social app properly. I am facing few issues and would love to have some help in resolving them.

Moonbase59 commented 1 year ago

~Using AIO 4.8.1, how can I change to the Beta channel?~ ~Is there a big risk of damaging anything working?~

Moonbase59 commented 1 year ago

So I did a backup and tried changing to the beta channel:

What is wrong?

szaimen commented 1 year ago

What is wrong?

You should use this command to switch Nextcloud in AIO to the beta channel: sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:set updater.release.channel --value=beta

szaimen commented 1 year ago

However better would be something like sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ app:install social --allow-unstable --force

Moonbase59 commented 1 year ago

@szaimen Thanks for the help! I used the latter command and got Social 0.6.0-rc2 installed.

Upon following Nextcloud (the initial suggestion), it showed an error message like "unable to follow …" but actually now shows Nextcloud as being followed.

I’m now desperately looking for a means to follow others and can’t find any menu or docs on that. Say I wanted to follow @matthias@blog.syvi.net or @tech-snippets@blog.syvi.net, how would I do that?

Moonbase59 commented 1 year ago

Ok, I think I found it: One has to use search. For some reason this didn’t work with my writefreely accounts shown above but it works with other instances like @AzuraCast@fosstodon.org.

srijansaxena11 commented 1 year ago

@Moonbase59 can you close the issue now

Moonbase59 commented 1 year ago

Yep, thanks for the reminder. I still wonder why following writefreely instances doesn’t work, but that’s another issue.