Git Product home page Git Product logo

Comments (11)

inrepublica avatar inrepublica commented on August 19, 2024

Je viens de regarder dans /etc/cron.d
Il y a bien un fichier leed:
0 */2 * * * inrepublica wget -q -O - "https://inrepublica.fr/leed/action.php?action=synchronize&code=*****" > /dev/null 2>&1

Le code correspond bien a ce qui est marqué dans les préférences de Leed.

from leed_ynh.

maniackcrudelis avatar maniackcrudelis commented on August 19, 2024

Try to uncomment the redirection at the end /dev/null 2>&1, you should then get the output of the command as email (every 2 hours, so remove the comment as soon as you have enough data)

from leed_ynh.

inrepublica avatar inrepublica commented on August 19, 2024

Ok j'ai testé avec ce cron:
0 */2 * * * inrepublica wget -q -O - "https://inrepublica.fr/leed/action.php?action=synchronize&code=*****"

Et je n'ai rien pas d'email...

from leed_ynh.

maniackcrudelis avatar maniackcrudelis commented on August 19, 2024

No mails !?

Try to add this line to the same cron file

*/5 * * * * inrepublica echo "Test"

You can check the execution as well with that command:

sudo cat /var/log/syslog | grep leed

from leed_ynh.

inrepublica avatar inrepublica commented on August 19, 2024

Voici le log:
Mar 2 16:46:01 inrepublica cron[941]: (*system*leed) RELOAD (/etc/cron.d/leed) Mar 2 16:46:01 inrepublica cron[941]: Error: bad username; while reading /etc/cron.d/leed Mar 2 16:46:01 inrepublica cron[941]: (*system*leed) ERROR (Syntax error, this crontab file will be ignored)

from leed_ynh.

maniackcrudelis avatar maniackcrudelis commented on August 19, 2024

Try to replace your user name by root, and let's see what's happening

from leed_ynh.

jsonoctopus avatar jsonoctopus commented on August 19, 2024

Ok j'ai testé avec ce cron:
0 */2 * * * inrepublica wget -q -O - "https://inrepublica.fr/leed/action.php?action=synchronize&code=*****"

Et je n'ai rien pas d'email...

With crontab you best should use full path for binary.
So e.g. 0 */2 * * * inrepublica /usr/bin/wget -q -O - "https://inrepublica.fr/leed/action.php?action=synchronize&code=*****"
Also, I prefer to use sudo into the user account and then "crontab -e" to edit or add an entry, or sudo bash to "crontab -e" as root. No need to add usernames or root in the crontab entry itself, in that way.

from leed_ynh.

inrepublica avatar inrepublica commented on August 19, 2024

Try to replace your user name by root, and let's see what's happening

En remplaçant le user par root, effectivement je reçois bien les mail.

from leed_ynh.

maniackcrudelis avatar maniackcrudelis commented on August 19, 2024

Nice
And what about the app, are the rss feed update ?

from leed_ynh.

inrepublica avatar inrepublica commented on August 19, 2024

Les flux RSS sont bien mis a jour automatiquement! Mais pourquoi est-ce impossible pour cet utilisateur? Il est bien admin pourtant...

from leed_ynh.

maniackcrudelis avatar maniackcrudelis commented on August 19, 2024

That's an old part of the code, and I'm actually quite surprised that you're the first to raised that error.
The user you choose during the install is a YunoHost user, an user into the ldap database. But not obviously an unix user.
I guess that's what happened to you, inrepublica is probably not an unix user that you can use directly. So the cron task failed to start because the user doesn't exist into its scope.

from leed_ynh.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.