Comments (8)
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.
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.
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.
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.
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.
I tried to change the log folder in Linux, maybe you can try out latest version.
from tidgi-desktop.
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.
@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)
- feature: 「即将重启服务」的提示
- feature: 直接打开文件夹的模式(无 tiddlers/ 文件夹)
- bug: [img[file:../image/xx.png]]引起五彩进度条一直加载,相对路径引用外部图片无法显示 HOT 14
- bug: termux上使用最新太记npm包无法执行保存功能,之前的0.8.1pre6 可以 HOT 2
- bug: 只读模式拉取了变更,但是比较中却觉得没变更 HOT 1
- bug: 子知识库出现在了发布的主知识库中 HOT 12
- bug: Error when processing tiddler { title: '2024-01-25T14:00:00+08:00', created: '20240125072421968' HOT 1
- bug: Unhandled Promise Rejection HOT 2
- bug: 始终全屏 HOT 2
- bug: TAGI 乱码 HOT 1
- feature: more english intro resources HOT 1
- bug: 自动添加[ext 前缀 HOT 1
- feature: 本地同步 HOT 5
- feature: 有的「重启应用」改为「重启服务」 HOT 1
- bug: uncaughtException: ENOENT: no such file or directory, mkdir '20240211-0000-01-' HOT 1
- bug: 子工作区同步,没有弹提示
- bug: checkForUpdate is not a function
- bug: 升级了版本后无法打开原有的Wiki了 HOT 22
- bug: 删除主知识库,子知识库将无法正常工作,无法删除。
- feature: 在已有工作区时,新创建工作区白屏不显示webview- HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidgi-desktop.