[GH-ISSUE #421] "The server socket has failed to listen..." upon attempt to train model #215

Closed
opened 2026-10-20 09:56:47 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @ccodaze on GitHub (Jun 3, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/421

Hi, I'm attempting to train an RVC model using the newest update and the web GUI. Unfortunately, on the "train model" step (and not before), this error occurs:

C:\Users\caleb\Documents\RVC>runtime\python.exe infer-web.py --pycmd runtime\python.exe --port 7897
Use Language: en_US
Running on local URL:  http://0.0.0.0:7897
write filelist done
use gpus: 0
runtime\python.exe train_nsf_sim_cache_sid_load_pretrain.py -e sona -sr 40k -f0 1 -bs 4 -g 0 -te 200 -se 5 -pg pretrained_v2/f0G40k.pth -pd pretrained_v2/f0D40k.pth -l 0 -c 0 -sw 0 -v v2
INFO:sona:{'train': {'log_interval': 200, 'seed': 1234, 'epochs': 20000, 'learning_rate': 0.0001, 'betas': [0.8, 0.99], 'eps': 1e-09, 'batch_size': 4, 'fp16_run': True, 'lr_decay': 0.999875, 'segment_size': 12800, 'init_lr_ratio': 1, 'warmup_epochs': 0, 'c_mel': 45, 'c_kl': 1.0}, 'data': {'max_wav_value': 32768.0, 'sampling_rate': 40000, 'filter_length': 2048, 'hop_length': 400, 'win_length': 2048, 'n_mel_channels': 125, 'mel_fmin': 0.0, 'mel_fmax': None, 'training_files': './logs\\sona/filelist.txt'}, 'model': {'inter_channels': 192, 'hidden_channels': 192, 'filter_channels': 768, 'n_heads': 2, 'n_layers': 6, 'kernel_size': 3, 'p_dropout': 0, 'resblock': '1', 'resblock_kernel_sizes': [3, 7, 11], 'resblock_dilation_sizes': [[1, 3, 5], [1, 3, 5], [1, 3, 5]], 'upsample_rates': [10, 10, 2, 2], 'upsample_initial_channel': 512, 'upsample_kernel_sizes': [16, 16, 4, 4], 'use_spectral_norm': False, 'gin_channels': 256, 'spk_embed_dim': 109}, 'model_dir': './logs\\sona', 'experiment_dir': './logs\\sona', 'save_every_epoch': 5, 'name': 'sona', 'total_epoch': 200, 'pretrainG': 'pretrained_v2/f0G40k.pth', 'pretrainD': 'pretrained_v2/f0D40k.pth', 'version': 'v2', 'gpus': '0', 'sample_rate': '40k', 'if_f0': 1, 'if_latest': 0, 'save_every_weights': '0', 'if_cache_data_in_gpu': 0}
[W C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\distributed\c10d\socket.cpp:426] [c10d] The server socket has failed to bind to [calebs-desktop]:51545 (system error: 10013 - An attempt was made to access a socket in a way forbidden by its access permissions.).
[W C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\distributed\c10d\socket.cpp:426] [c10d] The server socket has failed to bind to calebs-desktop:51545 (system error: 10013 - An attempt was made to access a socket in a way forbidden by its access permissions.).
[E C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\distributed\c10d\socket.cpp:462] [c10d] The server socket has failed to listen on any local network address.
Process Process-1:
Traceback (most recent call last):
  File "multiprocessing\process.py", line 315, in _bootstrap
  File "multiprocessing\process.py", line 108, in run
  File "C:\Users\caleb\Documents\RVC\train_nsf_sim_cache_sid_load_pretrain.py", line 99, in run
    dist.init_process_group(
  File "C:\Users\caleb\Documents\RVC\runtime\lib\site-packages\torch\distributed\distributed_c10d.py", line 888, in init_process_group
    store, rank, world_size = next(rendezvous_iterator)
  File "C:\Users\caleb\Documents\RVC\runtime\lib\site-packages\torch\distributed\rendezvous.py", line 245, in _env_rendezvous_handler
    store = _create_c10d_store(master_addr, master_port, rank, world_size, timeout)
  File "C:\Users\caleb\Documents\RVC\runtime\lib\site-packages\torch\distributed\rendezvous.py", line 176, in _create_c10d_store
    return TCPStore(
RuntimeError: The server socket has failed to listen on any local network address. The server socket has failed to bind to [calebs-desktop]:51545 (system error: 10013 - An attempt was made to access a socket in a way forbidden by its access permissions.). The server socket has failed to bind to calebs-desktop:51545 (system error: 10013 - An attempt was made to access a socket in a way forbidden by its access permissions.).

I haven't seen anything about this specifically online. Any help would be appreciated. Thanks!

Originally created by @ccodaze on GitHub (Jun 3, 2023). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/421 Hi, I'm attempting to train an RVC model using the newest update and the web GUI. Unfortunately, on the "train model" step (and not before), this error occurs: ``` C:\Users\caleb\Documents\RVC>runtime\python.exe infer-web.py --pycmd runtime\python.exe --port 7897 Use Language: en_US Running on local URL: http://0.0.0.0:7897 write filelist done use gpus: 0 runtime\python.exe train_nsf_sim_cache_sid_load_pretrain.py -e sona -sr 40k -f0 1 -bs 4 -g 0 -te 200 -se 5 -pg pretrained_v2/f0G40k.pth -pd pretrained_v2/f0D40k.pth -l 0 -c 0 -sw 0 -v v2 INFO:sona:{'train': {'log_interval': 200, 'seed': 1234, 'epochs': 20000, 'learning_rate': 0.0001, 'betas': [0.8, 0.99], 'eps': 1e-09, 'batch_size': 4, 'fp16_run': True, 'lr_decay': 0.999875, 'segment_size': 12800, 'init_lr_ratio': 1, 'warmup_epochs': 0, 'c_mel': 45, 'c_kl': 1.0}, 'data': {'max_wav_value': 32768.0, 'sampling_rate': 40000, 'filter_length': 2048, 'hop_length': 400, 'win_length': 2048, 'n_mel_channels': 125, 'mel_fmin': 0.0, 'mel_fmax': None, 'training_files': './logs\\sona/filelist.txt'}, 'model': {'inter_channels': 192, 'hidden_channels': 192, 'filter_channels': 768, 'n_heads': 2, 'n_layers': 6, 'kernel_size': 3, 'p_dropout': 0, 'resblock': '1', 'resblock_kernel_sizes': [3, 7, 11], 'resblock_dilation_sizes': [[1, 3, 5], [1, 3, 5], [1, 3, 5]], 'upsample_rates': [10, 10, 2, 2], 'upsample_initial_channel': 512, 'upsample_kernel_sizes': [16, 16, 4, 4], 'use_spectral_norm': False, 'gin_channels': 256, 'spk_embed_dim': 109}, 'model_dir': './logs\\sona', 'experiment_dir': './logs\\sona', 'save_every_epoch': 5, 'name': 'sona', 'total_epoch': 200, 'pretrainG': 'pretrained_v2/f0G40k.pth', 'pretrainD': 'pretrained_v2/f0D40k.pth', 'version': 'v2', 'gpus': '0', 'sample_rate': '40k', 'if_f0': 1, 'if_latest': 0, 'save_every_weights': '0', 'if_cache_data_in_gpu': 0} [W C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\distributed\c10d\socket.cpp:426] [c10d] The server socket has failed to bind to [calebs-desktop]:51545 (system error: 10013 - An attempt was made to access a socket in a way forbidden by its access permissions.). [W C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\distributed\c10d\socket.cpp:426] [c10d] The server socket has failed to bind to calebs-desktop:51545 (system error: 10013 - An attempt was made to access a socket in a way forbidden by its access permissions.). [E C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\distributed\c10d\socket.cpp:462] [c10d] The server socket has failed to listen on any local network address. Process Process-1: Traceback (most recent call last): File "multiprocessing\process.py", line 315, in _bootstrap File "multiprocessing\process.py", line 108, in run File "C:\Users\caleb\Documents\RVC\train_nsf_sim_cache_sid_load_pretrain.py", line 99, in run dist.init_process_group( File "C:\Users\caleb\Documents\RVC\runtime\lib\site-packages\torch\distributed\distributed_c10d.py", line 888, in init_process_group store, rank, world_size = next(rendezvous_iterator) File "C:\Users\caleb\Documents\RVC\runtime\lib\site-packages\torch\distributed\rendezvous.py", line 245, in _env_rendezvous_handler store = _create_c10d_store(master_addr, master_port, rank, world_size, timeout) File "C:\Users\caleb\Documents\RVC\runtime\lib\site-packages\torch\distributed\rendezvous.py", line 176, in _create_c10d_store return TCPStore( RuntimeError: The server socket has failed to listen on any local network address. The server socket has failed to bind to [calebs-desktop]:51545 (system error: 10013 - An attempt was made to access a socket in a way forbidden by its access permissions.). The server socket has failed to bind to calebs-desktop:51545 (system error: 10013 - An attempt was made to access a socket in a way forbidden by its access permissions.). ``` I haven't seen anything about this specifically online. Any help would be appreciated. Thanks!
Author
Owner

@RVC-Boss commented on GitHub (Jun 3, 2023):

You can try updating the latest code, restart rvc-webui and try again
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/train_nsf_sim_cache_sid_load_pretrain.py
I change it to random-port.

<!-- gh-comment-id:1574812791 --> @RVC-Boss commented on GitHub (Jun 3, 2023): You can try updating the latest code, restart rvc-webui and try again https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/train_nsf_sim_cache_sid_load_pretrain.py I change it to random-port.
Author
Owner

@ccodaze commented on GitHub (Jun 3, 2023):

That worked perfectly, thank you so much!

<!-- gh-comment-id:1574846316 --> @ccodaze commented on GitHub (Jun 3, 2023): That worked perfectly, thank you so much!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#215
No description provided.