Service on Ubuntu 20.04.3 not working
- Dominant language
- C#
- Stars
- 5.1k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
I came across another issue. I tried to install the agent on an Ubuntu server and downloaded the file and installed it with `sudo /bin/bash Install_Ubuntu_x64.sh`. That worked and didn't seem to come up with any errors. However, in the Home screen, the server does not show up. After a reboot, I checked the agent service to find that there is a Loaded problem (not found) and it also says it failed to connect to the server.
```
matth@vs02:~/Downloads$ sudo service remotely-agent status
● remotely-agent.service
Loaded: not-found (Reason: Unit remotely-agent.service not found.)
Active: active (running) since Wed 2021-11-17 11:53:01 HKT; 2h 35min ago
Main PID: 3540 (Remotely_Agent)
CGroup: /system.slice/remotely-agent.service
└─3540 /usr/local/bin/Remotely/Remotely_Agent
Nov 17 14:27:36 vs02 Remotely_Agent[3540]: Skipping update check due to previous failure. Restart the service to try again, or manually install the update.
Nov 17 14:27:37 vs02 Remotely_Agent[3540]: Websocket closed. Reconnecting in 9 seconds...
Nov 17 14:27:47 vs02 Remotely_Agent[3540]: Failed to connect to server. Internet connection may be unavailable.
Nov 17 14:27:47 vs02 Remotely_Agent[3540]: Response status code does not indicate success: 405 (Method Not Allowed).
Nov 17 14:27:47 vs02 Remotely_Agent[3540]: Skipping update check due to previous failure. Restart the service to try again, or manually install the update.
Nov 17 14:27:48 vs02 Remotely_Agent[3540]: Websocket closed. Reconnecting in 9 seconds...
Nov 17 14:27:58 vs02 Remotely_Agent[3540]: Failed to connect to server. Internet connection may be unavailable.
Nov 17 14:27:58 vs02 Remotely_Agent[3540]: Response status code does not indicate success: 405 (Method Not Allowed).
Nov 17 14:27:58 vs02 Remotely_Agent[3540]: Skipping update check due to previous failure. Restart the service to try again, or manually install the update.
Nov 17 14:27:59 vs02 Remotely_Agent[3540]: Websocket closed. Reconnecting in 25 seconds...
```
**Remotely Version**
Server (can be found on about page): Version: 2021.08.17.1435
Agent (can be found in device card): n/a
**Desktop (please complete the following information):**
- OS: [e.g. iOS] Ubuntu 20.04.3 LTS, fully updated
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with Install_Ubuntu_x64.sh and the remotely-agent.service registration, then inspect the Remotely_Agent logs around the WebSocket and HTTP 405 errors on Ubuntu 20.04.3. Reproduce the installation and connection failure, and verify that the service unit is present and the agent appears in the Home screen after connecting to the server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, linux, ubuntu
- Domain
- backend, devops, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100