Skip to content
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

Activity notification loop - an email sent to all every 30 minutes #1778

Closed
wherf opened this issue Oct 18, 2016 · 8 comments
Closed

Activity notification loop - an email sent to all every 30 minutes #1778

wherf opened this issue Oct 18, 2016 · 8 comments

Comments

@wherf
Copy link

wherf commented Oct 18, 2016

Steps to reproduce

1.The server is sending the activity email to all users every thirty minutes with the same content
2. This happened after a share to all was set at a top level folder and then a share to all was set on a sub-level folder. This possibly led to a loop

Expected behaviour

The activety email should only go out for new activities and not be repeated

Actual behaviour

The server is sending the activity email to all users every thirty minutes with teh same content

Server configuration

Operating system:
Ubuntu
Web server:
Apache
Database:

PHP version:

Nextcloud version: (see Nextcloud admin page)
10.0
Updated from an older Nextcloud/ownCloud or fresh install:
New install
Where did you install Nextcloud from:
Website
Signing status:

Signing status

Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.
No errors have been found.
</details>

**List of activated apps:**
<details>
<summary>App list</summary>

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

</details>

**The content of config/config.php:**
<details>
<summary>Config report</summary>

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or

Insert your config.php content here
(Without the database password, passwordsalt and secret)

</details>

**Are you using external storage, if yes which one:** local/smb/sftp/...

**Are you using encryption:** yes/no

**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...

#### LDAP configuration (delete this part if not used)
<details>
<summary>LDAP config</summary>

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM oc_appconfig WHERE appid = 'user_ldap';

Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

</details>

### Client configuration
**Browser:**

**Operating system:**

### Logs
#### Web server error log
<details>
<summary>Web server error log</summary>

Insert your webserver log here

</details>

#### Nextcloud log (data/nextcloud.log)
<details>
<summary>Nextcloud log</summary>

Insert your Nextcloud log here

</details>

#### Browser log
<details>
<summary>Browser log</summary>

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

</details>
@nickvergessen
Copy link
Member

Duplicate of #1716

@wherf
Copy link
Author

wherf commented Oct 18, 2016

Have to disagree, ist differennt to 1716 -

please look at owncloud/core#26369

Mine has nothing to do with the cronjob, and I am getting lots of error with write access

@nickvergessen
Copy link
Member

The fix should still work

@wherf
Copy link
Author

wherf commented Oct 19, 2016

I checked the cron job with -l

its reply is

*/15 *   *             *             *             php -f /var/www/nextcloud/cron.php >             /dev/null            2>&1

The log is being filled with this single error all the time, Ist now already 2GB big

See next post

@nickvergessen nickvergessen reopened this Oct 19, 2016
@nickvergessen
Copy link
Member

Log

