-
Notifications
You must be signed in to change notification settings - Fork 24
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
news:updater:before-update do not work #22
Comments
Hi, I am seeing a lot non-zero exit status 1 coming up
thanks |
Hi! thanks, G. Many outputs in one run like this: |
If one wants to test, this is my opml:
|
@frogueat I ran into similar issues with version 11.0.0, but it was related to my systemd service file, which didn't allow access to local sockets ( Starting it with the following permissions/settings works (paths are probably Arch Linux specific):
Only |
Hello, I found the same issue with the standalone news-updater script after updating to nextcloud 20 and news app 15.0.6.
After updating
|
You need to set the api level, check the README |
@BruderJo for president. Thanks a lot! I was struggling... #21 (comment) until I found your hotfix. |
Sooner or later a complete rewrite will be required, as we will deprecate the user api. If someone thinks so please open a discussion in the news repo else I would suggest to archive this project. |
@Grotax unless you build in a threaded and threadsafe update mechanism into Nextcloud this thing will still be a hard requirement for medium - large installations. I know of some universities that use it because their Nextcloud cron mechanism is stuck in limbo otherwise. |
I see, then someone will need to reimplement something like this. |
Has anyone found a way around this? I have successfully updated every feed I manually attempt to update when running statements like: |
Hi!
I have a problem with the new updater. Calling
sudo -u www-data nextcloud-news-updater /var/www/nextcloud --loglevel before-update
I get this:
2020-10-01 09:21:43,998 - Nextcloud News Updater - INFO - Running update in an interval of 900 seconds using 10 threads
2020-10-01 09:21:43,998 - Nextcloud News Updater - INFO - Running before update command: php -f /var/www/nextcloud/occ news:updater:before-update
2020-10-01 09:21:44,296 - Nextcloud News Updater - ERROR - Command '['php', '-f', '/var/www/nextcloud/occ', 'news:updater:before-update']' returned non-zero exit status 1.: Trying again in 30 seconds
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/nextcloud_news_updater/api/updater.py", line 69, in run
self.before_update()
File "/usr/local/lib/python3.6/dist-packages/nextcloud_news_updater/api/cli.py", line 73, in before_update
self.cli.run(self.api.before_cleanup_command)
File "/usr/local/lib/python3.6/dist-packages/nextcloud_news_updater/api/cli.py", line 12, in run
return check_output(commands)
File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['php', '-f', '/var/www/nextcloud/occ', 'news:updater:before-update']' returned non-zero exit status 1.
To tackle it down, I did call
sudo -u www-data php -f /var/www/nextcloud/occ news:updater:before-update
I get this:
An unhandled exception has been thrown:
Error: Call to a member function execute() on int in /var/www/nextcloud/apps/news/lib/Db/NewsMapperV2.php:77
Stack trace:
#0 /var/www/nextcloud/apps/news/lib/Service/FolderServiceV2.php(101): OCA\News\Db\NewsMapperV2->purgeDeleted()
#1 /var/www/nextcloud/apps/news/lib/Service/UpdaterService.php(48): OCA\News\Service\FolderServiceV2->purgeDeleted()
#2 /var/www/nextcloud/apps/news/lib/Command/Updater/BeforeUpdate.php(44): OCA\News\Service\UpdaterService->beforeUpdate()
#3 /var/www/nextcloud/apps/mail/vendor/symfony/console/Command/Command.php(255): OCA\News\Command\Updater\BeforeUpdate->execute()
#4 /var/www/nextcloud/apps/mail/vendor/symfony/console/Application.php(1005): Symfony\Component\Console\Command\Command->run()
#5 /var/www/nextcloud/apps/mail/vendor/symfony/console/Application.php(271): Symfony\Component\Console\Application->doRunCommand()
#6 /var/www/nextcloud/apps/mail/vendor/symfony/console/Application.php(147): Symfony\Component\Console\Application->doRun()
#7 /var/www/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run()
#8 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#9 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
I can't find any logs. Im running nc 20 rc2 on an ubuntu 18.04 box (Linux 4.15.0-118-generic x86_64), php 7.4, pip3 and postgresql. Please help
Kind regards, Günther
The text was updated successfully, but these errors were encountered: