Jump to content
Froxlor Forum
  • 0
where2go

Cronjob error - Froxlor does not seem to be installed yet

Question

Hi there,

I'm running Froxlor 0.9.38.7 (DB: 201612110) and when executing php /var/www/froxlor/scripts/froxlor_master_cronjob.php I'm getting "Froxlor does not seem to be installed yet - skipping cronjobroot".

My /etc/cron.d/froxlor file looks like

# automatically generated cron-configuration by froxlor
# do not manually edit this file as it will be re-generated periodically.
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#
*/5 * * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/scripts/froxlor_master_cronjob.php --tasks 1> /dev/null
0 0 * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/scripts/froxlor_master_cronjob.php --traffic 1> /dev/null
5 0 * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/scripts/froxlor_master_cronjob.php --used_tickets_reset 1> /dev/null
7 0 1 * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/scripts/froxlor_master_cronjob.php --ticketarchive 1> /dev/null
10 0 * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/scripts/froxlor_master_cronjob.php --usage_report 1> /dev/null
0 */6 * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/scripts/froxlor_master_cronjob.php --mailboxsize 1> /dev/null
15 0 * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/scripts/froxlor_master_cronjob.php --backup 1> /dev/null

 

  • Cron is running as /usr/sbin/cron -f
  • PHP Version5.6.30-0+deb8u1
  • Debian 8.9
  • Apache/2.4.10
  • Zend OPcache 7.0.6-dev
  • System log is clean.
  • Froxlor dashboard says: Outstanding cron-tasks: There are currently no outstanding tasks for Froxlor
  • I do not have this php file: FROXLOR_INSTALL_DIR . '/lib/userdata.inc.php'

 

image.png.3b7443c8ebd07e004099f3fb724cfb3a.png

 

I'd appreciate any help with this.

Thanks a lot!

 

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Just got an email from my Froxlor:

froxlor[10321]: SQLSTATE[HY000] [2002] Connection refused
froxlor[10321]: --- DEBUG: #0 /var/www/html/froxlor/lib/classes/database/class.Database.php(292): PDO->__construct('mysql:dbname=fr...', 'froxlor', 'DB_UNPRIV_PWD...', Array) #1 /var/www/html/froxlor/lib/classes/database/class.Database.php(178): Database::getDB() #2 /var/www/html/froxlor/lib/cron_init.php(92): Database::__callStatic('query', Array) #3 /var/www/html/froxlor/lib/cron_init.php(92): Database::query('SELECT 1') #4 /var/www/html/froxlor/scripts/froxlor_master_cronjob.php(20): include_once('/var/www/html/f...') #5 {main}

 

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, where2go said:

I do not have this php file: FROXLOR_INSTALL_DIR . '/lib/userdata.inc.php'

How can you be able to log in and use froxlor if you dont have this file? Impossible...

Share this post


Link to post
Share on other sites
  • 0
13 hours ago, d00p said:

How can you be able to log in and use froxlor if you dont have this file? Impossible...

Agreed. I dug a bit deeper and found an installation at "/var/www/html/froxlor/". I have NO idea why there are two Froxlor installations on there. The system is running stable since 1.5 years and I made a straight forward installation following all of your excellent guides.

I ran "/usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/scripts/froxlor_master_cronjob.php --force--debug" and it executed fine.

Got the following emails from cron:

sh: 1: /usr/sbin/repquota: not found

and

PHP Notice:  Undefined offset: -1 in /var/www/html/froxlor/lib/cron_init.php on line 112

and the one from my previous post.

@d00p Where do I find the actual Froxlor installation directory and how do I make sure that I only have one proper installation? I fear there might be a mixed installation now or config files in one or the other Froxlor root location.

Thanks, d00p!

Share this post


Link to post
Share on other sites
  • 0

After half a day cron job spit out this:

PHP Warning:  file(/var/run/froxlor_froxlor_master_cronjob-tasks.lock-4098): failed to open stream: No such file or directory in /var/www/html/froxlor/lib/cron_init.php on line 111

 

Share this post


Link to post
Share on other sites
  • 0
13 hours ago, where2go said:

Got the following emails from cron:


sh: 1: /usr/sbin/repquota: not found

and


PHP Notice:  Undefined offset: -1 in /var/www/html/froxlor/lib/cron_init.php on line 112

Settings -> disable quota if not set up

13 hours ago, where2go said:

Where do I find the actual Froxlor installation directory and how do I make sure that I only have one proper installation? I fear there might be a mixed installation now or config files in one or the other Froxlor root location.

