Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法在 Openeuler 24.03 LTS 上安装使用 #1223

Open
Hammerklavier-cn opened this issue Aug 19, 2024 · 5 comments
Open

无法在 Openeuler 24.03 LTS 上安装使用 #1223

Hammerklavier-cn opened this issue Aug 19, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Hammerklavier-cn
Copy link

Hammerklavier-cn commented Aug 19, 2024

Description

尽管显示成功安装:

[jyu@localhost ddns-go_6.6.8]$ sudo ./ddns-go -s install
2024/08/19 10:15:14 Install ddns-go service successfully! Please open the browser and configure it

但是局域网内连接电脑的9876端口显示连接被拒绝。

检查日志信息,似乎服务有故障。

[jyu@localhost ddns-go_6.6.8]$ service ddns-go status
Redirecting to /bin/systemctl status ddns-go.service
● ddns-go.service - Simple and easy to use DDNS. Automatically update domain name resolution to public IP (Support Aliy>
     Loaded: loaded (/etc/systemd/system/ddns-go.service; enabled; preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2024-08-19 10:15:14 CST; 1min 24s ago
    Process: 9745 ExecStart=/home/jyu/sources/ddns-go_6.6.8/ddns-go -l :9876 -f 300 -cacheTimes 5 -c /root/.ddns_go_con>
   Main PID: 9745 (code=exited, status=203/EXEC)

[jyu@localhost ddns-go_6.6.8]$ service ddns-go status
Redirecting to /bin/systemctl status ddns-go.service
● ddns-go.service - Simple and easy to use DDNS. Automatically update domain name resolution to public IP (Support Aliy>
     Loaded: loaded (/etc/systemd/system/ddns-go.service; enabled; preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2024-08-19 10:15:14 CST; 1min 33s ago
    Process: 9745 ExecStart=/home/jyu/sources/ddns-go_6.6.8/ddns-go -l :9876 -f 300 -cacheTimes 5 -c /root/.ddns_go_con>
   Main PID: 9745 (code=exited, status=203/EXEC)

系统日志如下:

Aug 19 10:09:26 localhost dbus-daemon[1097]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.13' (uid=1000 pid=9356 comm="/usr/bin/hostnamectl --transient" label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Aug 19 10:09:26 localhost systemd[1]: Starting Hostname Service...
Aug 19 10:09:26 localhost dbus-daemon[1097]: [system] Successfully activated service 'org.freedesktop.hostname1'
Aug 19 10:09:26 localhost systemd[1]: Started Hostname Service.
Aug 19 10:09:26 localhost systemd[1]: libvirtd.service: Deactivated successfully.
Aug 19 10:09:26 localhost systemd[1]: libvirtd.service: Unit process 2925 (dnsmasq) remains running after unit stopped.
Aug 19 10:09:26 localhost systemd[1]: libvirtd.service: Unit process 2926 (dnsmasq) remains running after unit stopped.
Aug 19 10:09:56 localhost systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Aug 19 10:11:17 localhost systemctl[9486]: [systemctl enable ddns-go.service] called by PID 9478 (./ddns-go -s install)
Aug 19 10:11:17 localhost systemd[1]: Reloading requested from client PID 9486 ('systemctl') (unit sshd.service)...
Aug 19 10:11:17 localhost systemd[1]: Reloading...
Aug 19 10:11:17 localhost systemd-rc-local-generator[9514]: /etc/rc.d/rc.local is not marked executable, skipping.
Aug 19 10:11:17 localhost systemd[1]: /usr/lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
Aug 19 10:11:17 localhost systemd[1]: Reloading finished in 311 ms.
Aug 19 10:11:17 localhost systemctl[9520]: [systemctl daemon-reload] called by PID 9478 (./ddns-go -s install)
Aug 19 10:11:17 localhost systemd[1]: Reloading requested from client PID 9520 ('systemctl') (unit sshd.service)...
Aug 19 10:11:17 localhost systemd[1]: Reloading...
Aug 19 10:11:17 localhost systemd-rc-local-generator[9549]: /etc/rc.d/rc.local is not marked executable, skipping.
Aug 19 10:11:17 localhost systemd[1]: /usr/lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
Aug 19 10:11:17 localhost systemd[1]: Reloading finished in 304 ms.
Aug 19 10:11:17 localhost systemctl[9554]: [systemctl start ddns-go.service] called by PID 9478 (./ddns-go -s install)
Aug 19 10:11:17 localhost systemd[1]: Started Simple and easy to use DDNS. Automatically update domain name resolution to public IP (Support Aliyun, Tencent Cloud, Dnspod, Cloudflare, Callback, Huawei Cloud, Baidu Cloud, Porkbun, GoDaddy...).
Aug 19 10:11:17 localhost systemd[1]: ddns-go.service: Main process exited, code=exited, status=203/EXEC
Aug 19 10:11:17 localhost systemd[1]: ddns-go.service: Failed with result 'exit-code'.
Aug 19 10:13:18 localhost systemd[1]: ddns-go.service: Scheduled restart job, restart counter is at 1.
Aug 19 10:13:18 localhost systemd[1]: Started Simple and easy to use DDNS. Automatically update domain name resolution to public IP (Support Aliyun, Tencent Cloud, Dnspod, Cloudflare, Callback, Huawei Cloud, Baidu Cloud, Porkbun, GoDaddy...).
Aug 19 10:13:18 localhost systemd[1]: ddns-go.service: Main process exited, code=exited, status=203/EXEC
Aug 19 10:13:18 localhost systemd[1]: ddns-go.service: Failed with result 'exit-code'.

DNS Provider

华为云

Did you search for similar issues before submitting this one?

No, I didn't

Operating System

Linux

Architecture

x86_64

Version

v6.6.8,v6.6.7

How are you running ddns-go?

Service

Any other information

Openeuler 24.03 LTS

@Hammerklavier-cn Hammerklavier-cn added the bug Something isn't working label Aug 19, 2024
@jeessy2
Copy link
Owner

jeessy2 commented Aug 19, 2024

指定配置文件路径试下

@Hammerklavier-cn
Copy link
Author

我没有使用配置文件,请问这文件路径应该填什么?

@jeessy2
Copy link
Owner

jeessy2 commented Aug 19, 2024

参考首页, 指定到/home/yourname
现在看到默认到/root下了

@Hammerklavier-cn
Copy link
Author

还是不可以

[jyu@localhost ddns-go_6.6.8]$ systemctl status ddns-go.service
● ddns-go.service - Simple and easy to use DDNS. Automatically update domain name resolution to public IP (Support Aliy>
     Loaded: loaded (/etc/systemd/system/ddns-go.service; enabled; preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2024-08-19 12:29:17 CST; 7s ago
    Process: 14048 ExecStart=/home/jyu/sources/ddns-go_6.6.8/ddns-go -l :9876 -f 300 -cacheTimes 5 -c /home/jyu/.ddns_g>
   Main PID: 14048 (code=exited, status=203/EXEC)

问题似乎在 Openeuler 默认开启 SElinux上,把他关闭就可以安装成功了。

# selinux on
[jyu@localhost ddns-go_6.6.8]$ sudo setenforce 1
[jyu@localhost ddns-go_6.6.8]$ sudo ./ddns-go -s install -c /home/jyu/.ddns_go_config.yaml
2024/08/19 12:31:44 Install ddns-go service successfully! Please open the browser and configure it
[jyu@localhost ddns-go_6.6.8]$ systemctl status ddns-go.service
● ddns-go.service - Simple and easy to use DDNS. Automatically update domain name resolution to public IP (Support Aliy>
     Loaded: loaded (/etc/systemd/system/ddns-go.service; enabled; preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2024-08-19 12:31:44 CST; 4s ago
    Process: 14368 ExecStart=/home/jyu/sources/ddns-go_6.6.8/ddns-go -l :9876 -f 300 -cacheTimes 5 -c /home/jyu/.ddns_g>
   Main PID: 14368 (code=exited, status=203/EXEC)
[jyu@localhost ddns-go_6.6.8]$ sudo ./ddns-go -s uninstall
2024/08/19 12:32:02 ddns-go service uninstalled successfully
# selinux off
[jyu@localhost ddns-go_6.6.8]$ sudo setenforce 0
[jyu@localhost ddns-go_6.6.8]$ sudo ./ddns-go -s install -c /home/jyu/.ddns_go_config.yaml
2024/08/19 12:32:23 Install ddns-go service successfully! Please open the browser and configure it
[jyu@localhost ddns-go_6.6.8]$ systemctl status ddns-go.service
● ddns-go.service - Simple and easy to use DDNS. Automatically update domain name resolution to public IP (Support Aliy>
     Loaded: loaded (/etc/systemd/system/ddns-go.service; enabled; preset: disabled)
     Active: active (running) since Mon 2024-08-19 12:32:23 CST; 23s ago
   Main PID: 14505 (ddns-go)
      Tasks: 11 (limit: 98790)
     Memory: 5.9M ()
     CGroup: /system.slice/ddns-go.service
             └─14505 /home/jyu/sources/ddns-go_6.6.8/ddns-go -l :9876 -f 300 -cacheTimes 5 -c /home/jyu/.ddns_go_config>

8月 19 12:32:23 localhost.localdomain systemd[1]: Started Simple and easy to use DDNS. Automatically update domain name>
8月 19 12:32:23 localhost.localdomain ddns-go[14505]: 2024/08/19 12:32:23 Listen on :9876
8月 19 12:32:23 localhost.localdomain ddns-go[14505]: Success to open the browser, please configure in the web page

现在 webui 也能打开了。我再配置看看有没有其他问题。

@Hammerklavier-cn
Copy link
Author

已经配置成功了。感谢你们的这个项目,真的帮了很大的忙 ^__^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants