Computer >> 컴퓨터 >  >> 프로그램 작성 >> HTML

'503 서비스를 일시적으로 사용할 수 없음' 오류를 수정하는 방법은 무엇입니까?

웹사이트가 가동되면 수십만 명의 방문자를 끌어들일 수 있습니다.

더 많은 방문자를 그릴수록 더 많은 수익을 얻을 수 있습니다.

그러나 웹 사이트에서 503 오류가 발생하고 무엇을 해야 할지 모릅니다. 방문객들이 떠나고 있습니다. SEO가 영향을 받습니다. 수익이 떨어지고 있습니다.

그러나 모든 것이 손실되지는 않습니다. 웹사이트를 즉시 가동할 수 있습니다.

수년에 걸쳐 우리는 많은 웹사이트가 '503 서비스를 일시적으로 사용할 수 없음' 오류를 수정하도록 성공적으로 도왔습니다.

사이트에서 이 오류를 제거하기 위해 취해야 하는 정확한 단계를 알려 드리겠습니다. 또한 오류가 다시 발생하지 않도록 방지하는 방법도 배우게 됩니다.

503 서비스를 일시적으로 사용할 수 없다는 것은 무엇을 의미합니까?

긴 대답은 짧게:서버 과부하로 인해 웹사이트에서 503 Server Temporarily Unavailable Error가 발생합니다.

서버는 웹사이트가 호스팅되는 곳입니다. 집을 지을 땅이라고 생각하십시오. 집이 무겁고 땅이 늪이라면 집은 카드 더미처럼 무너질 것입니다.

마찬가지로 트래픽 급증과 같은 활동을 처리할 수 없는 서버에 사이트를 구축한 경우 오류가 발생합니다.

이것은 질문을 던집니다. 귀하의 사이트는 지금까지 괜찮았습니다. 그런데 왜 서버가 지금 귀하의 활동을 처리할 수 없습니까?

서버가 과부하될 수 있는 가능한 이유를 살펴보겠습니다.

  • 플러그인이나 테마 또는 핵심 업데이트 또는 설치
  • 트래픽 급증
  • 오작동하는 맞춤 코드 스니펫

1. 플러그인, 테마 또는 코어 업데이트 또는 설치

WordPress 웹 사이트에 플러그인, 테마 또는 코어를 업데이트하거나 설치할 때 기본적으로 서버에 작업을 수행하도록 요청하는 것입니다. 서버가 이미 다른 작업으로 한계에 다다랐다면 압도되어 응답을 멈춥니다. 503 오류가 발생합니다.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

2. 트래픽 급증

사이트가 평소보다 훨씬 더 많은 트래픽을 수신하기 시작하는 경우 서버에서 오류가 발생할 수도 있습니다. . 누군가가 어딘가에서 귀하의 사이트를 언급하여 사람들이 귀하의 사이트로 몰려들고 있습니다. 또는 귀하의 웹사이트가 DDoS라는 특정 유형의 해킹 공격을 받고 있습니다. 이러한 유형의 공격에서 해커는 가짜 트래픽을 사이트로 전송하여 웹사이트를 압도하려고 시도합니다.

일반적으로 방문자가 사이트에 와서 페이지를 열 때마다 서버가 작동을 시작하고 방문자의 브라우저에 페이지를 제공합니다. 그러나 서버에 작업이 과부하되면 방문자에게 페이지를 제공하는 것이 어려워집니다 . 페이지가 로드되는 데 시간이 걸립니다. 결과적으로 방문자는 느린 웹사이트를 경험하게 됩니다.

너무 많은 방문자가 동시에 사이트에 도착하면 서버가 압도되어 http 503 오류가 발생합니다.

3. 오작동하는 맞춤 코드 스니펫

사용자 정의 코드를 사용하면 원하는 방식으로 웹사이트를 디자인할 수 있습니다. 그러나 잘못된 사용자 지정 코드를 사용하면 '503 Service Temporarily Unavailable' 오류가 발생할 수 있습니다.

