Coder Social home page Coder Social logo

Comments (2)

marmotte32 avatar marmotte32 commented on June 2, 2024

same issue.
fresh install of ubuntu 20.04 then upgrade all packages
install libretime 4.0.0 the guide: https://libretime.org/docs/admin-manual/install/install-using-the-installer/#run-the-installer

thus, the installer output for the worker step:

╔══════════════════════════════════════════════════════════════════════════════╗
║ Worker                                                                       ║
╚══════════════════════════════════════════════════════════════════════════════╝
info: installing python app from /root/libretime/worker
Processing ./worker
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting celery==4.4.7 (from libretime-worker==4.0.0)
  Downloading celery-4.4.7-py2.py3-none-any.whl.metadata (19 kB)
Requirement already satisfied: kombu==4.6.11 in /opt/libretime/lib/python3.8/site-packages (from libretime-worker==4.0.0) (4.6.11)
Requirement already satisfied: mutagen<1.48,>=1.45.1 in /opt/libretime/lib/python3.8/site-packages (from libretime-worker==4.0.0) (1.47.0)
Requirement already satisfied: requests<2.32,>=2.31.0 in /opt/libretime/lib/python3.8/site-packages (from libretime-worker==4.0.0) (2.31.0)
Requirement already satisfied: pytz>dev in /opt/libretime/lib/python3.8/site-packages (from celery==4.4.7->libretime-worker==4.0.0) (2024.1)
Collecting billiard<4.0,>=3.6.3.0 (from celery==4.4.7->libretime-worker==4.0.0)
  Downloading billiard-3.6.4.0-py3-none-any.whl.metadata (4.5 kB)
Requirement already satisfied: vine==1.3.0 in /opt/libretime/lib/python3.8/site-packages (from celery==4.4.7->libretime-worker==4.0.0) (1.3.0)
Requirement already satisfied: amqp<2.7,>=2.6.0 in /opt/libretime/lib/python3.8/site-packages (from kombu==4.6.11->libretime-worker==4.0.0) (2.6.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/libretime/lib/python3.8/site-packages (from requests<2.32,>=2.31.0->libretime-worker==4.0.0) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /opt/libretime/lib/python3.8/site-packages (from requests<2.32,>=2.31.0->libretime-worker==4.0.0) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/libretime/lib/python3.8/site-packages (from requests<2.32,>=2.31.0->libretime-worker==4.0.0) (2.2.1)
Requirement already satisfied: certifi>=2017.4.17 in /opt/libretime/lib/python3.8/site-packages (from requests<2.32,>=2.31.0->libretime-worker==4.0.0) (2024.2.2)
Downloading celery-4.4.7-py2.py3-none-any.whl (427 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 427.6/427.6 kB 1.4 MB/s eta 0:00:00
Downloading billiard-3.6.4.0-py3-none-any.whl (89 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.5/89.5 kB 841.4 kB/s eta 0:00:00
Building wheels for collected packages: libretime-worker
  Building wheel for libretime-worker (pyproject.toml) ... done
  Created wheel for libretime-worker: filename=libretime_worker-4.0.0-py3-none-any.whl size=4010 sha256=a14683615edbcdaeef8b7a9722b481b3f4e6a2f43b047288106c0fefe531b6ad
  Stored in directory: /tmp/pip-ephem-wheel-cache-wsjg9egc/wheels/b8/d9/af/298d67444095ae9310e220bc310089c9a5c367ec7c7f04a32a
Successfully built libretime-worker
**DEPRECATION: celery 4.4.7 has a non-standard dependency specifier pytz>dev. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of celery or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063**
Installing collected packages: billiard, celery, libretime-worker
Successfully installed billiard-3.6.4.0 celery-4.4.7 libretime-worker-4.0.0
info: creating libretime-worker working directory
info: deploying libretime-worker.service service
Created symlink /etc/systemd/system/multi-user.target.wants/libretime-worker.service -> /usr/lib/systemd/system/libretime-worker.service.

from libretime.

marmotte32 avatar marmotte32 commented on June 2, 2024

Hi @jooola

I think that I found the issue thanks to "triangle-stream":
#1084 (comment)

Seems that the 4.0.0 is buggy with worker service (celeri) cause the worker.log file is not able to be created and the service script is wrong.

Here is the solution that worked for me:

touch /var/log/libretime/worker.log
chown libretime:libretime /var/log/libretime/worker.log
chmod 644 /var/log/libretime/worker.log

cp /usr/lib/systemd/system/libretime-worker.service /usr/lib/systemd/system/libretime-worker.service.ori
nano /usr/lib/systemd/system/libretime-worker.service

in the scrit under ExecStart, change :
/usr/bin/sh
with:
/bin/sh

save and quit nano

reboot

after the reboot you'll see that the /var/log/libretime/worker.log file exist now and the service worker is started :)

Hope this solved your issue too!!!

from libretime.

Related Issues (20)

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.