How to make Cron job works, followed documentation didn't work out :)

linux_question

#1

Hi Nextcloud and thanks for your good work !

Nextcloud is working fine, I am working on the last optimizations… I followed instructions in Nextcloud 12 Administration Manual - Defining background jobs but my Cron doesn’t work.
Seems Cron wants to send me an e-mail with output, I installed postfix but seems didn’t work.

How can I make Cron work ? :slight_smile:

Syslog from /var/log is :

Dec  4 07:29:46 USERNAME anacron[28926]: Job `cron.daily' terminated
Dec  4 07:29:46 USERNAME anacron[28926]: Normal exit (1 job run)
Dec  4 07:30:01 USERNAME CRON[29959]: (root) CMD (test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null)
Dec  4 07:30:01 USERNAME CRON[29964]: (www-data) CMD (php -f sftp://home677854394.1and1-data.host/nextcloud)
Dec  4 07:30:01 USERNAME cron[1180]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Dec  4 07:30:01 USERNAME postfix/sendmail[29983]: fatal: open /etc/postfix/main.cf: No such file or directory
Dec  4 07:30:01 USERNAME CRON[29958]: (www-data) MAIL (mailed 74 bytes of output but got status 0x004b from MTA#012)
Dec  4 07:30:01 USERNAME systemd[1]: Started Run anacron jobs.
Dec  4 07:30:01 USERNAME anacron[29984]: Anacron 2.3 started on 2017-12-04
Dec  4 07:30:01 USERNAME anacron[29984]: Normal exit (0 jobs run)
Dec  4 07:39:01 USERNAME CRON[30175]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Dec  4 07:39:01 USERNAME systemd[1]: Starting Clean php session files...
Dec  4 07:39:01 USERNAME systemd[1]: Started Clean php session files.
Dec  4 07:41:39 USERNAME systemd-timesyncd[916]: Synchronized to time server 91.XXX.XX.XXX:123 (ntp.ubuntu.com).
Dec  4 07:45:01 USERNAME CRON[30523]: (www-data) CMD (php -f sftp://home6XXXXXXX.1and1-data.host/nextcloud)
Dec  4 07:45:01 USERNAME cron[1180]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Dec  4 07:45:01 USERNAME postfix/sendmail[30525]: fatal: open /etc/postfix/main.cf: No such file or directory
Dec  4 07:45:01 USERNAME CRON[30522]: (www-data) MAIL (mailed 74 bytes of output but got status 0x004b from MTA#012)
Dec  4 07:47:49 USERNAME smartd[1116]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 64 to 74
Dec  4 07:53:45 USERNAME dhclient[29107]: DHCPREQUEST of 192.XXXX on wlp1s0 to 192.xxx port XX (xid=0x3aa31c0)
Dec  4 07:53:45 USERNAME dhclient[29107]: DHCPACK of 192.XXXXXXX from 192.XXXXXXXX

I run on :

Nextcloud 12.0.3.3,
Ubuntu 16.04.3 LTS 64bits,
Apache2 version 2.4.18
PHP 7.1.11-1


#2

Does your cronjob include the “/cron.php”-part? And why do you have to use sftp, is that somehow related to your hosting?


#3

As we discussed in the other subject SFTP is the protocol to access my server :slight_smile: I am not sure to get what you ask but I do have a cron.php file in my Nextcloud file located in my server.

@TheMindFlayer Do I answer you correctly ? :slight_smile:


#4

I can’t read french, but the basic package seems to include cronjobs. It looks like you have to login to your server using SSH and then create the cronjob.

To do this you need the path to your nextcloud folder on your server. The path doesn’t include sftp or anything like that. I don’t know how the folder structure on a web hosting solution like that looks like. You could try to login through ssh, find your nextcloud folder and run “pwd” (if available) in case you don’t already know the full path.


#5

Of course @TheMindFlayer :slight_smile: I am using a 250Go hosting space (ftp?) from the french provider “1&1”, the “Basic” one (https://www.1and1.fr/hebergement-web)

Does it answer you ?
Is this solution reliable for Nextcloud ?


#6

I can’t read french, but the basic package seems to include cronjobs. It looks like you have to login to your server using SSH and then create the cronjob.

To do this you need the path to your nextcloud folder. This shouldn’t include sftp or anything like that. I don’t know how the folder structure on a web hosting solution like that looks like. You could try to login through ssh, find your nextcloud folder and run “pwd” (if available) in case you don’t already know the full path.


#7

Thanks to you @TheMindFlayer I went to websites and learned what SSH is and how to use it. I did the following and it didn’t work.

Any idea why it didn’t work ?
Because it looked like I did what I had to do ? :slight_smile:

  • I opened terminal, installed openssh
  • entered :

sudo -s
ssh u768XXXXX@home765XXXX.1and1-data.host

  • it connected me to my server :

(uiserver):u768XXXXX:~$

  • I then tried to find the path to my nextcloud file and I wrote :

pwd

  • Which gave me :

/kunden/homepages/4X/d6XXXXXX/htdocs

  • I also looked for the Nextcloud file and entered :

find . -name “nextcloud*”

  • Which showed :

./nextcloud
./nextcloud/apps/gallery/js/vendor/nextcloud
./nextcloud/apps/files_clipboard/appinfo/nextcloud-clipboard.gif
./nextcloud/apps/ojsxc/js/jsxc/img/emotions/nextcloud.svg
./nextcloud/apps/nextcloud_announcements
./nextcloud/data/nextcloud.log
./nextcloud/data/updater-ocdakaa33xaw/backups/nextcloud-12.0.3.3
./nextcloud/data/updater-ocdakaa33xaw/backups/nextcloud-12.0.3.3/apps/nextcloud_announcements
./nextcloud/data/updater-ocdakaa33xaw/backups/nextcloud-12.0.3.3/apps/gallery/js/vendor/nextcloud
./nextcloud/data/updater-ocdakaa33xaw/backups/nextcloud-12.0.3.3/apps/files_clipboard/appinfo/nextcloud-clipboard.gif
./nextcloud/data/updater-ocdakaa33xaw/backups/nextcloud-12.0.3.3/apps/ojsxc/js/jsxc/img/emotions/nextcloud.svg
./nextcloud/data/updater-ocdakaa33xaw/backups/nextcloud-12.0.3.3/core/doc/admin/_sources/configuration_files/external_storage/nextcloud.txt
./nextcloud/data/updater-ocdakaa33xaw/backups/nextcloud-12.0.3.3/core/doc/admin/configuration_files/external_storage/nextcloud.html
./nextcloud/core/doc/admin/_sources/configuration_files/external_storage/nextcloud.txt
./nextcloud/core/doc/admin/configuration_files/external_storage/nextcloud.html

  • It was about time to create cronjob via :

nano crontab -e

  • Which opened a new crontab file and I added to it :

*/15 * * * * php -f /kunden/homepages/4X/d6XXXXXX/htdocs/nextcloud/cron.php

  • I left the file saving with a ctrl+X and “yes” and I even came back to make sure I was written in the file
  • left ssh and restarted ssh

logout
service ssh restart

I went on Nextcloud, changed Cron to AJAX, waited the job to be done, then came back to Cron and it doesn’t work.

Syslog shows (and sorry for the length but I prefered to copy/paste all that was concerned by the problem, in case you find something I could not) :

Dec 6 10:41:27 systemd[1]: Stopping OpenBSD Secure Shell server…
Dec 6 10:41:27 systemd[1]: Stopped OpenBSD Secure Shell server.
Dec 6 10:41:27 systemd[1]: Starting OpenBSD Secure Shell server…
Dec 6 10:41:27 systemd[1]: Started OpenBSD Secure Shell server.
Dec 6 10:43:20 kernel: [23943.184391] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:43:20 kernel: [23943.185265] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:43:20 kernel: [23943.186267] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:43:20 kernel: [23943.187191] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:43:20 kernel: [23943.188203] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:43:20 kernel: [23943.491812] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19071 PROTO=2
Dec 6 10:44:21 dbus[1031]: [system] Activating via systemd: service name=‘org.freedesktop.hostname1’ unit='dbus-org.freedesktop.hostname1.service’
Dec 6 10:44:21 systemd[1]: Starting Hostname Service…
Dec 6 10:44:21 dbus[1031]: [system] Successfully activated service 'org.freedesktop.hostname1’
Dec 6 10:44:21 systemd[1]: Started Hostname Service.
Dec 6 10:45:01 CRON[23344]: (www-data) CMD (php -f sftp://homeXXXXXXX.1and1-data.host/nextcloud)
Dec 6 10:45:01 cron[988]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 6 10:45:01 postfix/sendmail[23346]: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 6 10:45:01 CRON[23343]: (www-data) MAIL (mailed 74 bytes of output but got status 0x004b from MTA#012)
Dec 6 10:45:26 kernel: [24069.141506] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:45:26 kernel: [24069.142531] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:45:26 kernel: [24069.143602] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:45:26 kernel: [24069.144601] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:45:26 kernel: [24069.145813] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:45:26 kernel: [24069.551178] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19073 PROTO=2
Dec 6 10:46:43 dbus[1031]: [system] Activating via systemd: service name=‘org.freedesktop.hostname1’ unit='dbus-org.freedesktop.hostname1.service’
Dec 6 10:46:43 systemd[1]: Starting Hostname Service…
Dec 6 10:46:43 dbus[1031]: [system] Successfully activated service 'org.freedesktop.hostname1’
Dec 6 10:46:43 systemd[1]: Started Hostname Service.
Dec 6 10:47:32 kernel: [24195.200105] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:47:32 kernel: [24195.201703] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:47:32 kernel: [24195.203027] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:47:32 kernel: [24195.204202] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:47:32 kernel: [24195.205288] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 10:47:32 kernel: [24195.508480] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19077 PROTO=2
Dec 6 10:49:34 systemd[4633]: Time has been changed
Dec 6 10:49:34 systemd-timesyncd[775]: Synchronized to time server 91.1XXXXXXX (ntp.ubuntu.com).
Dec 6 10:49:34 systemd[1]: Time has been changed

Dec 6 11:00:01 CRON[5723]: (www-data) CMD (php -f sftp://homeXXXXXXX.1and1-data.host/nextcloud)
Dec 6 11:00:01 cron[988]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 6 11:00:01 postfix/sendmail[5725]: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 6 11:00:01 CRON[5722]: (www-data) MAIL (mailed 74 bytes of output but got status 0x004b from MTA#012)
Dec 6 11:00:08 kernel: [24951.249792] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:00:08 kernel: [24951.250766] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:00:08 kernel: [24951.252064] [UFW BLOCK] IN=wlp1s0 OUT=
Dec 6 11:06:26 kernel: [25329.226574] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:06:26 kernel: [25329.227385] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:06:26 kernel: [25329.228306] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:06:26 kernel: [25329.229252] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:06:26 kernel: [25329.531255] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19099 PROTO=2
Dec 6 11:08:32 kernel: [25455.283164] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:08:32 kernel: [25455.284423] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:08:32 kernel: [25455.285449] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:08:32 kernel: [25455.286330] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:08:32 kernel: [25455.288069] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:08:32 kernel: [25455.288844] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:08:32 kernel: [25455.489674] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19101 PROTO=2
Dec 6 11:08:45 dbus[1031]: [system] Activating via systemd: service name=‘org.freedesktop.hostname1’ unit='dbus-org.freedesktop.hostname1.service’
Dec 6 11:08:45 systemd[1]: Starting Hostname Service…
Dec 6 11:08:45 dbus[1031]: [system] Successfully activated service 'org.freedesktop.hostname1’
Dec 6 11:08:45 systemd[1]: Started Hostname Service.
Dec 6 11:09:01 CRON[13361]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Dec 6 11:09:01 systemd[1]: Starting Clean php session files…
Dec 6 11:09:02 systemd[1]: Started Clean php session files.
Dec 6 11:10:38 kernel: [25581.240610] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:10:38 kernel: [25581.241659] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:10:38 kernel: [25581.242764] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:10:38 kernel: [25581.244089] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:10:38 kernel: [25581.245142] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:10:38 kernel: [25581.246198] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:10:38 kernel: [25581.547803] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19103 PROTO=2
Dec 6 11:12:44 kernel: [25707.197470] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:12:44 kernel: [25707.198872] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:12:44 kernel: [25707.199867] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:12:44 kernel: [25707.200956] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:12:44 kernel: [25707.201995] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:12:44 kernel: [25707.203124] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:12:44 kernel: [25707.505000] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19105 PROTO=2
Dec 6 11:13:14 dbus[1031]: [system] Activating via systemd: service name=‘org.freedesktop.hostname1’ unit='dbus-org.freedesktop.hostname1.service’
Dec 6 11:13:14 systemd[1]: Starting Hostname Service…
Dec 6 11:13:14 dbus[1031]: [system] Successfully activated service 'org.freedesktop.hostname1’
Dec 6 11:13:14 systemd[1]: Started Hostname Service.
Dec 6 11:13:18 com.canonical.Unity.Scope.Applications[4722]: (unity-scope-loader:518): unity-applications-daemon-WARNING **: daemon.vala:679: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.zeitgeist.Engine was not provided by any .service files
Dec 6 11:13:23 org.gnome.Screenshot[4722]: ** Message: Unable to select area using GNOME Shell’s builtin screenshot interface, resorting to fallback X11.
Dec 6 11:14:50 kernel: [25833.257359] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:14:50 kernel: [25833.258543] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:14:50 kernel: [25833.564710] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19107 PROTO=2
Dec 6 11:15:00 dbus[1031]: [system] Activating via systemd: service name=‘org.freedesktop.hostname1’ unit='dbus-org.freedesktop.hostname1.service’
Dec 6 11:15:00 systemd[1]: Starting Hostname Service…
Dec 6 11:15:00 dbus[1031]: [system] Successfully activated service 'org.freedesktop.hostname1’
Dec 6 11:15:00 systemd[1]: Started Hostname Service.
Dec 6 11:15:01 CRON[17330]: (www-data) CMD (php -f sftp://homeXXXXXXX.1and1-data.host/nextcloud)
Dec 6 11:15:02 cron[988]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 6 11:15:02 postfix/sendmail[17332]: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 6 11:15:02 CRON[17329]: (www-data) MAIL (mailed 74 bytes of output but got status 0x004b from MTA#012)
Dec 6 11:16:56 kernel: [25959.213827] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:16:56 kernel: [25959.214828] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:16:56 kernel: [25959.215736] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:16:56 kernel: [25959.217227] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:16:56 kernel: [25959.218701] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:16:56 kernel: [25959.219599] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:16:56 kernel: [25959.521847] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19109 PROTO=2
Dec 6 11:17:01 CRON[18396]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Dec 6 11:19:02 kernel: [26085.273288] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:19:02 kernel: [26085.274433] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:19:02 kernel: [26085.275431] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:19:02 kernel: [26085.276467] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:19:02 kernel: [26085.277630] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:19:02 kernel: [26085.278424] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:19:02 kernel: [26085.581101] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19111 PROTO=2
Dec 6 11:20:09 dbus[1031]: [system] Activating via systemd: service name=‘org.freedesktop.hostname1’ unit='dbus-org.freedesktop.hostname1.service’
Dec 6 11:20:09 systemd[1]: Starting Hostname Service…
Dec 6 11:20:09 dbus[1031]: [system] Successfully activated service 'org.freedesktop.hostname1’
Dec 6 11:20:09 systemd[1]: Started Hostname Service.
Dec 6 11:21:08 kernel: [26211.230477] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:21:08 kernel: [26211.231392] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:29:32 kernel: [26715.265537] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:29:32 kernel: [26715.266475] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:29:32 kernel: [26715.267621] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:29:32 kernel: [26715.268910] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:30:01 CRON[23382]: (www-data) CMD (php -f sftp://homeXXXXXXX.1and1-data.host/nextcloud)
Dec 6 11:30:01 cron[988]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 6 11:30:01 postfix/sendmail[23384]: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 6 11:30:01 CRON[23381]: (www-data) MAIL (mailed 74 bytes of output but got status 0x004b from MTA#012)
Dec 6 11:31:38 kernel: [26841.324221] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:31:38 kernel: [26841.325180] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:31:38 kernel: [26841.326136] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:31:38 kernel: [26841.327730] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:31:38 kernel: [26841.328744] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:31:38 kernel: [26841.331531] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:31:38 kernel: [26841.535134] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19124 PROTO=2
Dec 6 11:31:49 dbus[1031]: [system] Activating via systemd: service name=‘org.freedesktop.hostname1’ unit='dbus-org.freedesktop.hostname1.service’
Dec 6 11:31:49 systemd[1]: Starting Hostname Service…
Dec 6 11:31:49 dbus[1031]: [system] Successfully activated service 'org.freedesktop.hostname1’
Dec 6 11:31:49 systemd[1]: Started Hostname Service.
Dec 6 11:33:44 kernel: [26967.281722] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:33:44 kernel: [26967.283169] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:33:44 kernel: [26967.284289] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:33:44 kernel: [26967.285343] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:33:44 kernel: [26967.286336] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:33:44 kernel: [26967.287130] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:33:44 kernel: [26967.589079] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19143 PROTO=2
Dec 6 11:35:50 kernel: [27093.340408] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:35:50 kernel: [27093.341413] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:35:50 kernel: [27093.342798] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:35:50 kernel: [27093.343887] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:35:50 kernel: [27093.344757] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:35:50 kernel: [27093.346316] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:36:25 dbus[1031]: [system] Activating via systemd: service name=‘org.freedesktop.hostname1’ unit='dbus-org.freedesktop.hostname1.service’
Dec 6 11:36:25 systemd[1]: Starting Hostname Service…
Dec 6 11:36:25 dbus[1031]: [system] Successfully activated service 'org.freedesktop.hostname1’
Dec 6 11:36:25 systemd[1]: Started Hostname Service.
Dec 6 11:37:56 kernel: [27219.298510] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:37:56 kernel: [27219.299361] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:37:56 kernel: [27219.300364] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:37:56 kernel: [27219.301694] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:37:56 kernel: [27219.303388] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:37:56 kernel: [27219.606316] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19147 PROTO=2
Dec 6 11:39:01 CRON[23793]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Dec 6 11:39:01 systemd[1]: Starting Clean php session files…
Dec 6 11:39:01 systemd[1]: Started Clean php session files.
Dec 6 11:40:02 kernel: [27345.359300] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:40:02 kernel: [27345.360662] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:40:02 kernel: [27345.361629] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:40:02 kernel: [27345.363013] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:40:02 kernel: [27345.364145] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:40:02 kernel: [27345.365096] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:40:02 kernel: [27345.563907] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:XXXXXXX SRC=192.XXX.XXXX2 DST=224.0.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=19149 PROTO=2
Dec 6 11:42:08 kernel: [27471.315300] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:42:08 kernel: [27471.316440] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:42:08 kernel: [27471.317293] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:42:08 kernel: [27471.318261] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:42:08 kernel: [27471.319306] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:42:08 kernel: [27471.320001] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:44:14 kernel: [27597.372495] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:44:14 kernel: [27597.374316] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:44:14 kernel: [27597.375742] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:44:14 kernel: [27597.377112] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:44:14 kernel: [27597.378023] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:44:14 kernel: [27597.378941] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:45:01 CRON[24392]: (www-data) CMD (php -f sftp://homeXXXXXXX.1and1-data.host/nextcloud)
Dec 6 11:45:01 cron[988]: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 6 11:45:01 postfix/sendmail[24394]: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 6 11:45:01 CRON[24391]: (www-data) MAIL (mailed 74 bytes of output but got status 0x004b from MTA#012)
Dec 6 11:46:20 kernel: [27723.329134] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:46:20 kernel: [27723.330501] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXX.XXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:46:20 kernel: [27723.331368] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:46:20 kernel: [27723.332913] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.XXXXX DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:46:20 kernel: [27723.333863] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2
Dec 6 11:46:20 kernel: [27723.335012] [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:XXXXXXXX SRC=192.168.22.1 DST=224.XXXXX LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 PROTO=2


#8

I’m more or less out of ideas, because I’ve never used web hosting like that.

Does your Nextcloud work normally when you access it using your 1&1-url?

Can you execute php commands directly when you’re logged in throuhh ssh?
php -f /kunden/homepages/4X/d6XXXXXX/htdocs/nextcloud/cron.php


#9

I logged in SSH and tried the command above and it prompted :

<br />
Parse error: syntax error, unexpected ‘{’ in /homepages/4X/d6XXXXXXhtdocs/nextcloud/cron.php on line 40

I don’t access my Nextcloud online via this adress, I use https://mydomainname.com/index.php/nextcloud/login

I am surely missing something but I don’t see what :slight_smile: Any idea ?

EDIT :
I went looking for line 40 in my cron.php file and here is at the end and in bold line 40 :

// Show warning if a PHP version below 5.6.0 is used
if (version_compare(PHP_VERSION, ‘5.6.0’) === -1) {
echo ‘This version of Nextcloud requires at least PHP 5.6.0
’;
echo 'You are currently running ’ . PHP_VERSION . ‘. Please update your PHP version.’;
return;
}


#10

You could set NC to use webcron and open “https://mydomainname.com/nextcloud/cron.php” in your browser or run “curl https://mydomainname.com/nextcloud/cron.php” on your desktop. Does that work?

Which version of php are you running by default (“php -v”)? 7.1? And run “which php”.


#11

I looked at this option, to use Webcron but what I understood is that I have to get through a third party website and some you have to pay. I went to Nextcloud because it is opensource and like freedom for his users… :slight_smile: and I try to keep everything at my reach so this solution does not appear convenient.

But I am ok to try if you think there is no other option ?

I wrote php -v and here is what I got :

PHP 7.1.12-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Nov 29 2017 10:03:25) ( NTS )
Copyright © 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright © 1998-2017 Zend Technologies
with Zend OPcache v7.1.12-1+ubuntu16.04.1+deb.sury.org+1, Copyright © 1999-2017, by Zend Technologies

I also tried the curl and It seems to work… I pressed enter and nothing happened but the prompt root@mycomputer:~# came back ok :slight_smile: I went to my Nextcloud account online and nothing changed ; cron doesn’t work


#12

A webcron is only running “curl https://mydomainname.com/nextcloud/cron.php” or something like that, you could set up a cronjob to do that yourself. But the point of this exercise is to see if the cron.php works at all. Maybe this is a PHP-issue or something like that.

When I run curl https://my-domain/nextcloud/cron.php on my NC, I get:

{“data”:{“message”:“Backgroundjobs are using system cron!”},“status”:“error”}

or

{“status”:“success”}

depending on wether NC is set to cron or webcron. Firefox outputs the same.

Edit: What is the result of “which php”?


#13

The result of which php :

/usr/bin/php

I selected Webcron on Nextcloud and created an account on EasyCron (Free 7 days trial) and it seems to work :

Even if I still have the red flag :

What should I do now in order to make the same results but not for Webcron just Cron ? :innocent:


#14

If your webcron was actually working, Nextcloud should notice it and update the date of the last successfull cronjob in the Admin-area and the red square should be green.

What happens when you open "https://mydomainname.com/nextcloud/cron.php” in your browser?

I assume php is located at /usr/bin/php whith a / at the beginning. Does the error message change when you run “/usr/bin/php -f /kunden/homepages/4X/d6XXXXXX/htdocs/nextcloud/cron.php” on your server?

The problem is probably PHP-related and not your cron/webcron.


#15

Thanks again for your help @TheMindFlayer :wink:

Yes you assumed well, it was :

/usr/bin/php

I ran what you asked me above and the same error message came :

If the problem is just php, I just have to downgrade to lets say 7.0 ? :slight_smile:


#16

Hi,

It is a long thread already and hopefully I didn’t miss that: did you create the cron job for the web server user?
It looked to me like you created the cron job for the user account that the server provider gave you. But usually the web server (and by that I mean apache/ nginx) runs with a different user. That user usually has disabled login permission.

So to create a cron job for nextcloud you run:
crontab -e -u www-data

Then you enter:
*/15 * * * * php -f /kunden/homepages/4X/d6XXXXXX/htdocs/nextcloud/cron.php


#17

Indeed @Schmu I created the crontab file for the user already given by the server provider.
I did what you told me, I entered crontab -e -u www-data and it opened a file in my server directory

  • in " / " just above " /nextcloud "
  • I copy / pasted */15 * * * * php -f /kunden/homepages/4X/d6XXXXXX/htdocs/nextcloud/cron.php changing the numbers accordingly
  • it saved in “/tmp/crontab.MMbRm2/crontab” (?)

And still don’t work, Cron has a red flag in my administration Nextcloud panel.

:sunny: One thing that might be helpful : both the cron.php in/nextcloud
and crontab in /
are owned not by www-data but “8943847” in group “600” (I don’t know where this come from)

Any idea ? :thinking:


#18

You should run

crontab -e -u 8943847

as it should run as your web user. So remove the line from crontab -e -u www-data, save it, and add it in the file opened by the command above. (by the way, in you copy / pasted line above there is no space after php -f)


#19

Thanks @SyS0p3r, I edited the previous post, there was a space.

I tried to run the crontab -e -u 8943847 and here is what I got :

crontab: user `8943847’ unknown

Maybe do I have to first create user 8943847 on my server, via ssh comand line ?


#20

Well if the file is owned by the user 8943847 this should mean the user exists. If you look in the nextcloud folder and do a

ls -alh

what does it say after the file? And does your provider supports crontabs in your server or can you only use a webbased admin page with some crontab settings? What happens when you run the php from the ssh console in the nextcloud directory?

php -f ./cron.php

If gives the parse error again it seems like you are in some kind of virtual directory or symbolic link or something.