사이트에 사용자 정의 코드를 추가하면 서버에 특정 방식으로 사이트의 데이터를 표시하도록 요청하는 것입니다. 코드가 잘못된 경우 잘못된 지시를 내리고 있습니다. 서버가 코드 조각을 이해하려고 하면 과부하가 걸리고 오류가 발생합니다.

'503 서비스를 일시적으로 사용할 수 없음' 오류를 수정하는 방법

503 오류는 다양한 방식으로 나타날 수 있습니다. 503 오류 변형 중 일부는 다음과 같습니다.

  • HTTP 오류 503
  • HTTP 서버 오류 503
  • 503 서비스 이용 불가
  • 오류 503 WordPress 서비스를 사용할 수 없음
  • 503 서비스를 일시적으로 사용할 수 없는 WordPress
  • 오류 503 서비스의 최대 스레드 수에 도달했습니다.
  • 유지 보수 중단 시간 또는 용량 문제로 인해 서버가 일시적으로 귀하의 요청을 처리할 수 없습니다. 나중에 다시 시도해 주세요.

오류 메시지가 무엇이든 수정 사항은 동일합니다.

원인을 알면 해결책을 쉽게 찾을 수 있습니다. 오류의 원인을 알고 있는 경우 해당 솔루션으로 바로 이동합니다.

예를 들어, 새 플러그인을 설치할 때 오류가 나타나면 플러그인이 원인입니다. 관리자 대시보드에 액세스할 수 없는 경우에도 플러그인을 비활성화하는 방법을 보여주는 곳으로 바로 이동하세요.

오류의 원인을 모르는 경우 이 섹션부터 시작하십시오.

Ca를 안다면 우리 e 오류

1. 오류를 일으킨 업데이트 롤백

플러그인, 테마 또는 코어를 업데이트한 직후에 오류가 발생하기 시작했다면 업데이트로 인해 오류가 발생한 것입니다.

관리자 대시보드에 액세스할 수 있는 경우 소프트웨어를 이전 버전으로 롤백하기만 하면 됩니다.

설치 및 활성화 WP 롤백 플러그인. 플러그인이나 테마를 이전 버전으로 다운그레이드하는 데 도움이 됩니다. 코어를 롤백하려면 WP 다운그레이드 플러그인.

관리자 대시보드에 액세스할 수 없는 경우 업데이트를 수동으로 롤백해야 합니다. 이를 위해서는 백엔드로 이동하여 WordPress 파일에 액세스해야 합니다. 다음 가이드는 그렇게 하는 데 도움이 될 것입니다.

  • WordPress 플러그인 롤백
  • WordPress 테마 롤백
  • 워드프레스 코어 롤백

플러그인이 관련된 방법이 아닌 수동 방법을 따르고 있는지 확인하십시오. 플러그인을 설치할 수 없습니다. 기억하시나요?

다운그레이드 후 사이트를 열어 오류가 사라졌는지 확인합니다. 그렇지 않은 경우 캐시를 지우고 다시 확인하십시오. 문제가 지속되면 업데이트로 인해 오류가 발생하지 않습니다. 이 섹션으로 이동하여 오류의 원인을 알아보겠습니다.

2. 오류를 일으킨 플러그인 또는 테마 비활성화

새 플러그인이나 테마를 활성화한 직후 오류가 나타나면 비활성화해야 합니다.

WordPress 대시보드에 액세스할 수 있는 경우 비활성화가 쉽습니다. 다음으로 가는 것이 중요합니다.

→ 플러그인> 설치된 플러그인> 그런 다음 플러그인 바로 아래에 표시되는 비활성화 버튼을 클릭하거나

→ 모양> 테마> 테마를 클릭한 다음 삭제를 선택합니다.

테마가 활성화되어 있으면 사이트에서 다른 테마를 활성화해야 합니다. 그런 다음 이전에 활성화된 테마를 삭제합니다.

그러나 사이트에 액세스할 수 없는 경우 플러그인과 테마를 수동으로 비활성화해야 합니다. . 방법은 다음과 같습니다.

1단계: 로컬 컴퓨터에 Filezilla를 다운로드하여 설치합니다. 그것을 열고 FTP 자격 증명을 사용하여 웹 사이트에 연결하십시오.

FTP 자격 증명이 없는 경우 이 가이드와 동영상이 FTP 자격 증명을 가져오는 데 도움이 될 것입니다.

그리고 이전에 Filezilla를 사용한 적이 없고 FTP 자격 증명을 사용하여 Filezilla에 연결하는 방법을 잘 모르는 경우 이 비디오를 따르십시오.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

2단계: 연결이 설정되면 원격 사이트 패널에 폴더가 채워지기 시작합니다. 패널을 사용하여 –

로 이동합니다.
  • public_html> wp-content> 플러그인
  • public_html> wp-content> 테마

폴더를 클릭하면 사이트에 설치된 모든 플러그인과 테마를 볼 수 있습니다. 비활성화하려는 항목으로 이동하고 다음 단계를 수행하십시오.

→ 플러그인 또는 테마를 마우스 오른쪽 버튼으로 클릭하고 이름 바꾸기 옵션을 선택합니다. .

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

→ 소프트웨어 이름에 '.deactivate' 텍스트를 추가합니다. 창을 닫습니다. 소프트웨어가 비활성화됩니다.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

→ 이제 웹사이트에서 오류가 사라졌는지 확인하세요. 그렇지 않은 경우 캐시를 지우고 다시 확인하십시오. 문제가 지속되면 다음 섹션의 해결 방법을 시도해 보십시오.

원인을 모르는 경우

1. 트래픽 급증을 처리하기 위한 조치를 취하십시오

'503 서비스를 일시적으로 사용할 수 없음' 오류는 사이트 트래픽의 맹공격으로 인해 발생할 수 있습니다.

Google Analytics를 확인하여 사이트에 평소보다 더 많은 트래픽이 발생하고 있는지 확인하십시오. 그렇다면 오류의 원인입니다.

질문:트래픽이 갑자기 급증하는 이유는 무엇입니까?

> 할인 또는 경품 개최

많은 사람들을 끌어들이는 일종의 사은품이나 거부할 수 없는 할인을 주최한 적이 있습니까? 아마도 귀하의 웹사이트는 언론의 언급 등으로 인해 갑자기 인기가 급상승하고 있을 것입니다.

대단해! 그러나 당신의 서버는 여기에서 당신을 실망시키고 있습니다. 방문자 증가를 활용하려면 호스팅 계획을 업그레이드하십시오. 더 많은 리소스가 있는 더 나은 서버가 트래픽을 처리할 수 있어야 합니다.

> DDoS 및 무차별 대입 공격

다양한 유형의 해킹 공격이 있습니다. In DDoS attacks, hackers send fake traffic to overwhelm your server which causes your site to shut down and throw the 503 error.

Generally, DDoS attacks are carried out to bring down big brands. But hackers also target smaller sites to extract a ransom. Only after the site owners pay up, do they stop the traffic. It’s worth checking if you have received a ransom email. That will help establish whether you are experiencing a DDoS attack.

To mitigate DDoS attacks, you’ll need this guide – How to Stop DDoS Attacks

Another reason you could be that hackers are trying to gain entry into your website. They have launched several requests on your login page to try different combinations of username and password, and thus caused the spike in traffic. This is called a brute force attack.

Learn how to prevent brute force attacks with this guide – WordPress brute force .

2. Deactivate Plugins &Themes One By One

The error could be a result of a plugin or theme. Generally, a plugin or theme will not cause an issue out of the blue. It’s only when you update them, or add a brand new plugin or theme, on your site that you face this type of issue.

If you have an activity log, you can figure out if someone installed new software or an updated one.

If you don’t, then deactivate all plugins and themes to check if they are the culprit.

You can’t access the WordPress admin area so you need to go to the backend of the site. The steps you need to take are:

> Disabling The Plugins

Step 1: Download and install Filezilla on your local computer. connect it to your website with FTP credentials.

If you don’t have your FTP credentials with you, then this guide and these videos will help you fetch them.

And if you have never used Filezilla and you are not quite sure of how to use the FTP credentials to connect to Filezilla, follow the instructions in this video.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

Step 2: Once the connection is established, the Remote site panel will start populating. In that panel, navigate to –

  • public_html> wp-content> plugins

Right-click on the plugins folder and select Rename . Rename the folder to plugins.deactivate . This will disable all the plugins on your site.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

Step 3: Now go back to your site to check whether it’s still throwing the ‘503 error WordPress’. If it is, then clear your cache and check again.

If the issue persists then move on to the next solution, i.e. disabling themes.

But if the issue is solved, then we recommend that you figure out which plugin was at fault.

Step 4: Go back to the plugins folder and rename it back to plugins .

Step 5: Now open the folder and rename the first plugin. Just add ‘.deactivate’ to the name of the plugin.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

Go back, and check your website. Was this the plugin causing the error? If not, keep renaming the plugins. At some point, the error will be gone. The plugin you renamed last was the one causing the error. To make sure you don’t encounter the error again, you may want to delete the plugin, look for a replacement, or if you can’t do without the plugin, write into their support.

Ensure that you rename the rest of the plugins to their original names, otherwise, they won’t work.

> Disabling The Themes

After ruling out the plugins, check the themes. The debugging process with themes is different from what you did with the plugins. Disabling all themes will leave your site without a theme, and will cause your site to throw an error:“ERROR:The themes directory is either empty or doesn’t exist. Please check your installation.”

So here’s what we are going to do:

  1. We’ll activate a default WordPress theme on your site
  2. Disable the previously active theme
  3. Restore the previously active theme
  4. Disable all other themes from your site

Step 1:Activate A Default WordPress Theme

→ Login in to your hosting account

From your cPanel, open PHPMyAdmin .

→ Select the wp_options 테이블.

Look for template &stylesheet . It’ll show you the currently active theme of the site. Note down the exact spelling and casing of the theme, as you will need it later. In the image below, it is ‘astra’.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

→ Next, you need to make a WordPress default theme as the current theme of the site. Double-click on template and change the theme to twentytwenty. Then double-click on stylesheet and change the theme to twentytwenty.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

Step 2:Disable The Previously Active Theme

→ Now, open Filezilla.

And go to public_html> wp-content> themes . The theme folder will contain the previously active theme. Disable it by renaming it to something like themename.deactivate.

Now open your website and check if it’s still throwing the error. If it is, that means the previously active theme is not the culprit.

Step 3:Activate Previous Theme

→ Head over to PHPMyAdmin and rename the theme in the template &stylesheet 부분. Ensure that the name is exactly like you copied. Do not make any changes to the spelling or casing.

Step 4:Deactivate All Theme One By One

→ To find out which theme is the culprit, you need to disable one theme at a time. From Filezilla, start renaming each theme and checking your website.

Remember not to disable the active theme. We’ve already checked that.

If none of the themes are the cause of the error, then move on to the next solution.

3. Talk To Your Hosting Provider

Your hosting provider has allocated space on one of their servers. Based on your plan, there is an upper limit to the server resources your website can use. If your website needs more resources than the current plan allows, you will need to upgrade to a higher plan.

If you are hosting your site on a shared hosting environment, then it’s possible that the problem could lie with other websites on your server. They could be hogging all the resources from your server, leaving very little for you to work with. Your website is not getting its share of resources.

Another possible reason for the error is that your server is undergoing maintenance updates. Most hosting providers email you a day or two in advance, before taking the server down. It’s worth checking your email account, including the spam folder for these updates.

You need to talk to your hosting provider to learn what’s happening. Try ruling out causes like server updates and other sites hogging resources. If you need to upgrade your hosting plan, do that.

4. Limit the WordPress ‘Heartbeat’ API

The Heartbeat API enables 3 functions on your WordPress site:

1. Auto-save Posts &Pages: If you are working on a post or page and your browser crashes or you accidentally close the browser, WordPress will automatically save the latest version of your work.

2. Display Real-Time Data: E-commerce websites use plugins to display real-time data on the dashboard. This API enables them to do that.

3. Prevent Multiple Simultaneous Edits: On websites with multiple authors, you don’t want the same posts being edited by multiple people at the same time. If you are editing a post, the Heartbeat API locks it down and prevents anyone else from accessing it till you are done with it.

The API utilizes your server resources to carry out all of the functions we mentioned above. But too many requests from the API can overwhelm the server. As a result, the server throws a 503 Service Temporarily Unavailable.

Let’s find out if the API is causing the error.

Step 1: Open Filezilla. And navigate to public_htm> wp-content> Themes .

Step 2: Next, open the active theme and look for the function.php file. When you find it, right-click and select the view/edit option.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

Step 3: Add the following code snippet into the file –

add_action( 'init', 'stop_heartbeat', 1 );
function stop_heartbeat() {
wp_deregister_script('heartbeat');
}

Save the files and exit.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

Step 4: Check whether your website is still throwing the error.

If it is, the API is not the culprit. Go back to the function.php file and delete the code you just added. Don’t forget to save the file.

But if the error is gone, the API was causing it. Congratulations on finding the cause!

That being said, disabling the API permanently is not a good idea, because it enables some pretty important functions. However, you can reduce the number of times the API interacts with the server . Here’s how:

Step 1: Install the Heartbeat Control plugin.

Step 2: On your dashboard, navigate to General Settings> Heartbeat Control .

Step 3: There are 3 options:WordPress Dashboard, Frontend, &Post editor Select. Select Modify Heartbeat for all 3 options and then reduce the frequency to the lowest .

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

Step 4: Now, open the function.php file and delete the code snippet .

That’s it, folks.

5. Talk to Your CDN Providers

On rare occasions, CDNs can cause 503 errors. This happens when there is a connectivity error between the CDN server and your website. If none of the solutions above worked for you, then chances are it’s a CDN issue.

Reach out to your CDN support and tell them that you have ruled out every other possibility. Keep your CDN credentials ready. You’ll need it when speaking to the support personnel.

That’s all folks. We are confident that one of the above solutions will help you get rid of the error.

But there’s no guarantee that it won’t occur again. The 503 error can spell disaster for your site. In the next section, we will quickly cover all the things that you stand to lose because of the error, and what can you do to protect your site from this error in the future.

Impact Of The 503 Service Temporarily Unavailable Error On Your Site

If the 503 error persists for a long time, it can have the following impact on your website:

  • Visitors start bouncing off of your website. This will be noticed by search engines like Google. Google will conclude that your website is not meeting user expectations and lower your SERP rankings .
  • Once ranking takes a hit, it will have a ripple effect. First, your traffic will decline , revenue collection will dip , then your monthly income will be affected. This is bad news for those of you who rely on their website to generate income.
  • Even if you don’t rely solely on your site for income, your SEO effort will be squandered . All the time, effort, and money you’ve invested in building your website will have gone to waste.
  • Your brand reputation will also be hampered.

Luckily this will happen only when the issue isn’t resolved instantly.

It’s best not to wait for the error to occur again and take preventive measures.

Install BlogVault Backup Plugin NOW, and rest easy knowing your site is safe.

Protect Your Site From The 503 Error In The Future

