I can use the web interface without any issues, but the desktop app can not connect

Hey Guys,

I can use the web interface without any issues, but the desktop app throws me following error,

Nextcloud Hub 4 (26.0.0):
Operating system and version CentOS Linux release 7.9.2009 (Core): replace me
Apache or nginx version (Apache/2.4.56):
PHP version (eg, 8.1):

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Whenever I try to connect to NextCloud Desktop App

The output of your Nextcloud log in Admin > Logging:

{"reqId":"ZCkKdmx-KBD-nXQ0pvbFAgAAAA0","level":3,"time":"2023-04-02T04:54:14+00:00","remoteAddr":"xx.xx.xx.xx","user":"Harry","app":"PHP","method":"GET","url":"/index.php/core/preview?fileId=148&x=250&y=250","message":"imagettftext(): any2eucjp(): invalid code in input string at /home/user/public_html/lib/private/Preview/MarkDown.php#124","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36","version":"26.0.0.11","data":{"app":"PHP"}}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => 'cloud.example.com',
  ),
  'datadirectory' => '/home/user/public_html/data',
  'dbtype' => 'mysql',
  'version' => '26.0.0.11',
  'overwrite.cli.url' => 'https://cloud.example.com',
  'dbname' => '',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => '',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'app_install_overwrite' =>
  array (
    0 => 'user_external',
  ),
);

The output of your Apache/nginx/system log in /var/log/____:

No error logs in apache

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

[no app in context] Warning: Login failed: admin (Remote IP: xx.xx.xx.xx)

POST /index.php/login
from xx.xx.xx.xx at 2023-04-02T13:51:19+00:00

No one to assist here? I’m still waiting for the valuable knowledge.

Regards.