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: alerque
Last Packager: dschrempf
Votes: 12
Popularity: 0.000252
First Submitted: 2018-11-28 09:24 (UTC)
Last Updated: 2021-05-17 07:09 (UTC)

Latest Comments

eh8 commented on 2021-09-30 19:20 (UTC)

@dschrempf thanks for maintaining this package for almost three years!

dschrempf commented on 2021-09-30 13:35 (UTC)

Hello! I am stepping down from maintaining this package! Feel free to seize ownership if you are willing to maintain! Thank you!

dschrempf commented on 2021-07-21 07:02 (UTC)

Hm, I don't think I can do much about this. Preview generator has not yet been released for Nextcloud 22. See, e.g., https://github.com/nextcloud/previewgenerator/issues/243.

eh8 commented on 2021-07-19 21:55 (UTC) (edited on 2021-07-19 21:56 (UTC) by eh8)

Some of the commands seem to have been deprecated on the latest release of Nextcloud 22

Jul 19 17:52:41 ****** php[12033]:
Jul 19 17:52:41 ****** php[12033]:   Command "preview:pre-generate" is not defined.
Jul 19 17:52:41 ****** php[12033]:
Jul 19 17:52:41 ****** php[12033]:   Did you mean one of these?
Jul 19 17:52:41 ****** php[12033]:       notification:generate
Jul 19 17:52:41 ****** php[12033]:       preview:repair
Jul 19 17:52:41 ****** php[12033]:       preview:reset-rendered-texts
Jul 19 17:52:41 ****** php[12033]:
Jul 19 17:52:41 ****** systemd[1]: nextcloud-preview-pre-generate.service: Main process exited, code=exited, status=1/FAILURE
Jul 19 17:52:41 ****** systemd[1]: nextcloud-preview-pre-generate.service: Failed with result 'exit-code'.
Jul 19 17:47:44 ****** php[10687]:
Jul 19 17:47:44 ****** php[10687]:   Command "preview:generate-all" is not defined.
Jul 19 17:47:44 ****** php[10687]:
Jul 19 17:47:44 ****** php[10687]:   Did you mean one of these?
Jul 19 17:47:44 ****** php[10687]:       notification:generate
Jul 19 17:47:44 ****** php[10687]:       preview:repair
Jul 19 17:47:44 ****** php[10687]:       preview:reset-rendered-texts
Jul 19 17:47:44 ****** php[10687]:
Jul 19 17:47:44 ****** systemd[1]: nextcloud-preview-generate-all.service: Main process exited, code=exited, status=1/FAILURE
Jul 19 17:47:44 ****** systemd[1]: nextcloud-preview-generate-all.service: Failed with result 'exit-code'.

dschrempf commented on 2021-05-17 07:11 (UTC)

Nice that the cron job has moved! @caleb, sure, I removed the files from this repository. Give me some time, I was unavailable on the weekend! Let me know if you have any problems with the update.

alerque commented on 2021-05-17 05:48 (UTC)

@dschrempf Can you please drop the configs that have been added no the [community] package so we don't have duplicates/conflicts on update? Thanks.

sergej commented on 2021-05-15 18:17 (UTC)

I moved nextcloud-cron.service nextcloud-cron.timer to nextcloud package.

Polichronucci commented on 2021-03-08 22:54 (UTC)

Yes you are correct, it was a wrongly pasted line. Sorry about that.

dschrempf commented on 2021-02-24 19:45 (UTC)

Hi! I added the dependency nextcloud-app-previewgenerator. However, I am not sure why you want nextcloud-systemd-timers to be added? Was this an accident, or do I misunderstand something? Thanks!

Polichronucci commented on 2021-02-23 12:55 (UTC) (edited on 2021-03-08 22:53 (UTC) by Polichronucci)

UPDATED

It would be nice to include the following dependency for this package.

  • nextcloud-app-previewgenerator - optional dependency

dschrempf commented on 2021-02-22 13:20 (UTC)

Thanks for the patch. Let me know if you have problems.

str0gg commented on 2021-02-20 21:53 (UTC)

@bjo nextcloud user must be ignored on most systems ;-)

bjo commented on 2021-02-20 18:44 (UTC)

As the new nextcloud package has it's own user ("nextcloud"), the user has to be changed from "http" to "nextcloud".

Thaodan commented on 2021-01-29 12:42 (UTC)

What is should be the difference in executing occ directly vs using php occ? If you fix the shebang in occ everything shoul be fine.

eh8 commented on 2021-01-29 07:27 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

@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 (UTC)

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 (UTC) (edited on 2020-10-13 06:37 (UTC) by igno2k)

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 (UTC)

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 (UTC)

@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 (UTC)

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 (UTC)

Hello,

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

Dominik

zepp.lee commented on 2019-10-09 12:36 (UTC)

The recommended interval now seems to be 5 minutes (Nextcloud 17). If you take a look at the "Basic settings" as an administrator, it tells you to "Use system cron service to call the cron.php file every 5 minutes."

fryfrog commented on 2019-04-30 19:19 (UTC)

Thanks! :)

dschrempf commented on 2019-04-30 18:57 (UTC)

@fryfrog this is correct. Sorry for the confusion. The packages coexisted for a while, but I only maintained this one.

I have updated the Nextcloud Arch Wiki entry so that it links to this package, and I have also implemented your suggestions. Thank you very much! Please let me know, if you have further comments!

Dominik

fryfrog commented on 2019-04-30 16:57 (UTC) (edited on 2019-04-30 16:59 (UTC) by fryfrog)

Does this package replace nextcloud-systemd-cron, which just disappeared?

And would /usr/lib/systemd/system be a more appropriate place? I think /etc/systemd is for user stuff?

Wouldn't be crazy to use sha256 instead of md5 too. :)