HelloZeroNet / HelloZeroNet/ZeroNet

No zeronet.conf available

Đang mở
#1,192 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
18.8k
Fork
2.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Step 1: Please describe your environment

* ZeroNet version: 0.6.0
* Operating system: NixOS

### Step 2: Describe the problem:

Trying to package zeronet, but cannot start as there is no `zeronet.conf` and there is also no template on how such a file should look like

#### Observed Results:

* zeronet fails to start:

```
- Starting ZeroNet...
ERROR:root:Unhandled exception: [Errno 30] Read-only file system: 'log'
Traceback (most recent call last):
File "/nix/store/3p5qvhnblipf23v4326cg9kg0pph459r-zeronet-0.6.0/bin/.zeronet.py-wrapped", line 19, in main
import main
File "/nix/store/3p5qvhnblipf23v4326cg9kg0pph459r-zeronet-0.6.0/bin/src/main.py", line 32, in
os.mkdir(config.log_dir)
OSError: [Errno 30] Read-only file system: 'log'
Traceback (most recent call last):
File "/nix/store/3p5qvhnblipf23v4326cg9kg0pph459r-zeronet-0.6.0/bin/.zeronet.py-wrapped", line 92, in
main()
File "/nix/store/3p5qvhnblipf23v4326cg9kg0pph459r-zeronet-0.6.0/bin/.zeronet.py-wrapped", line 65, in main
traceback.print_exc(file=open(config.log_dir + "/error.log", "a"))
IOError: [Errno 2] No such file or directory: 'log/error.log'
```

#### Expected Results:

* zeronet should start

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start with src/main.py and the startup wrapper shown in the traceback; inspect how config.log_dir is selected and how packaged launches handle writable paths. Reproduce the NixOS startup failure, then provide or document a zeronet.conf template and startup behavior that lets a packaged instance start without writing to the read-only store. Verify that startup and error logging work in the packaged environment.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
nixos, python
Lĩnh vực
build-system, operating-systems
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.