Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. 1h delay from start to online

1h delay from start to online

Scheduled Pinned Locked Moved Solved Support
7 Posts 2 Posters 1.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      R Offline
      roru2k20
      wrote on last edited by
      #1

      Good morning,

      my small server shutdown every night at 10pm and also start automatically at 7am, but I can't use my apps until 8am.

      Any idea for this delay?

      Kind regards,
      Axel

      1 Reply Last reply
      0
      • nebulonN Away
        nebulonN Away
        nebulon
        Staff
        wrote on last edited by
        #2

        Out of curiosity, why is the server shutting down during the night?
        For the apps not being up, upon restart, in which states are the apps once the Cloudron dashboard is already reachable?

        1 Reply Last reply
        0
        • R Offline
          R Offline
          roru2k20
          wrote on last edited by
          #3

          Good morning,

          Why do I turn off the server? I do not use it at night and it is not efficient to run the server around the clock.

          When it starts up and Cloudron comes online, I wait a short time and everything is okay!

          I think I found the problem, it's the same one I had a few years ago when I was running an Univention server. The same situation. At night the server is shut down and at 7am I want to start the server via a BIOS function, but it doesn't go online until 8am. The problem was the internal clock and the synchronization with ntp.

          Yesterday I saw a status page of my Nextcloud installation that said it was one hour ahead of the current clock.

          Now I must configure ntp. I must search in my private Wiki how I solve the problem in the past. I'll put it here when I found it.

          1 Reply Last reply
          0
          • nebulonN Away
            nebulonN Away
            nebulon
            Staff
            wrote on last edited by
            #4

            Thanks for explaining and your investigation. It should totally be possible to save energy by shutting it off when it is not required. Not sure why it wouldn't sync on reboot, however can you try if a systemctl restart systemd-timesyncd solves this right after a reboot?

            R 1 Reply Last reply
            0
            • nebulonN nebulon

              Thanks for explaining and your investigation. It should totally be possible to save energy by shutting it off when it is not required. Not sure why it wouldn't sync on reboot, however can you try if a systemctl restart systemd-timesyncd solves this right after a reboot?

              R Offline
              R Offline
              roru2k20
              wrote on last edited by
              #5

              @nebulon I think only the bios clock is not correct.

              After a start, the ntp-client set the clock of Ubuntu to [BIOS-Time = UTC] + 1h for Germany, but the BIOS-Time is still set to UTC. My Server time said it is 9:19 UTC, but Ubuntu said it is 10:19. I think this is a bug.

              00a2cb04-8e7f-435b-93f1-a6096b0fbccc-image.png

              1 Reply Last reply
              0
              • nebulonN Away
                nebulonN Away
                nebulon
                Staff
                wrote on last edited by nebulon
                #6

                Not exactly sure where the misconfiguration lies, but it does not sound too wrong if the BIOS time is UTC and the system is configured with a timezone and adjusts the system time. For simplicity in your case you might as well just set everything to UTC given that you are only 1 hour off. If you want to dive deeper into time management on Linux, you could read through https://wiki.archlinux.org/index.php/System_time#Hardware_clock which explains most of the things as well as instructs you how to keep both in sync.

                Ps: The wiki page is for Archlinux, but Ubuntu uses the same tools here.

                R 1 Reply Last reply
                0
                • nebulonN nebulon

                  Not exactly sure where the misconfiguration lies, but it does not sound too wrong if the BIOS time is UTC and the system is configured with a timezone and adjusts the system time. For simplicity in your case you might as well just set everything to UTC given that you are only 1 hour off. If you want to dive deeper into time management on Linux, you could read through https://wiki.archlinux.org/index.php/System_time#Hardware_clock which explains most of the things as well as instructs you how to keep both in sync.

                  Ps: The wiki page is for Archlinux, but Ubuntu uses the same tools here.

                  R Offline
                  R Offline
                  roru2k20
                  wrote on last edited by
                  #7

                  @nebulon
                  Solution was
                  1.) sudo dpkg-reconfigure tzdata => set Timezone to Berlin
                  2.) sudo hwclock --systohc

                  Now is the Hardwareclock the same as my real clock.

                  Thanks for your help

                  BR Axel

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search