Giter Club home page Giter Club logo

Comments (10)

C0d3-R3d avatar C0d3-R3d commented on June 30, 2024 4

I tried few thing but it doesn't work because "ntpd.service" doesn't exist/missing from.
so i reinstall "ntp"
& also install "systemd-timesyncd"
Which synced with my system automatically. ANd now ntp is active without "timedatectl set-ntp on".
may be it occurs because of some packet downloading issue while installing. It worked for me, I Hope this will work for you guys too.

from mtproto_proxy.

FreedomPrevails avatar FreedomPrevails commented on June 30, 2024 1

So this command was crashing the script timedatectl set-ntp on

from mtproto_proxy.

seriyps avatar seriyps commented on June 30, 2024 1

It seems that, while Ubuntu uses systemd-timesyncd for time synchronization, CentOS 7 uses ntp or chrony.
I will update setup script to install chrony package.

from mtproto_proxy.

rooted-script avatar rooted-script commented on June 30, 2024 1

sudo ntpdate -qu 1.ro.pool.ntp.org
timedatectl set-timezone "your loc"

from mtproto_proxy.

seriyps avatar seriyps commented on June 30, 2024

This is strange, because what script does is that it tries to disable ntp service and use systemd-timesyncd:

https://gist.github.com/seriyps/dc00ad91bfd8a2058f30845cd0daed83#file-mtp_install-sh-L142-L149

Do you have script's output available before it failed? I'm interested in the last INFO message it printed before it failed (basically, want to find which command crashed)

from mtproto_proxy.

FreedomPrevails avatar FreedomPrevails commented on June 30, 2024

Unfortunately I dont have the output. but I know exactly where it was failing as I debugged it.
systemctl is-active ntp was returning unknown and timedatectl set-ntp on was giving Failed to set ntp: NTP not supported. error and crashing the script.

from mtproto_proxy.

seriyps avatar seriyps commented on June 30, 2024

Ok, thanks! That's interesting.. I found this https://bugzilla.novell.com/show_bug.cgi?id=869336 but will investigate further later

from mtproto_proxy.

seriyps avatar seriyps commented on June 30, 2024

Also this: https://unix.stackexchange.com/questions/317346/ntp-not-enabled-according-to-timedatectl-centos-7

from mtproto_proxy.

FreedomPrevails avatar FreedomPrevails commented on June 30, 2024

Well I dont know about chrony, but installing ntp resolved the issue for me.

from mtproto_proxy.

seriyps avatar seriyps commented on June 30, 2024

yep, timedatectl can work with both ntp and chrony. It checks which one is installed and uses it. And if none installed, then you'll get this error: Failed to set ntp: NTP not supported.

from mtproto_proxy.

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.