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

Admin e-mail check reports success (sending via PHP), but there's no sendmail binary #27401

Closed
PAStheLoD opened this issue Mar 16, 2017 · 2 comments
Labels

Comments

@PAStheLoD
Copy link

Server configuration

Operating system: Ubuntu 16.10 yakkety
Web server: nginx + php7.1-fpm
Database: mysql 5.7
PHP version: 7.1
ownCloud version: (see ownCloud admin page)

System Status
installed	true
maintenance	false
needsDbUpgrade	false
version	10.0.0.2
versionstring	10.0.0 alpha
edition	Community
productname	ownCloud

commit: a30a714

Updated from an older ownCloud or fresh install: upgraded from an older install

Where did you install ownCloud from: git

Signing status (ownCloud 9.0 and above):

# sudo -u owncloud -H php ./occ integrity:check-core && echo ok
ok

maybe it's another bug?

integrity checking disabled

there's no signature.json after all, since it's a direct checkout from github

List of activated apps:

Enabled:
  - comments: 0.3.0
  - dav: 0.2.8
  - federatedfilesharing: 0.3.0
  - federation: 0.1.0
  - files: 1.5.1
  - files_external: 0.7.0
  - files_sharing: 0.10.0
  - files_trashbin: 0.9.0
  - files_versions: 1.3.0
  - provisioning_api: 0.5.0
  - systemtags: 0.3.0
  - updatenotification: 0.2.1
Disabled:
  - encryption
  - example-theme
  - shorty
  - testing
  - user_browserid

The content of config/config.php:

{
    "system": {
        "instanceid": "515159e369f81",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "\/var\/www\/cloud.xxxxx.yyyyy\/data",
        "dbtype": "mysql",
        "version": "10.0.0.2",
        "installed": true,
        "forcessl": true,
        "maintenance": false,
        "theme": "",
        "trusted_domains": [
            "cloud.xxxxx.yyyyy"
        ],
        "secret": "***REMOVED SENSITIVE VALUE***",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 0,
        "trashbin_retention_obligation": "auto",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "\/var\/run\/redis\/redis.sock",
            "port": 0
        }
    }
}

Are you using encryption: no

Client configuration

Browser: Chrome

Operating system: Linux Ubuntu 17.04

Logs

ownCloud log (data/owncloud.log)

...
{"reqId":"poSYP556eK0z19ubgGUz","remoteAddr":"80.99.xx.yy","app":"core","message":"Sent mail to \"Array\n(\n    [pas@xxx.yyy] => Pas\n)\n\" with subject \"e-mail settings check"","level":0,"time":"2017-03-16T14:54:11+00:00","method":"POST","url":"\/index.php\/settings\/admin\/mailtest","user":"pas"}

strace

# ps aux | grep owncl
owncloud 18982  0.1  2.5 555860 52724 ?        S    15:25   0:02 php-fpm: pool owncloud
owncloud 18983  0.1  2.5 555920 51852 ?        S    15:25   0:02 php-fpm: pool owncloud
root     20969  0.0  0.0  14740   924 pts/0    S+   15:43   0:00 grep --color=auto owncl

# strace -f -p 18982 -p 18983 -e execve -s 3000 
strace: Process 18982 attached
strace: Process 18983 attached
strace: Process 20974 attached
[pid 20974] execve("/bin/sh", ["sh", "-c", "/usr/sbin/sendmail -t -i  -fno-reply@cloud.xxx.yyyy"], [/* 3 vars */]) = 0
strace: Process 20975 attached
[pid 20975] execve("/usr/sbin/sendmail", ["/usr/sbin/sendmail", "-t", "-i", "-fno-reply@cloud.xxx.yyy"], [/* 4 vars */]) = -1 ENOENT (No such file or directory)
[pid 20975] +++ exited with 127 +++
[pid 20974] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20975, si_uid=111, si_status=127, si_utime=0, si_stime=0} ---
[pid 20974] +++ exited with 127 +++
[pid 18982] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20974, si_uid=111, si_status=127, si_utime=0, si_stime=0} ---
strace: Process 20976 attached
[pid 20976] execve("/bin/sh", ["sh", "-c", "/usr/sbin/sendmail -t -i  -fno-reply@cloud.xxx.yyy"], [/* 3 vars */]) = 0
strace: Process 20977 attached
[pid 20977] execve("/usr/sbin/sendmail", ["/usr/sbin/sendmail", "-t", "-i", "-fno-reply@cloud.xxxx.yyyy"], [/* 4 vars */]) = -1 ENOENT (No such file or directory)
[pid 20977] +++ exited with 127 +++
[pid 20976] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20977, si_uid=111, si_status=127, si_utime=0, si_stime=0} ---
[pid 20976] +++ exited with 127 +++
[pid 18983] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20976, si_uid=111, si_status=127, si_utime=0, si_stime=0} ---
^Cstrace: Process 18982 detached
strace: Process 18983 detached

The admin dashboard showed a nice green email successfully sent flash message.

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.

@lock
Copy link

lock bot commented Jul 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants