System details
RStudio Edition : <-- Server -->
RStudio Version : RStudio 2022.07.2+576 "Spotted Wakerobin" Release (e7373ef832b49b2a9b88162cfe7eac5f22c40b34, 2022-09-06) for Ubuntu Bionic; Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0
OS Version : Ubuntu 20.04.6 LTS ;Release: 20.04
R Version : 4.1.3
Steps to reproduce the problem
when I run code chunk in Rnotebook, the browser prompted a message “nable to establish connection to rstudio server”
Describe the problem in detail
the problem seemed to be related to the zerotier-one service.
Initially, I rebooted my server, which is assumably only accessible via local network ip address and found that the network didn’t work anymore: the ssh remote and the Internet connection were all lost. I found that the network configuration was lost after the reboot. Therefore, I reconfigured it via ‘systemd networked’ service, and everything seemed ok then.
However, when I accessed the Rstudio server via “https://the physical local network ip:8787” , and tried to run code in Rnotebook, the problem above occurred. I tried uninstall Rstudio & R, and reinstall them again, but neither helped.
Later, I found two methods could avoid this problem:
- Creating an ssh tunnel via
ssh -L 8787:localhost:8787 username@local network ip
, and then access the Rstudio in a browser via “localhost:8787”. - Access the Rstudio through a network created by zerotier-one, from a network independent of the physical local network where the server was in. In a similar way, accessing via “https:// zerotier-one-ip:8787” in the browser could avoid this problem, too
Overall, it seems that there may be some settings created by zerotier-one, which led to the loss of network configuration after rebooting and the network error when access via physical ip:8787 is applied.
But I have no idea how to solve this problem and restore to the previous normal state. Can you please help me work out on that?
Thanks very much !
p.s. for any potential information, the jupyterhub service on my server encountered a similar problem: it is okay to create new files, rename files, and run code in notebooks. However, the network error occurred when I tried to save any change made to the notebook. Also, the above two methods could avoid that.
additional info
(base) root@dell-PowerEdge-R7525:/home/data/wangp_sc# journalctl -u systemd-networkd
Jul 15 19:10:04 dell-PowerEdge-R7525 systemd[1]: /lib/systemd/system/systemd-networkd.service:32: Unknown key name 'Protect>
Jul 15 19:10:04 dell-PowerEdge-R7525 systemd[1]: /lib/systemd/system/systemd-networkd.service:51: Failed to parse service t>
– Boot bf8f091e48f54f7ca9210d0900f772b9 –
Sep 02 21:48:02 dell-PowerEdge-R7525 systemd[1]: Starting systemd-networkd.service - Network Service…
Sep 02 21:48:02 dell-PowerEdge-R7525 systemd-networkd[26159]: /etc/systemd/networkd.conf:27: Unknown section ‘DHCPv4’. Igno>
Sep 02 21:48:02 dell-PowerEdge-R7525 systemd-networkd[26159]: /etc/systemd/networkd.conf:31: Unknown section ‘DHCPv6’. Igno>
Sep 02 21:48:02 dell-PowerEdge-R7525 systemd-networkd[26159]: eno8303: Gained IPv6LL
Sep 02 21:48:02 dell-PowerEdge-R7525 systemd-networkd[26159]: Enumeration completed
Sep 02 21:48:02 dell-PowerEdge-R7525 systemd[1]: Started systemd-networkd.service - Network Service.
Sep 02 21:48:02 dell-PowerEdge-R7525 systemd-networkd[26159]: eno8303: IPv6 successfully enabled
Sep 02 21:49:46 dell-PowerEdge-R7525 systemd[1]: Stopping systemd-networkd.service - Network Configuration…
Sep 02 21:49:46 dell-PowerEdge-R7525 systemd[1]: systemd-networkd.service: Deactivated successfully.
Sep 02 21:49:46 dell-PowerEdge-R7525 systemd[1]: Stopped systemd-networkd.service - Network Configuration.
Sep 02 21:49:46 dell-PowerEdge-R7525 systemd[1]: Starting systemd-networkd.service - Network Configuration…
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd-networkd[27475]: lo: Link UP
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd-networkd[27475]: lo: Gained carrier
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd-networkd[27475]: eno8303: Link UP
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd-networkd[27475]: eno8303: Gained carrier
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd-networkd[27475]: eno8403: Link UP
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd-networkd[27475]: docker0: Link UP
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd-networkd[27475]: br-9259a62e66b3: Link UP
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd-networkd[27475]: eno8303: Gained IPv6LL
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd-networkd[27475]: Enumeration completed
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd[1]: Started systemd-networkd.service - Network Configuration.
Sep 02 21:49:47 dell-PowerEdge-R7525 systemd-networkd[27475]: eno8303: Configuring with /etc/systemd/network/10-static.netw>
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd[1]: Stopping systemd-networkd.service - Network Configuration…
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[27475]: eno8303: DHCPv6 lease lost
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd[1]: systemd-networkd.service: Deactivated successfully.
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd[1]: Stopped systemd-networkd.service - Network Configuration.
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd[1]: Starting systemd-networkd.service - Network Configuration…
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[29246]: lo: Link UP
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[29246]: lo: Gained carrier
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[29246]: eno8303: Link UP
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[29246]: eno8303: Gained carrier
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[29246]: eno8403: Link UP
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[29246]: docker0: Link UP
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[29246]: br-9259a62e66b3: Link UP
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[29246]: eno8303: Gained IPv6LL
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[29246]: Enumeration completed
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd[1]: Started systemd-networkd.service - Network Configuration.
Sep 02 21:52:09 dell-PowerEdge-R7525 systemd-networkd[29246]: eno8303: Configuring with /etc/systemd/network/10-static.netw>
Sep 02 21:58:39 dell-PowerEdge-R7525 systemd[1]: Stopping systemd-networkd.service - Network Configuration…
Sep 02 21:58:39 dell-PowerEdge-R7525 systemd-networkd[29246]: eno8303: DHCPv6 lease lost
Sep 02 21:58:39 dell-PowerEdge-R7525 systemd[1]: systemd-networkd.service: Deactivated successfully.
Sep 02 21:58:39 dell-PowerEdge-R7525 systemd[1]: Stopped systemd-networkd.service - Network Configuration.
– Boot dc466b75708f424eb1a92b26be5bc293 –
Sep 02 22:03:14 dell-PowerEdge-R7525 systemd-networkd[2658]: lo: Link UP
Sep 02 22:03:14 dell-PowerEdge-R7525 systemd-networkd[2658]: lo: Gained carrier
Sep 02 22:03:14 dell-PowerEdge-R7525 systemd-networkd[2658]: Enumeration completed
Sep 02 22:03:14 dell-PowerEdge-R7525 systemd[1]: Started systemd-networkd.service - Network Configuration.
Sep 02 22:03:14 dell-PowerEdge-R7525 systemd-networkd[2658]: eno8303: Configuring with /etc/systemd/network/10-static.netwo>
Sep 02 22:03:14 dell-PowerEdge-R7525 systemd-networkd[2658]: eno8303: Link UP
Sep 02 22:03:17 dell-PowerEdge-R7525 systemd-networkd[2658]: eno8303: Gained carrier
Sep 02 22:03:18 dell-PowerEdge-R7525 systemd-networkd[2658]: eno8303: Gained IPv6LL
Sep 02 22:03:20 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Link UP
Sep 02 22:03:20 dell-PowerEdge-R7525 systemd-networkd[2658]: br-9259a62e66b3: Link UP
Sep 02 22:09:42 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzj: Link UP
Sep 02 22:09:42 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzj: Gained carrier
Sep 02 22:09:44 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzj: Gained IPv6LL
Sep 03 15:00:36 dell-PowerEdge-R7525 systemd-networkd[2658]: veth6c7f0f8: Link UP
Sep 03 15:00:37 dell-PowerEdge-R7525 systemd-networkd[2658]: veth6c7f0f8: Gained carrier
Sep 03 15:00:37 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Gained carrier
Sep 03 15:00:38 dell-PowerEdge-R7525 systemd-networkd[2658]: veth6c7f0f8: Gained IPv6LL
Sep 03 15:00:38 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Gained IPv6LL
Sep 03 15:05:09 dell-PowerEdge-R7525 systemd-networkd[2658]: veth6c7f0f8: Lost carrier
Sep 03 15:05:09 dell-PowerEdge-R7525 systemd-networkd[2658]: veth6c7f0f8: Link DOWN
Sep 03 15:05:10 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Lost carrier
Sep 03 15:05:27 dell-PowerEdge-R7525 systemd-networkd[2658]: veth3b3f1f8: Link UP
Sep 03 15:05:27 dell-PowerEdge-R7525 systemd-networkd[2658]: veth3b3f1f8: Gained carrier
Sep 03 15:05:27 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Gained carrier
Sep 03 15:05:29 dell-PowerEdge-R7525 systemd-networkd[2658]: veth3b3f1f8: Gained IPv6LL
Sep 03 15:07:50 dell-PowerEdge-R7525 systemd-networkd[2658]: veth3b3f1f8: Lost carrier
Sep 03 15:07:51 dell-PowerEdge-R7525 systemd-networkd[2658]: veth3b3f1f8: Link DOWN
Sep 03 15:07:51 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Lost carrier
Sep 03 15:08:05 dell-PowerEdge-R7525 systemd-networkd[2658]: vethdbc3cc9: Link UP
Sep 03 15:08:05 dell-PowerEdge-R7525 systemd-networkd[2658]: vethdbc3cc9: Gained carrier
Sep 03 15:08:05 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Gained carrier
Sep 03 15:08:07 dell-PowerEdge-R7525 systemd-networkd[2658]: vethdbc3cc9: Gained IPv6LL
Sep 03 15:08:28 dell-PowerEdge-R7525 systemd-networkd[2658]: vethdbc3cc9: Lost carrier
Sep 03 15:08:28 dell-PowerEdge-R7525 systemd-networkd[2658]: vethdbc3cc9: Link DOWN
Sep 03 15:08:29 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Lost carrier
Sep 03 15:08:29 dell-PowerEdge-R7525 systemd-networkd[2658]: vetha5883cf: Link UP
Sep 03 15:08:30 dell-PowerEdge-R7525 systemd-networkd[2658]: vetha5883cf: Gained carrier
Sep 03 15:08:30 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Gained carrier
Sep 03 15:08:31 dell-PowerEdge-R7525 systemd-networkd[2658]: vetha5883cf: Gained IPv6LL
Sep 03 15:13:20 dell-PowerEdge-R7525 systemd-networkd[2658]: vetha5883cf: Lost carrier
Sep 03 15:13:20 dell-PowerEdge-R7525 systemd-networkd[2658]: vetha5883cf: Link DOWN
Sep 03 15:13:21 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Lost carrier
Sep 03 15:13:31 dell-PowerEdge-R7525 systemd-networkd[2658]: veth20dd6d8: Link UP
Sep 03 15:13:31 dell-PowerEdge-R7525 systemd-networkd[2658]: veth20dd6d8: Gained carrier
Sep 03 15:13:31 dell-PowerEdge-R7525 systemd-networkd[2658]: docker0: Gained carrier
Sep 03 15:13:33 dell-PowerEdge-R7525 systemd-networkd[2658]: veth20dd6d8: Gained IPv6LL
Sep 04 12:34:11 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzj: Link DOWN
Sep 04 12:34:11 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzj: Lost carrier
Sep 04 12:46:34 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzj: Link UP
Sep 04 12:46:34 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzj: Gained carrier
Sep 04 12:46:36 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzj: Gained IPv6LL
Sep 04 13:58:43 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzk: Link UP
Sep 04 13:58:43 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzk: Gained carrier
Sep 04 13:58:45 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzk: Gained IPv6LL
Sep 04 13:59:30 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzk: Link DOWN
Sep 04 13:59:30 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzk: Lost carrier
Sep 04 13:59:46 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzk: Link UP
Sep 04 13:59:46 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzk: Gained carrier
Sep 04 13:59:48 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzk: Gained IPv6LL
Sep 04 14:00:11 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzk: Link DOWN
Sep 04 14:00:11 dell-PowerEdge-R7525 systemd-networkd[2658]: ztc25c6zzk: Lost carrier
(base) root@dell-PowerEdge-R7525:/home/data/wangp_sc# cat /etc/systemd/network
network/ networkd.conf
(base) root@dell-PowerEdge-R7525:/home/data/wangp_sc# cat /etc/systemd/network/10-static.network
[Match]
Name=eno8303
[Network]
Address=10.11.123.11/24
Gateway=10.11.123.1
DNS=119.29.29.29
DNS=8.8.4.4
(base) root@dell-PowerEdge-R7525:/home/data/wangp_sc# cat /etc/systemd/network
network/ networkd.conf
(base) root@dell-PowerEdge-R7525:/home/data/wangp_sc# cat /etc/systemd/networkd.conf
[Network]
#SpeedMeter=no
#SpeedMeterIntervalSec=10sec
#ManageForeignRoutingPolicyRules=yes
#ManageForeignRoutes=yes
#RouteTable=
#IPv6PrivacyExtensions=no
[DHCPv4]
#DUIDType=vendor
#DUIDRawData=
[DHCPv6]
#DUIDType=vendor
#DUIDRawData=