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. After upgrade Ubuntu 20.04 to 22.04, nginx will not start

After upgrade Ubuntu 20.04 to 22.04, nginx will not start

Scheduled Pinned Locked Moved Solved Support
nginx
3 Posts 2 Posters 731 Views 2 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.
  • V Offline
    V Offline
    vansens
    wrote on last edited by joseph
    #1

    I followed the upgrade guide
    After a reboot, I get this:

    root@xx:/home/yellowtent/box/scripts# ./cloudron-support --troubleshoot
    Vendor: Hetzner Product: vServer
    Linux: 5.15.0-119-generic
    Ubuntu: jammy 22.04
    Processor: Intel Xeon Processor (Skylake, IBRS) x 2
    RAM: 3907512KB
    Disk: /dev/sda1        14G
    [OK]    node version is correct
    [OK]    docker is running
    [OK]    MySQL is running
    [FAIL]  nginx is down. Removing extraneous dashboard domain configs ...
    Job for nginx.service failed because the control process exited with error code.
    See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
    

    Systemctl shows this:

    root@xxx:/home/yellowtent/box/scripts# systemctl status nginx.service
    × nginx.service - A high performance web server and a reverse proxy server
         Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
        Drop-In: /etc/systemd/system/nginx.service.d
                 └─cloudron.conf
         Active: failed (Result: exit-code) since Tue 2024-08-27 18:58:54 UTC; 8s ago
           Docs: man:nginx(8)
        Process: 6795 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
            CPU: 5ms
    
    Aug 27 18:58:54 xxx systemd[1]: Starting A high performance web server and a reverse proxy server...
    Aug 27 18:58:54 xxx nginx[6795]: nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
    Aug 27 18:58:54 xxx nginx[6795]: nginx: configuration file /etc/nginx/nginx.conf test failed
    Aug 27 18:58:54 xxx systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
    Aug 27 18:58:54 xxx systemd[1]: nginx.service: Failed with result 'exit-code'.
    Aug 27 18:58:54 xxx systemd[1]: Failed to start A high performance web server and a reverse proxy server.
    

    Is there a backup of this conf file somewhere or can it be recreated?
    Thank you!

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

      Can you try to run /home/yellowtent/box/setup/start.sh via SSH and root on your server? This should rebuild the symlink of the config file to /home/yellowtent/platformdata/nginx/nginx.conf

      1 Reply Last reply
      0
      • nebulonN nebulon marked this topic as a question on
      • V Offline
        V Offline
        vansens
        wrote on last edited by
        #3

        Thanks, that worked!

        1 Reply Last reply
        0
        • nebulonN nebulon has marked this topic as solved on
        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