Hello,
I created a directory and two files under the
/var/log directory. I want V2Ray to be able to write something inside these two files. So, I changed the file permission as below:
Code:
# chmod -R 777 /var/log/v2ray/
# ls -l /var/log/v2ray/
total 0
-rwxrwxrwx 1 root root 0 Feb 6 01:20 access.log
-rwxrwxrwx 1 root root 0 Feb 6 01:20 error.log
But I get the following error:
Code:
v2ray[665]: 2024/02/06 01:21:11 [Info] v2ray.com/core/main/jsonem: Reading config: /etc/v2ray/config.json
v2ray[665]: main: failed to create server > v2ray.com/core/app/log: failed to initialize access logger > open /var/log/v2ray/access.log: read-only file system
How to solve it?
Thank you.