Package Details: nextcloud-systemd-timers 0.11.0-2

Git Clone URL: https://aur.archlinux.org/nextcloud-systemd-timers.git (read-only, click to copy)
Package Base: nextcloud-systemd-timers
Description: Systemd services and timers for Nextcloud background jobs (see Nextcloud Arch Wiki entry).
Upstream URL: None
Licenses: GPL
Submitter: dschrempf
Maintainer: dschrempf
Last Packager: dschrempf
Votes: 12
Popularity: 0.25
First Submitted: 2018-11-28 09:24
Last Updated: 2021-05-17 07:09

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

eh8 commented on 2021-01-29 07:27

Due to the recent shift towards PHP 8, these scripts will fail because it will invoke an unsupported version of PHP. Since Nextcloud 21 is expected to be released in February, a temporary workaround is to modify each .service file and replace /usr/bin/php with /usr/bin/php7

dschrempf commented on 2021-01-19 06:48

Thanks. Can you please verify that the new version is working? Here, everything seems to be OK.

muhviehstarr commented on 2021-01-18 23:51

better to use the php executable to prevent occ exexcutable permissions

diff --git a/PKGBUILD b/PKGBUILD index 5cde722..03dbb16 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Dominik Schrempf dominik.schrempf@gmail.com pkgname=nextcloud-systemd-timers pkgver=0.6.3 -pkgrel=1 +pkgrel=2 epoch= pkgdesc="Systemd services and timers for Nextcloud background jobs (see Nextcloud Arch Wiki entry)." arch=('any') @@ -29,15 +29,15 @@ source=("nextcloud-app-update-all.service" "nextcloud-preview-generate-all.timer" "nextcloud-preview-pre-generate.service" "nextcloud-preview-pre-generate.timer") -sha256sums=('ee6f44559dc7d378aa4e15800cc32fd4c21834c8eb3c22337e9cc93d99d7d96a' +sha256sums=('231419498bda90a47a20927be414e126871877ddefb8234970942b75ce092349' '39039f1a3dc23022fccc991daca86d77e7d41be275566f6892cd6b290fa0da4a' '7fe27aa2ef2a034cf19a02571cefd1f6b40dd64fa48abda3ed0c82e2181f12c1' 'a7db3a28abfee48393bd70dc71e9abf813130169229f2a35b072cc11dbd09863' - 'd81ebf8ad4a25293c0b7a80a4aa784848cfdc894eb9b799dd535bbb085713afd' + 'a5bbae53fd6de8a7a2de7ff07e74ee8b709b1950e6a4d817e80550ad9da8c65e' '2f191059b619141ba883ae132af56460212c84eb208f087b87b79b0a3b9e4900' - '18913873bf889f8b4d8bc2109d313fed02e523c86519ca96285640bf965732d5' + '73c33917bb69889efecd9c47fe4f99910419e7cfdeea012f68d9f4b73dc74cb8' 'bd4bbd01a9d68e0217c3b48c977dda881fd956b53f981a6e32af0357d2e0b716' - 'bfaa2602d78f097c95e76d150423f83779384a737d41502bd8067b8f663b436f' + '98ec0f1a78738d2aa2497b8b01faad4b9e9c44f90988ef3e592257dd2eef9bc8' '56e3cab181040101be05d4b7723825f7b0c082c34403e42c6f0934c6474a6a43') noextract=()

diff --git a/nextcloud-app-update-all.service b/nextcloud-app-update-all.service index 48ec146..a757596 100644 --- a/nextcloud-app-update-all.service +++ b/nextcloud-app-update-all.service @@ -3,7 +3,7 @@ Description=Nextcloud; update all applications

[Service] User=http -ExecStart=/usr/share/webapps/nextcloud/occ app:update --all +ExecStart=/usr/bin/php -f /usr/share/webapps/nextcloud/occ app:update --all

[Install] WantedBy=basic.target diff --git a/nextcloud-files-scan-all.service b/nextcloud-files-scan-all.service index 74894f2..639dda1 100644 --- a/nextcloud-files-scan-all.service +++ b/nextcloud-files-scan-all.service @@ -3,7 +3,7 @@ Description=Nextcloud; scan all files

[Service] User=http -ExecStart=/usr/share/webapps/nextcloud/occ files:scan --all +ExecStart=/usr/bin/php -f /usr/share/webapps/nextcloud/occ files:scan --all

[Install] WantedBy=basic.target diff --git a/nextcloud-preview-generate-all.service b/nextcloud-preview-generate-all.service index b18c0be..9fe7336 100644 --- a/nextcloud-preview-generate-all.service +++ b/nextcloud-preview-generate-all.service @@ -3,7 +3,7 @@ Description=Nextcloud; generate previews for all files

[Service] User=http -ExecStart=/usr/share/webapps/nextcloud/occ preview:generate-all +ExecStart=/usr/bin/php -f /usr/share/webapps/nextcloud/occ preview:generate-all

[Install] WantedBy=basic.target diff --git a/nextcloud-preview-pre-generate.service b/nextcloud-preview-pre-generate.service index cf39f37..bf4eebb 100644 --- a/nextcloud-preview-pre-generate.service +++ b/nextcloud-preview-pre-generate.service @@ -3,7 +3,7 @@ Description=Nextcloud; generate previews for new files only

[Service] User=http -ExecStart=/usr/share/webapps/nextcloud/occ preview:pre-generate +ExecStart=/usr/bin/php -f /usr/share/webapps/nextcloud/occ preview:pre-generate

[Install] WantedBy=basic.target

igno2k commented on 2020-10-14 06:14

@dschrempf Thanks, you are right! Maybe the app got deactivated after the Nextcloud upgrade. Everything is working fine now.

dschrempf commented on 2020-10-13 18:28

Did you install the preview generator application? I think it is not included by default. See https://apps.nextcloud.com/apps/previewgenerator.

igno2k commented on 2020-10-13 06:34

I am getting the following error after latest Nextcloud upgrade:

Oct 13 08:31:27 cloud occ[42480]:                                                   
Oct 13 08:31:27 cloud occ[42480]:   Command "preview:pre-generate" is not defined.
Oct 13 08:31:27 cloud occ[42480]:                                                   
Oct 13 08:31:27 cloud occ[42480]:   Did you mean one of these?
Oct 13 08:31:27 cloud occ[42480]:       migrations:generate
Oct 13 08:31:27 cloud occ[42480]:       notification:generate
Oct 13 08:31:27 cloud occ[42480]:       preview:repair
Oct 13 08:31:27 cloud occ[42480]:                                                   
Oct 13 08:31:27 cloud systemd[1]: nextcloud-preview-pre-generate.service: Main process exited, code=exited, status=1/FAILURE
Oct 13 08:31:27 cloud systemd[1]: nextcloud-preview-pre-generate.service: Failed with result 'exit-code'.

Maybe the preview command has changed?

fryfrog commented on 2020-05-26 16:02

I think better than a bunch of timers for each interval, a #comment at the top saying how to override w/ systemd's built in mechanisms would be better. That way you just have one .timer, but people can use any schedule they want.

dschrempf commented on 2020-05-26 07:54

@benjaminabel Thanks for your suggestions! I added an appropriate service. It works on my server, but let me know, if you have problems!

I was also wondering if we could make the periods more flexible. One could provide various timer files (daily, weekly, monthly), and the user can then activate the one he/she wants. What do you think? Is there an easier way to achieve such flexibility?

Cheers, Dominik.

benjaminabel commented on 2020-05-25 13:02

Hi, and thanks for this handy package.

Maybe it would be nice to add a app updater timer for this command:

/usr/bin/runuser -u http -- /usr/bin/php /usr/share/webapps/nextcloud/occ app:update --all

Every day?

dschrempf commented on 2019-10-09 13:11

Hello,

thanks! I changed the timer to be activated every 5 min. Let me know, if there are any other issues.

Dominik