If you are using debian packages, it's definetly installed into /var/www/ which is also the default for any other official documentation. it doesnt really matter where froxlor is installed - important is the database, so in doubt, decide for one directory and remove the other (or better first rename in case something goes wrong :P)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By nurtext
      Moin,
      anscheinend schlägt Let's Encrypt bei Subdomains fehl, weil es gerne auch eine weitere "www"-Subdomain an die bestehende hängen würde. Siehe Log:
      root@meine-tolle-domain:/root# /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --letsencrypt --debug [information] Updating Let's Encrypt certificates [information] Updating hilfe.meine-tolle-domain.de [information] Adding SAN entry: hilfe.meine-tolle-domain.de [information] Adding SAN entry: www.hilfe.meine-tolle-domain.de [information] letsencrypt Using 'https://acme-v01.api.letsencrypt.org' to generate certificate [information] letsencrypt Creating new account key [information] letsencrypt Starting new account registration [information] letsencrypt Sending registration to letsencrypt server [information] letsencrypt Sending signed request to /acme/new-reg [information] letsencrypt New account registered. [information] letsencrypt Accepting lets encrypt Terms of Service [information] letsencrypt Accepting agreement at URL: https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf [information] letsencrypt Sending signed request to /acme/reg/18369331 [information] letsencrypt Lets encrypt Terms of Service accepted [information] letsencrypt Starting certificate generation process for domains [information] letsencrypt Requesting challenge for hilfe.meine-tolle-domain.de [information] letsencrypt Sending signed request to /acme/new-authz [information] letsencrypt Got challenge token for hilfe.meine-tolle-domain.de [information] letsencrypt Token for hilfe.meine-tolle-domain.de saved at /var/www/froxlor/.well-known/acme-challenge/5lbwRluW103CyNPdbmq7p_kd7p3blY8WGNSV0N0RNBY and should be available at http://hilfe.meine-tolle-domain.de/.well-known/acme-challenge/5lbwRluW103CyNPdbmq7p_kd7p3blY8WGNSV0N0RNBY [information] letsencrypt Sending request to challenge [information] letsencrypt Sending signed request to https://acme-v01.api.letsencrypt.org/acme/challenge/ZXmZ4SU2Oy0__ipk-ihaPtDq39OyNfBKAEHzfMvmO5U/1478709781 [information] letsencrypt Verification pending, sleeping 1s [information] letsencrypt Verification ended with status: valid [information] letsencrypt Requesting challenge for www.hilfe.meine-tolle-domain.de [information] letsencrypt Sending signed request to /acme/new-authz [information] letsencrypt Got challenge token for www.hilfe.meine-tolle-domain.de [information] letsencrypt Token for www.hilfe.meine-tolle-domain.de saved at /var/www/froxlor/.well-known/acme-challenge/eJnDjhknVPim732szZ9rZt22T9DoKP2xkQI6-A1c4KE and should be available at http://www.hilfe.meine-tolle-domain.de/.well-known/acme-challenge/eJnDjhknVPim732szZ9rZt22T9DoKP2xkQI6-A1c4KE [error] letsencrypt Please check http://www.hilfe.meine-tolle-domain.de/.well-known/acme-challenge/eJnDjhknVPim732szZ9rZt22T9DoKP2xkQI6-A1c4KE - token not available; PHP error: {"type":2,"message":"file_get_contents(http:\/\/www.hilfe.meine-tolle-domain.de\/.well-known\/acme-challenge\/eJnDjhknVPim732szZ9rZt22T9DoKP2xkQI6-A1c4KE): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known","file":"\/var\/www\/froxlor\/lib\/classes\/ssl\/class.lescript.php","line":232} [information] letsencrypt Sending request to challenge [information] letsencrypt Sending signed request to https://acme-v01.api.letsencrypt.org/acme/challenge/4ZX-ZuA9abbaOpoUhAnqyhnLDUzWp7xm5YPUZns7orA/1478709934 [information] letsencrypt Verification pending, sleeping 1s [error] Could not get Let's Encrypt certificate for hilfe.meine-tolle-domain.de: Verification ended with error: {"identifier":{"type":"dns","value":"www.hilfe.meine-tolle-domain.de"},"status":"invalid","expires":"2017-07-11T15:20:54Z","challenges":[{"type":"http-01","status":"invalid","error":{"type":"urn:acme:error:connection","detail":"DNS problem: NXDOMAIN looking up A for www.hilfe.meine-tolle-domain.de","status":400},"uri":"https:\/\/acme-v01.api.letsencrypt.org\/acme\/challenge\/4ZX-ZuA9abbaOpoUhAnqyhnLDUzWp7xm5YPUZns7orA\/1478709934","token":"eJnDjhknVPim732szZ9rZt22T9DoKP2xkQI6-A1c4KE","keyAuthorization":"eJnDjhknVPim732szZ9rZt22T9DoKP2xkQI6-A1c4KE.lzkNGm6yCkkELPqgqQ8h9v-MfPi-5gRkb9yf76fy86s","validationRecord":[{"url":"http:\/\/www.hilfe.meine-tolle-domain.de\/.well-known\/acme-challenge\/eJnDjhknVPim732szZ9rZt22T9DoKP2xkQI6-A1c4KE","hostname":"www.hilfe.meine-tolle-domain.de","port":"80","addressesResolved":[],"addressUsed":"","addressesTried":[]}]},{"type":"tls-sni-01","status":"pending","uri":"https:\/\/acme-v01.api.letsencrypt.org\/acme\/challenge\/4ZX-ZuA9abbaOpoUhAnqyhnLDUzWp7xm5YPUZns7orA\/1478709935","token":"S1kgT_jIG8reMxRvGEf9niDf4WIiPyr5XslKbIFQ6eY"},{"type":"dns-01","status":"pending","uri":"https:\/\/acme-v01.api.letsencrypt.org\/acme\/challenge\/4ZX-ZuA9abbaOpoUhAnqyhnLDUzWp7xm5YPUZns7orA\/1478709936","token":"mp8J-ChoyV2gMPQyuJQoZaRlH2ePfcBYcb0v-cZ1zmU"}],"combinations":[[1],[0],[2]]} [information] Let's Encrypt certificates have been updated [notice] Checking system's last guid root@meine-tolle-domain:/root/ Irgendwie sieht das für mich nicht gewollt aus, oder? ?
    • By DavidCK
      Hello!
       
      I follow all the configuration files and all the services start OK, but cronjob did not make his job, the customers path did not created.
       
      Thanks for your help.
       
      Regards,
       
    • By MrMonkeyMan
      I am new to froxlor and i was wondering how do i create a cronjob for my server
    • By Stephan
      Hallo, ich habe vor ein paar Tagen auf die neueste Version geupdatet und alles wie beschrieben eingestellt.
      Allerdings arbeitet es meine Cronjobs nicht mehr ab. Bei Cronjob-Einstellungen zeigt es mir noch jeweils das Datum von Dezember bzw "01.01.1970 00:00" an. Es passiert auch nichts, wenn ich den Cron in der Kommandozeile von Hand ausf?hre mit  /usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --force 
       
      Unter /var/log habe ich nach Datum sortiert, finde aber keine Error-Log oder ?hnliches was zur Uhrzeit usw passt.
      Es passiert einfach nichts.

      Ich bin gerade etwas ratlos. Mein System ist: Linux RNMV001 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64
       
      K?nnt ihr mir bitte weiterhelfen?
    • By webass
      Hi,
      ich habe einen Kundenaccount.
      Da sollte Wordpress drin installiert werden.
       
      Die php settings je Domain ?berschreiben ja sicherlich /etc/php5/fpm/php.ini, daher habe ich dort das memory limit passend gemacht und gespeichert.
      Dann hab ich gewartet und gewartet und der cronjob lief nicht durch. Dann habe ich die config files erneuert und es hat immer noch nichts gebracht, die Werte wurden nicht geschrieben, der cronjob umfasst wohl bei mir diesen Kunden nicht.
       
      Dann habe ich ?berpr?ft wie es im Cron aussieht und da ich die Config ja anfangs gemacht hatte, sieht der normal aus.
      Woran k?nnte das denn noch liegen?
      Ich musste den Cron dann mit --force laufen lassen und konnte erst danach Worpdress fertig installieren.
       
      Alles ist in Sachen cron settings ist auf default, nichts, nie ge?ndert.
      Hier mal froxlor cronjob:
      # cat /etc/cron.d/froxlor # # Set PATH, otherwise restart-scripts won't find start-stop-daemon # PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # # Regular cron jobs for the froxlor package # # Please check that all following paths are correct # */5 * * * * root /usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php Hilfe...
      m?chte, dass es automatisch geht. (Hab auch schon gegoogelt und hier gesucht)
      LG
      Andre
×
×
  • Create New...