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


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Can't write notifications.log

    Mattermost
    2
    4
    18
    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.
    • robi
      robi last edited by

      Oct 22 06:48:11 2020-10-22 06:48:11.726801842 +0000 UTC m=+3012.032390979 write error: can't open new logfile: open /app/code/logs/notifications.log: read-only file system

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @robi Good catch. I couldn't figure out where this is coming from in the admin UI. But looks like you can set this in the /app/data/config.json:

            "NotificationLogSettings": {
                "EnableConsole": true,
                "ConsoleLevel": "DEBUG",
                "ConsoleJson": true,
                "EnableFile": true,
                "FileLevel": "INFO",
                "FileJson": true,
                "FileLocation": "",
                "AdvancedLoggingConfig": ""
            },
        

        I guess set EnableFile to false. It's unclear if FileLocation is a file or a directory since I cannot find any docs on this.

        1 Reply Last reply Reply Quote 0
        • robi
          robi last edited by

          will you be symlinking the logs dir or just turning it off in the next update?

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            For new installations, I already fixed it - https://forum.cloudron.io/topic/2441/mattermost-package-updates/14 to disable EnableFile to false by default. For existing ones, users have to edit the file manually.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post