GithubHelp home page GithubHelp logo

Comments (8)

ydewit avatar ydewit commented on May 14, 2024 1

I am not sure about AppImage's, but it seems that Snap has a standard way of dealing with this since all executable live in a RO file-system. For example, see: https://snapcraft.io/docs/environment-variables and more specifically SNAP_DATA: it seems that we want to use this as your data folder. I am not sure about logs, though, and whether there is a standard location for those.

from tidgi-desktop.

linonetwo avatar linonetwo commented on May 14, 2024

Thanks for trying this App.

Seems it is Log service that failed to create a folder to place its log.

I haven't used Ubuntu for a time, can you try mkdir /tmp/.mount_Tiddly0GVvKP/logs/ in your terminal, to see if this command is executable?

from tidgi-desktop.

ydewit avatar ydewit commented on May 14, 2024

Here is the result of trying to create the missing folder:

$ mkdir /snap/tiddlygit/11/logs/
mkdir: cannot create directory ‘/snap/tiddlygit/11/logs/’: Read-only file system

This is snap, but it happens the same for AppImage. It tries to create log file(s) in the tiddlygit snap read-only filesystem instead of a /var/... folder.

from tidgi-desktop.

linonetwo avatar linonetwo commented on May 14, 2024

Okay, I'm using MacOS, it will create log inside App folder in MacOS.

Maybe I can assign a different location for Linux.

But I can see in your previous log, it is trying to create under /tmp/.mount_Tiddly0GVvKP/logs/
Why are you saying it is trying to create under /snap/tiddlygit/11/logs/ ?


On I see, you are trying snap instead.

But as far as I know, /tmp is ok to create folder, why is it read only...

from tidgi-desktop.

ydewit avatar ydewit commented on May 14, 2024

Hi, one path is when using AppImage and the other when using Snap.

AppImage (the /tmp/.mount_TiddlyqzRREm/logs/ path is different every time you run the image):

$ ~/Downloads/TiddlyGit-0.2.1.AppImage 
A JavaScript error occurred in the main process
Uncaught Exception:
Error: EROFS: read-only file system, mkdir '/tmp/.mount_TiddlyqzRREm/logs/'
    at Object.mkdirSync (fs.js:823:3)
    at /tmp/.mount_TiddlyqzRREm/resources/app.asar/node_modules/file-stream-rotator/FileStreamRotator.js:654:20
    at Array.reduce (<anonymous>)
    at mkDirForFile (/tmp/.mount_TiddlyqzRREm/resources/app.asar/node_modules/file-stream-rotator/FileStreamRotator.js:642:27)
    at Object.FileStreamRotator.getStream (/tmp/.mount_TiddlyqzRREm/resources/app.asar/node_modules/file-stream-rotator/FileStreamRotator.js:519:5)
    at new DailyRotateFile (/tmp/.mount_TiddlyqzRREm/resources/app.asar/node_modules/winston-daily-rotate-file/daily-rotate-file.js:80:57)
    at Object.<anonymous> (/tmp/.mount_TiddlyqzRREm/resources/app.asar/build/libs/log/index.js:10:5)
    at Module._compile (internal/modules/cjs/loader.js:967:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)

The /tmp path here

Snap (the /snap/tiddlygit/11/logs/ path is really a read-only filesystem and it is not possible to create a folder here):

$ tiddlygit
A JavaScript error occurred in the main process
Uncaught Exception:
Error: EROFS: read-only file system, mkdir '/snap/tiddlygit/11/logs/'
    at Object.mkdirSync (fs.js:823:3)
    at /snap/tiddlygit/11/resources/app.asar/node_modules/file-stream-rotator/FileStreamRotator.js:654:20
    at Array.reduce (<anonymous>)
    at mkDirForFile (/snap/tiddlygit/11/resources/app.asar/node_modules/file-stream-rotator/FileStreamRotator.js:642:27)
    at Object.FileStreamRotator.getStream (/snap/tiddlygit/11/resources/app.asar/node_modules/file-stream-rotator/FileStreamRotator.js:519:5)
    at new DailyRotateFile (/snap/tiddlygit/11/resources/app.asar/node_modules/winston-daily-rotate-file/daily-rotate-file.js:80:57)
    at Object.<anonymous> (/snap/tiddlygit/11/resources/app.asar/build/libs/log/index.js:10:5)
    at Module._compile (internal/modules/cjs/loader.js:967:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)

from tidgi-desktop.

linonetwo avatar linonetwo commented on May 14, 2024

I tried to change the log folder in Linux, maybe you can try out latest version.

from tidgi-desktop.

ydewit avatar ydewit commented on May 14, 2024

It works now:

(node:124858) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Gtk-Message: 01:11:33.603: Failed to load module "appmenu-gtk-module"

from tidgi-desktop.

linonetwo avatar linonetwo commented on May 14, 2024

@ydewit that warning is ok, it is caused by 3rd party libraries.

Glad to see this works in Linux, there are still some bugs as this is in alpha, It will take some time to improve it. I don't have much spare time these days.

from tidgi-desktop.

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.