{
    "reqId": "Xm6ZX2+PMzEzdr5pdsGr",
    "remoteAddr": "91.64.60.106",
    "app": "no app in context",
    "message": {
        "Exception": {
            "Exception": "OCP\Files\NotFoundException",
            "Message": "",
            "Code": 0,
            "Trace": {
                "#0": [
                    "/var/www/nextcloud/lib/private/Share20/DefaultShareProvider.php(437):",
                    "OC\Share20\Share->getNode()"
                ],
                "#1": [
                    "/var/www/nextcloud/lib/private/Share20/Manager.php(878): OC\Share20\DefaultShareProvider->move(Object(OC\Share20\Share), 'Intranet')",
                    null
                ],
                "#2": [
                    "/var/www/nextcloud/apps/files_sharing/lib/SharedMount.php(120): OC\Share20\Manager->moveShare(Object(OC\Share20\Share), 'Intranet')",
                    null
                ],
                "#3": [
                    "/var/www/nextcloud/apps/files_sharing/lib/SharedMount.php(102): OCA\Files_Sharing\SharedMount->updateFileTarget('/Klasse 2010 (2...', Object(OC\Share20\Share))",
                    null
                ],
                "#4": [
                    "/var/www/nextcloud/apps/files_sharing/lib/SharedMount.php(73): OCA\Files_Sharing\SharedMount->verifyMountPoint(Object(OC\Share20\Share), Array)",
                    null
                ],
                "#5": [
                    "/var/www/nextcloud/apps/files_sharing/lib/MountProvider.php(91): OCA\Files_Sharing\SharedMount->__construct('\\OC\\Files\\Stora...', Array, Array, Object(OC\Files\Storage\StorageFactory))",
                    null
                ],
                "#6": [
                    "/var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php(77): OCA\Files_Sharing\MountProvider->getMountsForUser(Object(OC\User\User), Object(OC\Files\Storage\StorageFactory))",
                    null
                ],
                "#7": [
                    "[internal function]: OC\Files\Config\MountProviderCollection->OC\Files\Config\{closure}(Object(OCA\Files_Sharing\MountProvider))",
                    null
                ],
                "#8": [
                    "/var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php(78): array_map(Object(Closure), Array)",
                    null
                ],
                "#9": [
                    "/var/www/nextcloud/lib/private/Files/Filesystem.php(423):",
                    "OC\Files\Config\MountProviderCollection->getMountsForUser(Object(OC\User\User))"
                ],
                "#10": [
                    "/var/www/nextcloud/lib/private/Files/Filesystem.php(371):",
                    "OC\Files\Filesystem::initMountPoints('Intranet')"
                ],
                "#11": [
                    "/var/www/nextcloud/lib/private/legacy/util.php(227): OC\Files\Filesystem::init('Intranet', '/Intranet/files')",
                    null
                ],
                "#12": [
                    "/var/www/nextcloud/lib/private/legacy/api.php(353):",
                    "OC_Util::setupFS('Intranet')"
                ],
                "#13": [
                    "/var/www/nextcloud/lib/private/legacy/api.php(300):",
                    "OC_API::loginUser()"
                ],
                "#14": [
                    "/var/www/nextcloud/lib/private/legacy/api.php(159):",
                    "OC_API::isAuthorised(Array)"
                ],
                "#15": [
                    "[internal function]: OC_API::call(Array)",
                    null
                ],
                "#16": [
                    "/var/www/nextcloud/lib/private/Route/Router.php(293): call_user_func(Array, Array)",
                    null
                ],
                "#17": [
                    "/var/www/nextcloud/ocs/v1.php(61):",
                    "OC\Route\Router->match('/ocs/apps/files...')"
                ],
                "#18": [
                    "/var/www/nextcloud/ocs/v2.php(23):",
                    "require_once('/var/www/nextcl...')"
                ],
                "#19": [
                    "{main}",
                    null
                ]
            },
            "File": "/var/www/nextcloud/lib/private/Share20/Share.php",
            "Line": 163
        }
    },
    "level": 3,
    "time": "2016-09-07T16:14:57+00:00",
    "method": "PUT",
    "url": "/ocs/v2.php/apps/files_sharing/api/v1/shares/83?format=json",
    "user": "Intranet"
}

@nickvergessen
Copy link
Member

Well the log is certainly unrelated, but also something you should look into.

@wherf
Copy link
Author

wherf commented Oct 19, 2016

I used webmin to clear the activity_mq table, seems that now the email loop has stopped. I have now eneterd a new activity, and will see if the emails only get sent once.

Will make a new issue for the OCP\Files\NotFoundException error

Von: Joas Schilling [mailto:notifications@github.com]
Gesendet: Mittwoch, 19. Oktober 2016 08:55
An: nextcloud/server
Cc: Wolf Dieter Herf; Author
Betreff: Re: [nextcloud/server] Activity notification loop - an email sent to all every 30 minutes (#1778)

Well the log is certainly unrelated, but also something you should look into.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/1778#issuecomment-254727460, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVwmIvfEZDTwUO90PjkVcFHH-Hv3qz3lks5q1b7egaJpZM4KZo5b.

@nickvergessen
Copy link
Member

Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants