Skip to content

Commit 2eedbf4

Browse files
bene2k1jcirinosclwyldecarvalho-doc
authored andcommitted
feat(ins): add instances troubleshooting (scaleway#4254)
* feat(ins): add troubleshooting * feat(ins): troubleshooting * feat(ins): add more troubleshooting * feat(ins): fix typo * fix(ins): fix typo * fix(ins): fix typo * Apply suggestions from code review Co-authored-by: Jessica <[email protected]> Co-authored-by: ldecarvalho-doc <[email protected]> * Apply suggestions from code review Co-authored-by: Jessica <[email protected]> * Update compute/instances/troubleshooting/fix-common-issues.mdx --------- Co-authored-by: Jessica <[email protected]> Co-authored-by: ldecarvalho-doc <[email protected]>
1 parent cd009e6 commit 2eedbf4

File tree

2 files changed

+300
-0
lines changed

2 files changed

+300
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,296 @@
1+
---
2+
meta:
3+
title: Fix common issues with Scaleway Instances
4+
description: This page helps you fix common issues you may experience when using Scaleway Instances
5+
content:
6+
h1: Fix common issues with Scaleway Instances
7+
paragraph: This page helps you fix common issues you may experience when using Scaleway Instances
8+
tags: instances troubleshooting common issues
9+
dates:
10+
validation: 2025-01-20
11+
posted: 2025-01-20
12+
categories:
13+
- compute
14+
---
15+
16+
This page lists the most common issues you may encounter with your Scaleway Instance and provides useful tips for troubleshooting them.
17+
18+
## I experience HTTP errors on Instances
19+
20+
### Symptoms
21+
- You receive `4xx` or `5xx` errors when trying to reach your Instance via HTTP.
22+
- The website or service running on your Instance is slow or unavailable.
23+
- You cannot perform basic HTTP operations like `GET` or `POST` on your Instance endpoint.
24+
25+
### Possible causes
26+
- Incorrect firewall rules: The Instance or security groups might be blocking HTTP/HTTPS ports (`80`, `443`).
27+
- Configuration errors in the web server: Nginx, Apache, or another web server might be misconfigured.
28+
- Application-level errors: Your application code may be crashing or returning incorrect responses.
29+
- DNS misconfiguration: The domain’s DNS settings might be pointing to the wrong IP or not updated.
30+
31+
### Solution
32+
- Check security group and firewall rules:
33+
- In the [Scaleway console](https://console.scaleway.com/instance/security-groups), confirm that ports 80 (HTTP) and 443 (HTTPS) are allowed inbound for the security group used by your Instance.
34+
- If you manage your own firewall (e.g., iptables, ufw), verify that HTTP and HTTPS traffic is permitted.
35+
- Verify the web server configuration:
36+
- SSH into your Instance and inspect your web server’s config (for example `/etc/nginx/nginx.conf` or `/etc/apache2/apache2.conf`).
37+
- Look for syntax errors or missing directives (e.g., missing `server_name`).
38+
- Restart the web server to apply changes (`sudo systemctl restart nginx` or `sudo systemctl restart apache2`).
39+
- Check application logs:
40+
- Check logs in `/var/log/` or wherever your application outputs logs to identify potential errors.
41+
- Look for stack traces or misconfiguration messages.
42+
- Validate DNS records:
43+
- Use `dig <your-domain>` or `nslookup <your-domain>` to confirm the IP address matches your Instance’s public IP.
44+
- If necessary, update the DNS records and wait for propagation.
45+
46+
### Additional resources
47+
- [Scaleway Documentation: How to use security groups](/instances/how-to/use-security-groups/)
48+
- [Nginx Official Documentation](https://nginx.org/en/docs/)
49+
- [Apache HTTP Server Documentation](https://httpd.apache.org/docs/)
50+
51+
## I can't connect to my Instance
52+
53+
### Symptoms
54+
- Your SSH or RDP connection is timing out.
55+
- You see “Connection refused” or “Host unreachable” errors in your terminal.
56+
- Ping (ICMP) requests are dropped.
57+
58+
### Possible causes
59+
- Security group settings: SSH (port `22`) or RDP (port `3389`) might not be open.
60+
- Incorrect IP address: You might be connecting to the wrong public IP.
61+
- User-side firewall or network: Your local network may block outbound SSH or RDP connections.
62+
- Instance not running: The Instance may be shut down or stuck in an error state.
63+
64+
### Solution
65+
- Check your Instance status:
66+
- In the [Scaleway console](https://console.scaleway.com/instance/servers), confirm the Instance is in a running state.
67+
- Restart the Instance if it’s not responding.
68+
- Verify the Instance's public IP address:
69+
- Confirm that the IP in the Scaleway console matches the IP you are using for the connection.
70+
- Review security groups and local firewalls:
71+
- Make sure the default security groups allow SSH or RDP inbound traffic.
72+
- Check your local firewall to ensure outbound SSH (port `22`) or RDP (port `3389`) is allowed.
73+
- Use the Scaleway console to connect to your Instance:
74+
- Try using Scaleway’s web-based terminal in the console to rule out local network issues.
75+
76+
### Additional resources
77+
- [Scaleway Documentation: How to connect to your Instance](/instances/how-to/connect-to-instance/)
78+
- [Scaleway Documentation: Troubleshooting SSH connection issues to Instances](/instances/troubleshooting/cant-connect-ssh/)
79+
80+
81+
## I can't connect to my Instance using an SSH key
82+
83+
### Symptoms
84+
- You see an "Invalid SSH key” or “Permission denied (publickey)” error.
85+
- SSH prompts you for a password instead of accepting your key.
86+
- The connection works with a password but not with the SSH key.
87+
88+
### Possible causes
89+
- Incorrect permissions on the SSH key: The key file might have unsafe permissions or ownership.
90+
- Wrong username: Using `root` versus a custom user.
91+
- Misconfiguration of the SSH daemon: `sshd_config` might disallow key-based authentication.
92+
- Key not installed: The public key might not have been successfully added to the Instance.
93+
94+
### Solution
95+
- Check file permissions locally:
96+
- On your local machine, ensure the private key file has restrictive permissions:
97+
```bash
98+
chmod 600 ~/.ssh/id_rsa
99+
```
100+
- Verify that the user and group ownership are correct.
101+
- Verify the correct username:
102+
- By default, Scaleway Instances use the `root` user. Check if you have created a new user with sudo privileges and if so, use that username.
103+
- Inspect the Instance’s SSH configuration:
104+
- If you can connect via another method or console, check `/etc/ssh/sshd_config` for lines such as `PasswordAuthentication`, `PubkeyAuthentication`, and `PermitRootLogin`.
105+
- Make sure `PubkeyAuthentication yes` is set.
106+
- Re-add your SSH Key in the Scaleway console:
107+
- Go to the [SSH keys](https://console.scaleway.com/project/ssh-keys) tab in the **Project** section of theScaleway console, remove the old SSH key, then add your new, correct public key.
108+
- Restart your Instance to re-upload the list of allowed SSH keys.
109+
110+
### Additional resources
111+
- [Scaleway Documentation: How to generate an SSH key pair](/organizations-and-projects/how-to/create-ssh-key/)
112+
- [OpenSSH Documentation](https://www.openssh.com/manual.html)
113+
114+
## I can't access my Instance
115+
116+
### Symptoms
117+
- You are unable to connect to your Instance via SSH.
118+
- Your SSH key is missing, or you cannot locate the corresponding private key.
119+
120+
### Possible causes
121+
- The private SSH key associated with the Instance was lost or deleted.
122+
- The Instance’s SSH configuration or authorized keys file was altered, removing your access.
123+
124+
### Solution
125+
- Check for another SSH key:
126+
- Verify if another SSH key pair is associated with your [Scaleway account](https://console.scaleway.com/project/ssh-keys).
127+
- Login using the alternative SSH key
128+
129+
- Use the Scaleway console to add a new SSH key:
130+
- Upload another SSH key in the [SSH key section](https://console.scaleway.com/project/ssh-keys) of your Instance's Scaleway project.
131+
- Reboot the Instance from the console to re-upload the new key to the Instance.
132+
133+
### Additional resources
134+
- [Scaleway Documentation: How to generate an SSH key pair](/organizations-and-projects/how-to/create-ssh-key/)
135+
- [Scaleway Documentation: How to power off your Instance](/instances/how-to/power-off-instance/)
136+
137+
## My Instance is locked
138+
139+
### Symptoms
140+
- Attempts to modify or delete the Instance fail with an “Instance is protected” error.
141+
- You see a message in the Scaleway console that the Instance is protected or locked.
142+
143+
### Possible causes
144+
- Security measure: The Instance might be locked due to non-payment or administrative hold.
145+
- User-applied lock: You (or another administrator) enabled resource locking to prevent accidental deletion.
146+
- Ongoing operation: A pending snapshot or backup can temporarily lock the Instance.
147+
148+
### Solution
149+
- Check billing and support tickets:
150+
- Ensure your Scaleway account is in good standing with no overdue invoices.
151+
- If there is a lock from Scaleway support, resolve any open tickets or compliance issues.
152+
- Disable the Protected Instance feature:
153+
- In the Scaleway console, go to your Instance settings and turn off the lock if you set it manually.
154+
- Wait for ongoing maintenance operations to complete:
155+
- If an action is running on your Instance, you must wait until it finishes before you can modify the Instance.
156+
157+
### Additional resources
158+
- [Scaleway Billing FAQ](/faq/billing/)
159+
- [Scaleway Documentation: How to use the Protected Instance feature](/instances/how-to/use-protected-instance/)
160+
161+
## How can I open port 25 for my Instances?
162+
163+
### Symptoms
164+
- Your application cannot send emails (SMTP) from the Instance.
165+
- Port 25 connections are blocked or refused.
166+
167+
### Possible causes
168+
- Default SMTP restriction: Access to port 25 is restricted by default to prevent spam.
169+
- Security group settings: The inbound/outbound rules might block port 25.
170+
- Missing or incorrect mail server configuration: Postfix, Exim, or another MTA might be misconfigured.
171+
172+
### Solution
173+
- Configure your security group:
174+
- In the Scaleway console, ensure outbound connections on port 25 are allowed.
175+
- Set up proper SPF/DKIM/DMARC:
176+
- To avoid being flagged as spam, configure DNS records for email authentication.
177+
- Use "Authenticated SMTP" (Port 587 or 465):
178+
- If port 25 is restricted, consider using a mail relay or an authenticated SMTP service on port 587 or 465.
179+
180+
### Additional resources
181+
- [Scaleway Documentation: How to send emails from your Instance](/instances/how-to/send-emails-from-your-instance/)
182+
- [Scaleway Tutorial: Setting up a secure mail server on Ubuntu 22.04 LTS (Jammy Jellyfish)](/tutorials/setup-postfix-ubuntu-bionic/)
183+
- [Scaleway general terms of service](https://www-uploads.scaleway.com/General_Terms_of_Services_v17072024_45d4879c08.pdf)
184+
- [Postfix Documentation](http://www.postfix.org/documentation.html)
185+
- [SPF/DKIM/DMARC Basics](https://dmarc.org/overview/)
186+
187+
## Routed IP errors
188+
189+
### Symptoms
190+
- Your Instance does not respond when using a routed IP.
191+
- Packets might be dropped or misrouted.
192+
- Services are not accessible via the secondary IP.
193+
194+
### Possible causes
195+
- Incorrect network configuration: The routed IP might not be properly configured on your Instance.
196+
- No static routes set: A missing route or gateway could cause traffic to fail.
197+
- security groups or firewall blocking: The traffic from or to the routed IP might be filtered.
198+
199+
### Solution
200+
- Verify the IP configuration in the Scaleway console:
201+
- Confirm that the routed IP is associated with the correct Instance.
202+
- Update your network configuration files:
203+
- On your Instance, add the secondary IP to the appropriate network interface (e.g., `eth0:0` or via netplan).
204+
- Make sure the netmask and gateway are set according to the instructions.
205+
- Check your routing table:
206+
- Use `ip route` or `route -n` to confirm the route for the additional IP is properly set.
207+
- Test connectivity:
208+
- Ping the secondary IP from an external source. If it fails, look at local logs (`dmesg` or `/var/log/syslog`) for network errors.
209+
- Adjust your security group:
210+
- Ensure inbound and outbound traffic is allowed for both IP addresses.
211+
212+
### Additional resources
213+
- [Scaleway Documentation: How to use flexible IP addresses with Instances](/instances/how-to/use-flexips/)
214+
- [Scaleway Troubleshooting: Fix unreachable Ubuntu Focal Instance when it has two public IP addresses](/instances/troubleshooting/fix-unreachable-focal-with-two-public-ips/)
215+
- [Scaleway Troubleshooting: Fix lost IPv6 connectivity on old Debian Buster images when migrating to routed IP](/instances/troubleshooting/fix-lost-ip-connectivity-on-debian-buster/)
216+
- [Scaleway Troubleshooting: Fix unreachable IPv6 RHEL-based Instances after transitioning to routed IP](/instances/troubleshooting/fix-unreachable-ipv6-rhel-based-instance/)
217+
- [Netplan documenation](https://netplan.readthedocs.io/en/stable/)
218+
219+
## Disk space errors with Instances
220+
221+
### Symptoms
222+
- “No space left on device” errors when installing packages or writing files.
223+
- The system becomes unresponsive, or services crash due to insufficient disk space.
224+
- You cannot create or expand files on the Instance.
225+
226+
### Possible causes
227+
- Full root partition: Logs or application data have consumed all available disk space.
228+
- Improper partition setup: Your primary partition might be too small.
229+
- Uncleaned temporary files: `/tmp`, `/var/tmp`, or application cache directories might be full.
230+
231+
### Solution
232+
- Check your disk usage:
233+
- Use `df -h` to check available space on all mounted volumes.
234+
- Use `du -sh /var/log/*` or other directories to find large files.
235+
- Clean up unnecessary files:
236+
- Remove old logs from `/var/log/` or archived backups you no longer need.
237+
- Clear temporary files in `/tmp` or application cache directories.
238+
- Resize or add a volume:
239+
- If you consistently run out of space, consider resizing your volume or attaching an additional volume via the Scaleway console.
240+
- Implement log rotation:
241+
- Configure `logrotate` or other log management solutions to prevent logs from filling the disk.
242+
243+
### Additional resources
244+
- [Scaleway Documentation: How to attach a Block Storage volume to an Instance](/block-storage/how-to/attach-a-volume/)
245+
- [Scaleway Documentation: How to increase the size of your Block Storage volumes](/block-storage/how-to/increase-block-volume/)
246+
- [Linux Log Rotation Guide](https://linux.die.net/man/8/logrotate)
247+
248+
## Packet loss issues with Instances
249+
250+
### Symptoms
251+
- High latency or intermittent connectivity to your Instance.
252+
- Pings show dropped packets.
253+
- Applications that rely on constant connectivity (VoIP, real-time apps) experience disruptions.
254+
255+
### Possible causes
256+
- Network congestion: On either the Instance side or your local network.
257+
- Incorrect MTU settings: The maximum transmission unit might cause fragmentation issues.
258+
- Firewall or rate limits: Overly strict firewall rules can drop packets.
259+
- Hardware or routing issues: Upstream or local network hardware problems.
260+
261+
### Solution
262+
- Run basic network diagnostics:
263+
- Use `ping` and `traceroute` from both your local machine and another external server.
264+
- Check if packet loss is local or global.
265+
- Check the Instance's load:
266+
- High CPU or network usage on your Instance can cause dropped packets. Monitor system resources with `top` or `htop`.
267+
- Optimize the MTU
268+
- Try lowering the MTU (Maximum transmission unit) to 1400 or 1450 and see if packet loss improves, especially in VPN or container setups.
269+
- Adjust firewall/security groups:
270+
- Confirm that your firewall is not inadvertently dropping packets or rate-limiting ICMP.
271+
272+
### Additional resources
273+
- [Scaleway Documentation: How to use security groups](/instances/how-to/use-security-groups/)
274+
- [Scaleway Documentation: Preventing outgoing DDoS](/instances/reference-content/preventing-outgoing-ddos/)
275+
- [Scaleway Tutorial: Configuring Firewalls for Instances](/tutorials/installation-uncomplicated-firewall/)
276+
277+
## I can't delete my Instance
278+
279+
### Symptoms
280+
- Attempts to delete the Instance fail with an “Instance is protected” error.
281+
- You see a message in the Scaleway console that the Instance is protected or locked.
282+
283+
### Possible causes
284+
- User-applied lock: You (or another administrator) enabled resource locking to prevent accidental deletion.
285+
286+
### Solution
287+
- Disable the Protected Instance feature:
288+
- In the Scaleway console, go to your Instance settings and turn off the lock if you set it manually.
289+
290+
### Additional resources
291+
- [Scaleway Documentation: How to use the Protected Instance feature](/instances/how-to/use-protected-instance/)
292+
293+
## Next steps
294+
295+
- Always consult the official [Scaleway Instances Documentation](/instances/) for detailed, up-to-date information to troubleshoot your Instance.
296+
- If you are still experiencing issues after following these tips, open a [support ticket](https://console.scaleway.com/support) in your Scaleway console, providing detailed descriptions of your issue, logs, screenshots, or error messages. This will help the support team diagnose and resolve your issue more quickly.

menu/navigation.json

+4
Original file line numberDiff line numberDiff line change
@@ -1525,6 +1525,10 @@
15251525
},
15261526
{
15271527
"items": [
1528+
{
1529+
"label": "Fix common issues with Instances",
1530+
"slug": "fix-common-issues"
1531+
},
15281532
{
15291533
"label": "Troubleshooting SSH connection issues",
15301534
"slug": "cant-connect-ssh"

0 commit comments

Comments
 (0)