Program that still tries to connect to NC after password change?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version: 20.0.11
Operating system and version: Fedora 33 KDE < uname -a
Apache version: Apache/2.4.48 (Fedora)
PHP version: 7.4.20

The issue you are facing:
After password change I don’t know which client process on my computer still tries to connect to the server with my old password.
Or who else does.
As a result, there is roughly one unsuccessful login attempt per minute which fills the oc_bruteforce_attempts list and eventually leads to me not be able to login to NC via Web interface.
I know that the requests are coming from my computer when I am logged in only.
Not when someone else is logged in.
Could you please support me by giving hint on:
How may I find out the program / process that causes the unsuccessful login attempts?

Is this the first time you’ve seen this error?: Y

Steps to replicate it:

  1. Change password of a user in NC
  2. Update all clients you know of to the new password
  3. Be unable to find out which client still tries to connect

The output of your Nextcloud log in Admin > Logging:

Warning	core	Login failed: 'ubuntiger' (Remote IP: '192.168.77.86')	2021-07-08T21:15:06+0200
Warning	core	Login failed: 'ubuntiger' (Remote IP: '192.168.77.86')	2021-07-08T21:14:41+0200
Warning	core	Login failed: 'ubuntiger' (Remote IP: '192.168.77.86')	2021-07-08T21:14:06+0200
Warning	core	Login failed: 'ubuntiger' (Remote IP: '192.168.77.86')	2021-07-08T21:13:41+0200
MariaDB [nextwinn]> select * from oc_bruteforce_attempts;
+------+--------+------------+---------------+------------------+----------------------+
| id   | action | occurred   | ip            | subnet           | metadata             |
+------+--------+------------+---------------+------------------+----------------------+
| 5463 | login  | 1625770756 | 192.168.77.86 | 192.168.77.86/32 | {"user":"ubuntiger"} |
| 5464 | login  | 1625770757 | 192.168.77.86 | 192.168.77.86/32 | {"user":"ubuntiger"} |
| 5465 | login  | 1625770816 | 192.168.77.86 | 192.168.77.86/32 | {"user":"ubuntiger"} |

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

config.php
<?php
$CONFIG = array (
  'passwordsalt' => 'SKHTh[...]',
  'secret' => 'NkZ2[...]',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'winn',
    2 => 'winn.fritz.box',
    3 => '192.168.77.86',
    4 => 'my.domain.tld',
    5 => 'www.my.domain.tld',
  ),
  'datadirectory' => '/next',
  'overwrite.cli.url' => 'http://localhost',
  'dbtype' => 'mysql',
  'version' => '20.0.11.1',
  'dbname' => 'nextwinn',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_admin',
  'dbpassword' => 't/cBDy7E[...]',
  'htaccess.RewriteBase' => '/',
  'installed' => true,
  'instanceid' => 'ocg2jd[...]',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'maintenance' => false,
  'share_folder' => '/Nextcloud/Eingang',
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'mail_domain' => '[...]',
  'mail_from_address' => '[...]',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtphost' => '[...]',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '[...]',
  'mail_smtppassword' => '[...]',
  'updater.secret' => '$2y$[...]',
  'app_install_overwrite' => 
  array (
    0 => 'ocsms',
    1 => 'fullnextsearch_elasticsearch',
    2 => 'dicomviewer',
    3 => 'social',
    4 => 'files_ebookreader',
    5 => 'keeporsweep',
    6 => 'calendar',
    7 => 'emlviewer',
    8 => 'gpxedit',
    9 => 'folderplayer',
  ),
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);

The output of your Apache log in /var/log/httpd:

http_error_log
[Thu Jul 08 19:52:27.274164 2021] [authz_core:error] [pid 1542:tid 1750] [client 213.6.137.198:33795] AH01630: client denied by server configuration: /etc/httpd/htdocs
[Thu Jul 08 20:41:07.675498 2021] [authz_core:error] [pid 22397:tid 22445] [client 83.41.123.192:49716] AH01630: client denied by server configuration: /etc/httpd/htdocs
[Thu Jul 08 20:55:11.558490 2021] [authz_core:error] [pid 22397:tid 22450] [client 84.241.15.182:46262] AH01630: client denied by server configuration: /etc/httpd/htdocs

ssl_error_log
[Thu Jul 08 20:54:53.414804 2021] [access_compat:error] [pid 1542:tid 1740] [client 192.168.77.86:55548] AH01797: client denied by server configuration: /var/www/nextcloud/config
[Thu Jul 08 20:54:53.438118 2021] [access_compat:error] [pid 1542:tid 1751] [client 192.168.77.86:55550] AH01797: client denied by server configuration: /var/www/nextcloud/config
[Thu Jul 08 20:54:53.460016 2021] [access_compat:error] [pid 1542:tid 1752] [client 192.168.77.86:55554] AH01797: client denied by server configuration: /var/www/nextcloud/config

Does anyone have an idea how to find out which program or process tries to log into my nextcloud (knowing which IP the login attempt comes from does not bring me further - I know it already, it is my machine and it is the machine where nextcloud is running on as well… )?

The web server access log normally shows the user agent:
https://httpd.apache.org/docs/2.4/logs.html#accesslog

Thanks for the hint!
I had to uncomment the log first,
<VirtualHost _default_:443>
CustomLog "logs/my_access_log" combined
[...]
</VirtualHost>
in /etc/httpd/conf.d/ssl.conf
which finally reminded me of the NC bookmarks synchronization add-on for firefox named floccus I had installed long ago by multiple times printing lines like that:
192.168.77.86 - - [14/Jul/2021:00:44:12 +0200] "GET /index.php/apps/bookmarks/public/rest/v2/folder/-1/hash HTTP/1.1" 400 49 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0"
A user was not displayed after the IP, unfortunately, but anyhow:
After finally changing the password for my NC account inside the floccus add-on as well, the problem was gone!