There are a couple of things you can do to prevent the error from occurring in the future. But before we get into those, we strongly recommend setting up a backup service that takes a complete backup of your website every day .

At times of crisis like this one, a backup is your safety net. You can quickly restore your site to normal and investigate the error later.

Backups are valuable, only when they are taken on a regular basis. Otherwise, you may have to restore an old backup and lose all the modifications made on your site after that.

Check out BlogVault’s WordPress Backup Service. It backs up your entire website automatically every day. Yes, every day. So at any given point, you stand to lose only one day’s work at the most. And it helps you restore your site within a few seconds.

Moving on…

1. Update or Add New Plugins &Themes On a Staging Site

As we’ve seen, updates or the addition of themes and plugins are one of the biggest reasons why the error occurs.

You can’t stop updating or trying out new plugins and themes, but you sure can be careful.

How?

Try using a staging site.

It’s an exact replica of your live site. Here’s how you can create one:

ㅏ. Install and activate BlogVault on your WordPress website.

비. Add your site to the BlogVault dashboard. And it will start taking a backup of your complete website.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

씨. When the backup process is complete, on your BlogVault dashboard, click on Sites and then select your website.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

디. On the next page, scroll down to the Staging section and select Add Staging> Submit. BlogVault will start creating a staging site for you.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

이자형. When the staging site is ready, you will be given a username and password. Note down the credentials, you’ll need them.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

에프. Now, open the staging site by clicking on the Visit Staging Site button.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

g. The staging site will open in a new tab and you will be asked to enter the credentials.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

시간. You will now be able to access your staging site. Just add /wp-admin/ at the end of your URL to open the login page. And login via the same credentials you use to log into your actual site.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

The staging site has all the plugins and themes present on your original site.

Update or add themes and plugins.

If all goes well on staging, you can carry out updates and additions to the actual site. If an error occurs on the staging, it doesn’t affect your original site. Use the steps listed above to troubleshoot the staging site, just as you would with a live website, to find the cause and fix the issue.

After checking the themes and plugins on your staging site, you can merge your staging site with the original site, instead of updating or adding manually. Follow this guide: Merging Staging Site With Original Site .

2. Use a Firewall to Prevent DDoS Attacks

Firewalls help protect websites against DDoS attacks. But not all types of firewalls are effective in this type of attack. You need one that is cloud-based.

A cloud-based firewall sits between your website and the traffic. All incoming traffic is intercepted by the cloud firewall. It investigates traffic requests. If it finds that a request is a malicious one, then that traffic is blocked.

Therefore, when there is a DDoS attack, bad traffic hits the firewall before reaching the site. The firewall bears the burden of attack. Your website is left unharmed.

We’ve compiled a list of the best WordPress firewalls. Pick one to protect your website against DDoS attacks.

3. Upgrade To A Better Hosting Plan

Server overloading is the main cause behind the 503 error. Maybe you are experiencing more traffic which is great. You need a server with more resources to be able to serve all your visitors. You will need to upgrade to a higher hosting plan.

That said, let us ask you something – Is your site down often? Check your uptime monitoring tool for accurate data.

If your hosting server is often down for one reason or another, then you need to move to a better hosting service.

There are plenty of hosting services advertising great plans at low prices, but they often fail to deliver. We’ve compiled a list of the best WordPress hosting providers.

And once you’ve made the decision to switch, this guide will help you migrate:How to Migrate WordPress Site?

Pro Tip: If you are using BlogVault for backup and staging, then you can use the same tool for monitoring uptime as well.

 503 서비스를 일시적으로 사용할 수 없음  오류를 수정하는 방법은 무엇입니까?

What Next?

Errors are a part and parcel of managing a website. Don’t let them get the better of you. Our tutorials will help you overcome them all.

We have compiled a list of the common WordPress errors and their fixes. Bookmark this article and return to it when you need it:WordPress Troubleshooting Guide.