Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    /var/log on nanobsd or diagnosing 503's

    Scheduled Pinned Locked Moved webGUI
    4 Posts 3 Posters 965 Views
    Loading More Posts
    • 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.
    • A
      Alixy
      last edited by

      I'm running the nanobsd version of pfsense on a box with 256mb of memory.

      /var is mounted as a 58mb in-memory device, but almost every log under /var/log is listed as 511488 bytes long and all zeros.

      Any idea how I can see lighttpd logs in this situation?

      Or why the logs contain 512kb of zeros?

      (I'm getting some 503's from the webgui, and trying to diagnose why that is occurring. I know the general cause, but I'd like to find the specific error and fix it rather than removing the 'cause').

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        https://doc.pfsense.org/index.php/Why_can%27t_I_view_view_log_files_with_cat/grep/etc%3F_(clog)

        1 Reply Last reply Reply Quote 0
        • A
          Alixy
          last edited by

          Thanks! (and the hyperlink doesn't include the last paren, but copy/paste that url goes to the right place).

          What's very odd is that lighttpd.log is completely empty (clog lighttpd.log returns immediately). Any idea why (or where I'd find php errors?)

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            /tmp/php_errors.txt
            or maybe
            /tmp/PHP_errors.txt

            If there are any errors to report, it goes in that file as ordinary text - easy to view. And the dashboard should report it.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.