Skip to content

Error: json config file not found in /usr/local/etc/v2ray/ #1

@Spidy2099

Description

@Spidy2099

Thanks for your project, which is very useful for me who needs to use V2ray subscription without a GUI, but I met some problems. I followed the instruction, but when I use the command “bash v2ray-wrapper.sh -t” as described in instruction. I got the message "json config file not found in /usr/local/etc/v2ray/"

my content in file “v2ray-wrapper.cfg” is as follows:
URL='(I replace it with my subscription url)'
USERAGENT='' # I don't know what is a agent so I leave it unchanged.
TEMPLATE=template.json # As the instruction, I copied the 'sample-template.json' to 'template.json'
CFGDIR=/usr/local/etc/v2ray/ # This is where the v2ray-core stores its config.json, seems like the error message occurs here.
BINDUR=/usr/local/bin/ #This is where the v2ray-core stores its binary file
TESTJOBS=16 # This and the following settings remain unchanged

Besides, when I use command “bash v2ray-wrapper.sh -u”,my python countered a error said "return binascii.a2b_base64(s, strict_moe=validate) binascii.Error: Incorrect padding". I tried to goole it and replaced the "base64.decodestring(strarg)" to "base64.decodestring(strarg,'-_')" in code but it doesn't work.

Thanks again for your useful tool, I really appreciate that if you could offer me any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions