Код ответа на статус перенаправления «HTTP 308 Permanent Redirect"
указывает, что запрошенный ресурс был окончательно перемещён в URL-адрес, указанный в Location
(en-US). Браузер перенаправляется на эту страницу, а поисковые системы обновляют свои ссылки на ресурс (в SEO-speak говорится, что link-juice отправляется на новый URL-адрес).
Метод запроса и тело не будут изменены, тогда как 301
иногда может быть неправильно заменён на GET
метод.
Примечание: Некоторые веб-приложения могут использовать 308 Permanent Redirect нестандартным образом и для других целей. Например, Google Drive использует ответ 308 Resume Incomplete, чтобы указать клиенту, когда неполная загрузка застопорилась.[1]
Статус
Характеристики
Спецификации | Название |
---|---|
RFC 7538, секция 3: 308 Permanent Redirect | The Hypertext Transfer Protocol Status Code 308 (Permanent Redirect) |
Совместимость с браузером
BCD tables only load in the browser
Смотрите также
301
Moved Permanently
302
Found
, the temporary redirect
В этой статье представлена ошибка с номером Ошибка 308, известная как Код ошибки Центра обновления Windows 308, описанная как Ошибка 308: Возникла ошибка в приложении Windows Update. Приложение будет закрыто. Приносим свои извинения за неудобства.
О программе Runtime Ошибка 308
Время выполнения Ошибка 308 происходит, когда Windows Update дает сбой или падает во время запуска, отсюда и название. Это не обязательно означает, что код был каким-то образом поврежден, просто он не сработал во время выполнения. Такая ошибка появляется на экране в виде раздражающего уведомления, если ее не устранить. Вот симптомы, причины и способы устранения проблемы.
Определения (Бета)
Здесь мы приводим некоторые определения слов, содержащихся в вашей ошибке, в попытке помочь вам понять вашу проблему. Эта работа продолжается, поэтому иногда мы можем неправильно определить слово, так что не стесняйтесь пропустить этот раздел!
- Код ошибки . Код ошибки — это значение, возвращаемое для предоставления контекста, почему произошла ошибка.
- Windows — ОБЩАЯ ПОДДЕРЖКА WINDOWS НЕ В ТЕМЕ
- Обновление Windows — Windows Update WU, услуга, предлагаемая Microsoft, предоставляет обновления для операционной системы Microsoft Windows и ее установленных компонентов, включая Internet Explorer
Симптомы Ошибка 308 — Код ошибки Центра обновления Windows 308
Ошибки времени выполнения происходят без предупреждения. Сообщение об ошибке может появиться на экране при любом запуске %программы%. Фактически, сообщение об ошибке или другое диалоговое окно может появляться снова и снова, если не принять меры на ранней стадии.
Возможны случаи удаления файлов или появления новых файлов. Хотя этот симптом в основном связан с заражением вирусом, его можно отнести к симптомам ошибки времени выполнения, поскольку заражение вирусом является одной из причин ошибки времени выполнения. Пользователь также может столкнуться с внезапным падением скорости интернет-соединения, но, опять же, это не всегда так.
(Только для примера)
Причины Код ошибки Центра обновления Windows 308 — Ошибка 308
При разработке программного обеспечения программисты составляют код, предвидя возникновение ошибок. Однако идеальных проектов не бывает, поскольку ошибки можно ожидать даже при самом лучшем дизайне программы. Глюки могут произойти во время выполнения программы, если определенная ошибка не была обнаружена и устранена во время проектирования и тестирования.
Ошибки во время выполнения обычно вызваны несовместимостью программ, запущенных в одно и то же время. Они также могут возникать из-за проблем с памятью, плохого графического драйвера или заражения вирусом. Каким бы ни был случай, проблему необходимо решить немедленно, чтобы избежать дальнейших проблем. Ниже приведены способы устранения ошибки.
Методы исправления
Ошибки времени выполнения могут быть раздражающими и постоянными, но это не совсем безнадежно, существует возможность ремонта. Вот способы сделать это.
Если метод ремонта вам подошел, пожалуйста, нажмите кнопку upvote слева от ответа, это позволит другим пользователям узнать, какой метод ремонта на данный момент работает лучше всего.
Обратите внимание: ни ErrorVault.com, ни его авторы не несут ответственности за результаты действий, предпринятых при использовании любого из методов ремонта, перечисленных на этой странице — вы выполняете эти шаги на свой страх и риск.
Метод 1 — Закройте конфликтующие программы
Когда вы получаете ошибку во время выполнения, имейте в виду, что это происходит из-за программ, которые конфликтуют друг с другом. Первое, что вы можете сделать, чтобы решить проблему, — это остановить эти конфликтующие программы.
- Откройте диспетчер задач, одновременно нажав Ctrl-Alt-Del. Это позволит вам увидеть список запущенных в данный момент программ.
- Перейдите на вкладку «Процессы» и остановите программы одну за другой, выделив каждую программу и нажав кнопку «Завершить процесс».
- Вам нужно будет следить за тем, будет ли сообщение об ошибке появляться каждый раз при остановке процесса.
- Как только вы определите, какая программа вызывает ошибку, вы можете перейти к следующему этапу устранения неполадок, переустановив приложение.
Метод 2 — Обновите / переустановите конфликтующие программы
Использование панели управления
- В Windows 7 нажмите кнопку «Пуск», затем нажмите «Панель управления», затем «Удалить программу».
- В Windows 8 нажмите кнопку «Пуск», затем прокрутите вниз и нажмите «Дополнительные настройки», затем нажмите «Панель управления»> «Удалить программу».
- Для Windows 10 просто введите «Панель управления» в поле поиска и щелкните результат, затем нажмите «Удалить программу».
- В разделе «Программы и компоненты» щелкните проблемную программу и нажмите «Обновить» или «Удалить».
- Если вы выбрали обновление, вам просто нужно будет следовать подсказке, чтобы завершить процесс, однако, если вы выбрали «Удалить», вы будете следовать подсказке, чтобы удалить, а затем повторно загрузить или использовать установочный диск приложения для переустановки. программа.
Использование других методов
- В Windows 7 список всех установленных программ можно найти, нажав кнопку «Пуск» и наведя указатель мыши на список, отображаемый на вкладке. Вы можете увидеть в этом списке утилиту для удаления программы. Вы можете продолжить и удалить с помощью утилит, доступных на этой вкладке.
- В Windows 10 вы можете нажать «Пуск», затем «Настройка», а затем — «Приложения».
- Прокрутите вниз, чтобы увидеть список приложений и функций, установленных на вашем компьютере.
- Щелкните программу, которая вызывает ошибку времени выполнения, затем вы можете удалить ее или щелкнуть Дополнительные параметры, чтобы сбросить приложение.
Метод 3 — Обновите программу защиты от вирусов или загрузите и установите последнюю версию Центра обновления Windows.
Заражение вирусом, вызывающее ошибку выполнения на вашем компьютере, необходимо немедленно предотвратить, поместить в карантин или удалить. Убедитесь, что вы обновили свою антивирусную программу и выполнили тщательное сканирование компьютера или запустите Центр обновления Windows, чтобы получить последние определения вирусов и исправить их.
Метод 4 — Переустановите библиотеки времени выполнения
Вы можете получить сообщение об ошибке из-за обновления, такого как пакет MS Visual C ++, который может быть установлен неправильно или полностью. Что вы можете сделать, так это удалить текущий пакет и установить новую копию.
- Удалите пакет, выбрав «Программы и компоненты», найдите и выделите распространяемый пакет Microsoft Visual C ++.
- Нажмите «Удалить» в верхней части списка и, когда это будет сделано, перезагрузите компьютер.
- Загрузите последний распространяемый пакет от Microsoft и установите его.
Метод 5 — Запустить очистку диска
Вы также можете столкнуться с ошибкой выполнения из-за очень нехватки свободного места на вашем компьютере.
- Вам следует подумать о резервном копировании файлов и освобождении места на жестком диске.
- Вы также можете очистить кеш и перезагрузить компьютер.
- Вы также можете запустить очистку диска, открыть окно проводника и щелкнуть правой кнопкой мыши по основному каталогу (обычно это C
- Щелкните «Свойства», а затем — «Очистка диска».
Метод 6 — Переустановите графический драйвер
Если ошибка связана с плохим графическим драйвером, вы можете сделать следующее:
- Откройте диспетчер устройств и найдите драйвер видеокарты.
- Щелкните правой кнопкой мыши драйвер видеокарты, затем нажмите «Удалить», затем перезагрузите компьютер.
Метод 7 — Ошибка выполнения, связанная с IE
Если полученная ошибка связана с Internet Explorer, вы можете сделать следующее:
- Сбросьте настройки браузера.
- В Windows 7 вы можете нажать «Пуск», перейти в «Панель управления» и нажать «Свойства обозревателя» слева. Затем вы можете перейти на вкладку «Дополнительно» и нажать кнопку «Сброс».
- Для Windows 8 и 10 вы можете нажать «Поиск» и ввести «Свойства обозревателя», затем перейти на вкладку «Дополнительно» и нажать «Сброс».
- Отключить отладку скриптов и уведомления об ошибках.
- В том же окне «Свойства обозревателя» можно перейти на вкладку «Дополнительно» и найти пункт «Отключить отладку сценария».
- Установите флажок в переключателе.
- Одновременно снимите флажок «Отображать уведомление о каждой ошибке сценария», затем нажмите «Применить» и «ОК», затем перезагрузите компьютер.
Если эти быстрые исправления не работают, вы всегда можете сделать резервную копию файлов и запустить восстановление на вашем компьютере. Однако вы можете сделать это позже, когда перечисленные здесь решения не сработают.
Другие языки:
How to fix Error 308 (Windows Update Error Code 308) — Error 308: Windows Update has encountered a problem and needs to close. We are sorry for the inconvenience.
Wie beheben Fehler 308 (Windows Update-Fehlercode 308) — Fehler 308: Windows Update hat ein Problem festgestellt und muss geschlossen werden. Wir entschuldigen uns für die Unannehmlichkeiten.
Come fissare Errore 308 (Codice di errore di Windows Update 308) — Errore 308: Windows Update ha riscontrato un problema e deve essere chiuso. Ci scusiamo per l’inconveniente.
Hoe maak je Fout 308 (Windows Update-foutcode 308) — Fout 308: Windows Update heeft een probleem ondervonden en moet worden afgesloten. Excuses voor het ongemak.
Comment réparer Erreur 308 (Code d’erreur de mise à jour Windows 308) — Erreur 308 : Windows Update a rencontré un problème et doit se fermer. Nous sommes désolés du dérangement.
어떻게 고치는 지 오류 308 (Windows 업데이트 오류 코드 308) — 오류 308: Windows Update에 문제가 발생해 닫아야 합니다. 불편을 끼쳐드려 죄송합니다.
Como corrigir o Erro 308 (Código de erro 308 do Windows Update) — Erro 308: O Windows Update encontrou um problema e precisa fechar. Lamentamos o inconveniente.
Hur man åtgärdar Fel 308 (Windows Update-felkod 308) — Fel 308: Windows Update har stött på ett problem och måste avslutas. Vi är ledsna för besväret.
Jak naprawić Błąd 308 (Kod błędu aktualizacji systemu Windows 308) — Błąd 308: Windows Update napotkał problem i musi zostać zamknięty. Przepraszamy za niedogodności.
Cómo arreglar Error 308 (Código de error de actualización de Windows 308) — Error 308: Windows Update ha detectado un problema y debe cerrarse. Lamentamos las molestias.
Об авторе: Фил Харт является участником сообщества Microsoft с 2010 года. С текущим количеством баллов более 100 000 он внес более 3000 ответов на форумах Microsoft Support и создал почти 200 новых справочных статей в Technet Wiki.
Следуйте за нами:
Этот инструмент восстановления может устранить такие распространенные проблемы компьютера, как синие экраны, сбои и замораживание, отсутствующие DLL-файлы, а также устранить повреждения от вредоносных программ/вирусов и многое другое путем замены поврежденных и отсутствующих системных файлов.
ШАГ 1:
Нажмите здесь, чтобы скачать и установите средство восстановления Windows.
ШАГ 2:
Нажмите на Start Scan и позвольте ему проанализировать ваше устройство.
ШАГ 3:
Нажмите на Repair All, чтобы устранить все обнаруженные проблемы.
СКАЧАТЬ СЕЙЧАС
Совместимость
Требования
1 Ghz CPU, 512 MB RAM, 40 GB HDD
Эта загрузка предлагает неограниченное бесплатное сканирование ПК с Windows. Полное восстановление системы начинается от $19,95.
ID статьи: ACX013171RU
Применяется к: Windows 10, Windows 8.1, Windows 7, Windows Vista, Windows XP, Windows 2000
Совет по увеличению скорости #93
Установите оптимальные настройки BIOS:
Стоит проверить параметры BIOS и настроить их на оптимальные параметры, особенно если у вас старый или сделанный на заказ компьютер. Вы можете ускорить загрузку, изменив важные настройки, такие как кеш-память ЦП, режим передачи данных IDE / SATA и драйверы. Вы также можете установить тайминги памяти и быструю / быструю загрузку, если она доступна.
Нажмите здесь, чтобы узнать о другом способе ускорения работы ПК под управлением Windows
Номер ошибки: | Ошибка 308 | |
Название ошибки: | Windows Update Error Code 308 | |
Описание ошибки: | Ошибка 308: Возникла ошибка в приложении Windows Update. Приложение будет закрыто. Приносим извинения за неудобства. | |
Разработчик: | Microsoft Corporation | |
Программное обеспечение: | Windows Update | |
Относится к: | Windows XP, Vista, 7, 8, 10, 11 |
Проверка «Windows Update Error Code 308»
Как правило, практикующие ПК и сотрудники службы поддержки знают «Windows Update Error Code 308» как форму «ошибки во время выполнения». Разработчики тратят много времени и усилий на написание кода, чтобы убедиться, что Windows Update стабилен до продажи продукта. К сожалению, такие проблемы, как ошибка 308, могут не быть исправлены на этом заключительном этапе.
После установки программного обеспечения может появиться сообщение об ошибке «Windows Update Error Code 308». В случае обнаруженной ошибки 308 клиенты могут сообщить о наличии проблемы Microsoft Corporation по электронной почте или сообщать об ошибках. Microsoft Corporation вернется к коду и исправит его, а затем сделает обновление доступным для загрузки. Таким образом, в этих случаях разработчик выпустит обновление программы Windows Update, чтобы исправить отображаемое сообщение об ошибке (и другие сообщенные проблемы).
В чем причина ошибки 308?
Проблема с исходным кодом Windows Update приведет к этому «Windows Update Error Code 308», чаще всего на этапе запуска. Три распространенные причины, по которым ошибки во время выполнения, такие как всплывающее окно ошибки 308:
Ошибка 308 Crash — Номер ошибки вызовет блокировка системы компьютера, препятствуя использованию программы. Обычно это происходит, когда Windows Update не может обработать данные в удовлетворительной форме и поэтому не может получить ожидаемый результат.
«Windows Update Error Code 308» Утечка памяти — Ошибка 308 утечка памяти происходит и предоставляет Windows Update в качестве виновника, перетаскивая производительность вашего ПК. Это может быть вызвано неправильной конфигурацией программного обеспечения Microsoft Corporation или когда одна команда запускает цикл, который не может быть завершен.
Ошибка 308 Logic Error — Компьютерная система создает неверную информацию или дает другой результат, даже если входные данные являются точными. Виновником в этом случае обычно является недостаток в исходном коде Microsoft Corporation, который неправильно обрабатывает ввод.
Основные причины Microsoft Corporation ошибок, связанных с файлом Windows Update Error Code 308, включают отсутствие или повреждение файла, или, в некоторых случаях, заражение связанного Windows Update вредоносным ПО в прошлом или настоящем. Основной способ решить эти проблемы вручную — заменить файл Microsoft Corporation новой копией. В некоторых случаях реестр Windows пытается загрузить файл Windows Update Error Code 308, который больше не существует; в таких ситуациях рекомендуется запустить сканирование реестра, чтобы исправить любые недопустимые ссылки на пути к файлам.
Распространенные проблемы Windows Update Error Code 308
Наиболее распространенные ошибки Windows Update Error Code 308, которые могут возникнуть на компьютере под управлением Windows, перечислены ниже:
- «Ошибка программного обеспечения Windows Update Error Code 308. «
- «Ошибка программного обеспечения Win32: Windows Update Error Code 308»
- «Возникла ошибка в приложении Windows Update Error Code 308. Приложение будет закрыто. Приносим извинения за неудобства.»
- «Windows Update Error Code 308 не может быть найден. «
- «Windows Update Error Code 308 не найден.»
- «Ошибка запуска программы: Windows Update Error Code 308.»
- «Файл Windows Update Error Code 308 не запущен.»
- «Отказ Windows Update Error Code 308.»
- «Неверный путь к приложению: Windows Update Error Code 308.»
Проблемы Windows Update Error Code 308 с участием Windows Updates возникают во время установки, при запуске или завершении работы программного обеспечения, связанного с Windows Update Error Code 308, или во время процесса установки Windows. При появлении ошибки Windows Update Error Code 308 запишите вхождения для устранения неполадок Windows Update и чтобы HelpMicrosoft Corporation найти причину.
Источник ошибок Windows Update Error Code 308
Большинство проблем Windows Update Error Code 308 связаны с отсутствующим или поврежденным Windows Update Error Code 308, вирусной инфекцией или недействительными записями реестра Windows, связанными с Windows Update.
Точнее, ошибки Windows Update Error Code 308, созданные из:
- Поврежденные ключи реестра Windows, связанные с Windows Update Error Code 308 / Windows Update.
- Зазаражение вредоносными программами повредил файл Windows Update Error Code 308.
- Другая программа (не связанная с Windows Update) удалила Windows Update Error Code 308 злонамеренно или по ошибке.
- Другая программа, конфликтующая с Windows Update Error Code 308 или другой общей ссылкой Windows Update.
- Windows Update (Windows Update Error Code 308) поврежден во время загрузки или установки.
Продукт Solvusoft
Загрузка
WinThruster 2022 — Проверьте свой компьютер на наличие ошибок.
Совместима с Windows 2000, XP, Vista, 7, 8, 10 и 11
Установить необязательные продукты — WinThruster (Solvusoft) | Лицензия | Политика защиты личных сведений | Условия | Удаление
Jan 11, 2018 6:00:19 PM |
308 Permanent Redirect: What It Is and How to Fix It
A close look at the 308 Permanent Redirect response code, including troubleshooting tips to help you resolve this error in your own application.
A 308 Permanent Redirect message is an HTTP response status code
indicating that the requested resource has been permanently moved to another URI
, as indicated by the special Location
header returned within the response. The 308 Permanent Redirect
code was added to the HTTP standard relatively recently in April 2015, as detailed in the RFC7538 specification document for the 308
status code. As written in the RFC specification, the 308 Permanent Redirect
code was necessary to fill in the gap left with similar codes of 301
, 302
, and 307
.
There are dozens of possible HTTP status codes used to represent the complex relationship between the client, a web application, a web server, and the multitude of third-party web services that may be in use, so determining the cause of a particular HTTP response status code can be difficult. Since there are so many potential codes, each of which represents a completely different status or event, it can be difficult to differentiate between many of them and determine the exact cause of such errors, including the 308 Permanent Redirect
response code.
Throughout this article we’ll explore the 308 Permanent Redirect
code by looking at a handful of troubleshooting tips. We’ll also examine a few useful and easy to implement fixes for common problems that could be causing 308
codes to appear in your own web application. Let’s get down to it!
The Problem is Server-Side
All HTTP response status codes within the 3xx
category are considered redirection messages
. These codes indicate to the user agent (i.e. your web browser) that an additional action is required in order to complete the request and access the desired resource. The 3xx
response code category is distinctly different from the 5xx
codes category, which encompasses server error
messages. For example, the 503 Service Unavailable
error we explored a late last year indicates that a server is temporarily unavailable, or is unable to handle the request for some reason. Thus, while a 5xx
category code indicates an actual problem has occurred on a server, a 3xx
category code, such as 308 Permanent Redirect
, is rarely indicative of an actual problem — it merely occurs due to the server’s behavior or configuration, but is not indicative of an error or bug on the server.
The 308 Permanent Redirect
code is similar to the 301 Moved Permanently
code we explore in our 301 Moved Permanently: What It Is and How to Fix It article. As discussed in that post, the RFC1945 HTTP/1.0 specification document explicitly states that the 301
code should not necessarily inform user agents (i.e. browsers) to automatically redirect POST
HTTP method requests to GET
HTTP method requests. However, many user agents did erroneously change POST
requests to GET
redirect requests, which led to unintentional problems.
To handle this explicit allowance or denial of changing POST
requests to GET
requests the HTTP standards included the following codes:
- 301 Moved Permanently: The resource has been permanently moved and request method conversion from
POST
toGET
is allowed. - 307 Temporary Redirect: The resource has been temporarily moved and request method conversion from
POST
toGET
is forbidden. - 302 Found: The resource has been temporarily moved and request method conversion from
POST
toGET
is allowed.
As you can see, this set of three HTTP status codes is missing a code that indicates a permanent redirect that forbids POST
to GET
conversion. This is the exact role that the 308 Permanent Redirect
status code fulfills.
The appearance of a 308 Permanent Redirect
is usually not something that requires much user intervention. All modern browsers will automatically detect the 308 Permanent Redirect
response code and process the redirection action to the new URI
automatically. The server sending a 308
code will also include a special Location
header as part of the response it sends to the client. This Location
header indicates the new URI
where the requested resource can be found. For example, if an HTTP POST
method request is sent by the client as an attempt to login at the https://airbrake.io
URL, the web server may be configured to redirect this POST
request to a different URI
, such as https://airbrake.io/login
. In this scenario, the server may respond with a 308 Permanent Redirect
code and include the Location: https://airbrake.io/login
header in the response. This informs the user agent (browser) that the POST
request data (login info) was received by the server, but the resource has been permanently moved to the Location
header URI
of https://airbrake.io/login
.
It’s also important to distinguish the purpose and use-cases of the 308 Permanent Redirect
response code from many seemingly similar 3xx
codes, such as the 307 Temporary Redirect
we looked at in the past. The 307 Temporary Redirect
code informs the client that the passed Location
URI
is only a temporary resource, and that all future requests should continue to access the originally requested URI
. On the other hand, the 308 Permanent Redirect
message is permanent and indicates that the passed Location
URI
should be used for future (identical) requests.
Additionally, since the 308 Permanent Redirect
indicates that something has gone wrong within the server
of your application, we can largely disregard the client
side of things. If you’re trying to diagnose an issue with your own application, you can immediately ignore most client-side code and components, such as HTML, cascading style sheets (CSS), client-side JavaScript, and so forth. This doesn’t apply solely to web sites, either. Many smart phone apps that have a modern looking user interface are actually powered by a normal web application behind the scenes; one that is simply hidden from the user. If you’re using such an application and a 308 Permanent Redirect
occurs, the issue isn’t going to be related to the app installed on your phone or local testing device. Instead, it will be something on the server-side, which is performing most of the logic and processing behind the scenes, outside the purview of the local interface presented to the user.
If your application is generating unexpected 308 Permanent Redirect
response codes there are a number of steps you can take to diagnose the problem, so we’ll explore a few potential work around below.
Start With a Thorough Application Backup
As with anything, it’s better to have played it safe at the start than to screw something up and come to regret it later on down the road. As such, it is critical that you perform a full backup of your application, database, and so forth, before attempting any fixes or changes to the system. Even better, if you have the capability, create a complete copy of the application onto a secondary staging
server that isn’t «live,» or isn’t otherwise active and available to the public. This will give you a clean testing ground with which to test all potential fixes to resolve the issue, without threatening the security or sanctity of your live application.
Diagnosing a 308 Permanent Redirect Response Code
A 308 Permanent Redirect
response code indicates that the requested resource has been permanently moved to the new URI
specified in the Location
response header. However, the appearance of this error itself may be erroneous, as it’s entirely possible that the server is misconfigured, which could cause it to improperly respond with 308 Permanent Redirect
codes, instead of the standard and expected 200 OK
code seen for most successful requests. Thus, a large part of diagnosing the issue will be going through the process of double-checking what resources/URLs are generating 308 Permanent Redirect
response codes and determining if these codes are appropriate or not.
If your application is responding with 308 Permanent Redirect
codes that it should not be issuing, this is a problem that many other visitors may be experiencing as well, dramatically hindering your application’s ability to service users. We’ll go over some troubleshooting tips and tricks to help you try to resolve this issue. If nothing here works, don’t forget to try Googling for the answer. Search for specific terms related to your issue, such as the name of your application’s CMS or web server software, along with 308 Permanent Redirect
. Chances are you’ll find others who have experienced this issue and have (hopefully) found a solution.
Troubleshooting on the Server-Side
Here are some additional tips to help you troubleshoot what might be causing the 308 Permanent Redirect
to appear on the server-side of things:
Confirm Your Server Configuration
Your application is likely running on a server that is using one of the two most popular web server softwares, Apache
or nginx
. At the time of publication, both of these web servers make up over 84%
of the world’s web server software! Thus, one of the first steps you can take to determine what might be causing these 308 Permanent Redirect
response codes is to check the configuration files for your web server software for unintentional redirect instructions.
To determine which web server your application is using you’ll want to look for a key file. If your web server is Apache then look for an .htaccess
file within the root directory of your website file system. For example, if your application is on a shared host you’ll likely have a username associated with the hosting account. In such a case, the application root directory is typically found at the path of /home/<username>/public_html/
, so the .htaccess
file would be at /home/<username>/public_html/.htaccess
.
If you located the .htaccess
file then open it in a text editor and look for lines that use RewriteXXX
directives, which are part of the mod_rewrite
module in Apache. Covering exactly how these rules work is well beyond the scope of this article, however, the basic concept is that a RewriteCond
directive defines a text-based pattern that will be matched against entered URLs. If a matching URL is requested by a visitor to the site, the RewriteRule
directive that follows one or more RewriteCond
directives is used to perform the actual redirection of the request to the appropriate URL.
For example, here is a simple RewriteCond
and RewriteRule
combination that matches all incoming requests to airbrake.io
using the HTTP POST
method, and redirecting them to https://airbrake.io/login
via a 308 Permanent Redirect
response:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^airbrake.io$
RewriteRule ^(.*)$ https://airbrake.io/login$1 [R=308]
Notice the extra flag at the end of the RewriteRule
, which explicitly states that the response code should be 308
, indicating to user agents that the request should be repeated to the specified URI
, but while retaining the original HTTP method (POST
, in this case). Thus, if you find any strange RewriteCond
or RewriteRule
directives in the .htaccess
file that don’t seem to belong, try temporarily commenting them out (using the #
character prefix) and restarting your web server to see if this resolves the issue.
On the other hand, if your server is running on nginx
, you’ll need to look for a completely different configuration file. By default this file is named nginx.conf
and is located in one of a few common directories: /usr/local/nginx/conf
, /etc/nginx
, or /usr/local/etc/nginx
. Once located, open nginx.conf
in a text editor and look for return
or rewrite
directives that are using the 308
response code flag. For example, here is a simple block directive
(i.e. a named set of directives) that configures a virtual server by creating a redirection from airbrake.io
to airbrake.io/login
for POST
HTTP method requests:
server {
listen 80;
listen 443 ssl;
server_name airbrake.io;
if ($request_method = POST) {
return 308 https://airbrake.io/login$request_uri;
}
}
Return
directives in nginx
are similar to the RewriteCond
and RewriteRule
directives found in Apache
, as they tend to contain more complex text-based patterns for searching. Either way, look through your nginx.conf
file for any abnormal return
or rewrite
directives that include the 308
flag. Comment out any abnormalities before restarting the server to see if the issue was resolved.
Scour the Logs
Nearly every web application will keep some form of server-side logs. Application logs
are typically the history of what the application did, such as which pages were requested, which servers it connected to, which database results it provides, and so forth. Server logs
are related to the actual hardware that is running the application, and will often provide details about the health and status of all connected services, or even just the server itself. Google «logs [PLATFORM_NAME]» if you’re using a CMS, or «logs [PROGRAMMING_LANGUAGE]» and «logs [OPERATING_SYSTEM]» if you’re running a custom application, to get more information on finding the logs in question.
Debug Your Application Code
If all else fails, it may be that a problem in some custom code within your application is causing the issue. Try to diagnose where the issue may be coming from through manually debugging your application, along with parsing through application and server logs. Ideally, make a copy of the entire application to a local development machine and perform a step-by-step debug process, which will allow you to recreate the exact scenario in which the 308 Permanent Redirect
occurred and view the application code at the moment something goes wrong.
No matter what the cause, the appearance of a 308 Permanent Redirect
within your own web application is a strong indication that you may need an error management tool to help you automatically detect such errors in the future. The best of these tools can even alert you and your team immediately when an error occurs. Airbrake’s error monitoring software provides real-time error monitoring and automatic exception reporting for all your development projects. Airbrake’s state of the art web dashboard ensures you receive round-the-clock status updates on your application’s health and error rates. No matter what you’re working on, Airbrake easily integrates with all the most popular languages and frameworks. Plus, Airbrake makes it easy to customize exception parameters, while giving you complete control of the active error filter system, so you only gather the errors that matter most.
Check out Airbrake’s error monitoring software today and see for yourself why so many of the world’s best engineering teams use Airbrake to revolutionize their exception handling practices!
Иногда при запуске приложения SteamVR пользователи наблюдают ошибку 308. При этом в сообщении указывается, что «SteamVR не удалось запустить по неизвестным причинам. Ошибка (308)». Она может произойти при первоначальной установке или в ходе использования клиента. Представители официально признали ошибку, выпустив обновление, которое исправило лишь некоторые неполадки.
Содержание
- 1 Чем вызвана ошибка?
- 2 Предоставление администраторских прав
- 3 Перезапуск связанных процессов
- 4 Удаление временных файлов
- 5 Переустановка SteamVR
Чем вызвана ошибка?
Поскольку SteamVR использует больше компонентов системы в сравнении со Steam, есть случаи, когда некоторые модули переходят в состояние ошибки. Есть несколько причин, которые приводят к ошибке 308:
- SteamVR требует права администратора при запуске, в противном случае он не сможет инициализироваться.
- После инсталляции на рабочий стол выведены ярлыки, которые указывают на неправильный файл запуска.
- Повреждены временные данные, из-за которых программа не может инициализироваться.
- Процессы службы Steam или Vice находятся в состоянии ошибки. Требуется обновления этих процессов.
Перед применением решений войдите в систему от имени администратора и проверьте, чтобы подключение к интернету не использовало VPN или прокси-сервер.
Предоставление администраторских прав
Многие приложения, работающие в Windows, требуют прав администратора, чтобы получить полный контроль над компьютерными ресурсами для работы. Если не предоставлен полный доступ для SteamVR, он не сможет инициализироваться. В этом решении откроем свойства файла запуска и предоставим ему разрешения.
В Проводнике Windows перейдите в папку установки SteamVR. Кликните правой кнопкой мыши на исполняемый файл (exe) и выберите Свойства.
На вкладке Совместимость отметьте флажком поле «Запустить эту программу от имени администратора».
Примените изменения и попробуйте еще раз запустить SteamVR.
Перезапуск связанных процессов
Многие приложения имеют запущенные фоновые службы. Есть случаи, когда фоновые процессы переходят в неопределенное состояние и перестают реагировать. В этом решении перейдем в «Диспетчер задач» и завершим все процессы, связанные с SteamVR и Vice.
Откройте «Диспетчер задач» командой taskmgr, запущенной из окна Win + R.
На вкладке Процессы найдите записи SteamVR и Vice. Выделите их один за другим, щелкните правой кнопкой и выберите «Снять задачу».
После завершения попробуйте снова запустить приложение и проверьте, прерывается ли запуск ошибкой 308.
Удаление временных файлов
Steam сохраняет временные данные профиля на жестком диске. Если какой-либо из этих конфигурационных файлов будет поврежден, SteamVR не получит требуемые данные при запуске, что приведет к ошибке 308. В этом решении перейдем в установочную папку и удалим временные данные.
Прежде закройте клиента и проверьте в Диспетчере задач, чтобы не было его активных процессов.
В Проводнике перейдите в следующую локацию:
C:UsersStrixAppDataLocalopenvropenvrpaths.vrpath
Если не отображается папка AppData, включите скрытые компоненты. Перейдите на вкладку Вид в верхнем меню и выберите Параметры – Изменить папку и параметры поиска.
В окне Вид отметьте флажком опцию «Показывать скрытые файлы, папки и диски», затем примените изменения.
Теперь кликните правой кнопкой на openvropenvrpaths.vrpath и выберите «Удалить»,
Перезапустите систему и снова попробуйте открыть приложение.
Если предыдущие методы не работают, то, скорее всего, повреждены или отсутствуют установочные файлы SteamVR. Попробуйте полностью переустановить программу.
Откройте вкладку «Удаления или изменения программ» командой appwiz.cpl из окна Win + R.
В списке программ найдите SteamVR, кликните по нему правой кнопкой мыши и удалите нажатием на соответствующую кнопку.
После удаления перезагрузите ПК. Перейдите на официальный сайт и загрузите установщик. Запустите его от имени администратора и следуйте инструкциям до завершения установки.
Перезагрузите компьютер, затем запустите клиента с правами администратора. Посмотрите, прерывается ли запуск ошибкой 308.
Mar 15, 22 | Ibrahim Imran
What exactly is a 308 Permanent Redirect, and how do you fix 308 error code? Here’s how to handle the status code without causing more harm to your site.
You’ve probably heard about 301 redirects if you own a website. Have you ever encountered a status code of 308 Permanent Redirect?
These are less well-known, yet they may be equally important to your marketing efforts.
Here’s all you need to know about the 308 Permanent Redirect status code, as well as tried-and-true solutions for correcting it without causing more harm to your website.
>>> Hire the Best Mobile App Development Companies
What Is a 308 Permanent Redirect and How Does It Work?
Before we get right into how to fix 308 error code, let’s discuss what it is and how it works.
Similar to 301 Moved Permanently, 308 Permanent Redirect indicates that the resource the user attempted to access has moved to a different URI.
The 308 is a relatively new code that was just introduced to the RFC7238 specification to fill the void left by codes like 301, 302, and 307.
>>> Learn how to Fix 408 Error Code
Is This a Client-Side Error?
Let’s have a look at how the internet works before we answer this question.
On the internet, there are two key players: servers and clients.
Assume you’re using your browser to access a website. You’re using a web client to connect to the internet.
With your request to access the web page, the web client sends a message to the server. When you make a request to your server to access a resource, the server responds with an HTTP status code.
A successful request, a client error, or a server error are all possible status codes. In actuality, there are five different types of HTTP response status codes:
- Status codes 1xx: Requests for information
- 2xx status codes indicate that the request was successful.
- Redirects are represented by the 3xx status codes.
- 4xx codes of status: Errors by clients
- Server failures are indicated by the 5xx status codes.
Despite their differences, they all inform a user whether a certain HTTP request has been completed successfully.
The 308 Permanent Redirect that we’re investigating today is part of the 3xx status codes or redirects group. Some of the status codes in the category, such as 301 Moved Permanently and 307 Temporary Redirect, might have a direct impact on your site’s user experience and SEO health.
In comparison, status codes in the 4xx group – such as the 404 Not Found error – indicate a problem on the client side. The 5xx status codes, on the other hand, indicate that the issue is caused by anything on the server side of things.
We can completely disregard the client-side of things because the 308 Permanent Redirect indicates a problem on the server side.
>>> Error Playing Content 403 Forbidden: How To Fix
What Is the Difference Between Redirects 301, 302, 307, and 308?
Let’s understand the differences of each before we get into how to fix 308 error code.
One of the most prevalent redirects is the 301 redirect. It signifies that the resource has been transferred permanently and that change of the request method from POST to GET is permitted. If you want to permanently redirect a moved or deleted page, or if the structure of your permalinks has changed, you should use this redirect. To avoid a 404 error, always add a 301 redirect to your removed or moved pages.
302 Found: A 302 redirect is a one-time redirect that sends visitors and search engines to a different page for a set period of time. It indicates that the resource has been moved temporarily and that conversion of the request method from POST to GET is permitted. When you’re rebuilding or changing your website, use this redirect.
307 Temporary Redirect: The HTTP 1.1 successor to 302 redirects is the 307 Temporary Redirect. It indicates that the resource has been moved temporarily and that converting the request method from POST to GET is prohibited.
As you can see from the list above, this collection of codes is missing a status code that signals a permanent redirect that prevents the conversion of POST to GET. The 308 status code serves this purpose.
>>> Err_Ssl_Protocol_Error WordPress: How To Fix?
What Is a 308 Permanent Redirect Response Code and How to Fix 308 Error Code?
If your website is returning a 308 Permanent Redirect response code, follow these steps to diagnose and resolve the problem.
Make a Complete Backup of your Application.
This suggestion is more of a piece of safety advise than a code-fixing method. You must make a replica of your website on a secondary server that isn’t online or otherwise active if you don’t want to further damage it.
Before you try to remedy the problem and update the system, make a complete backup. This creates a safe environment in which you may test all potential fixes without jeopardizing the security of your live application.
Ensure that your Server is Configured Correctly.
The first real advice on the list is to examine your web server’s configuration files for any unintended redirect instructions.
Your application is served by one of two web servers: Apache or Nginx. If it’s running on an Apache server, make sure apache server and.htaccess are both checked.
If you’re using Nginx, you only need to verify one file: nginx conf_. After you’ve found the files, look for a 308 status code and see what comes up. If it does, you must change it. If you don’t require the status code, you may either remove it totally or apply it to a single page.
>>> Hire the best Software Development Companies
Troubleshoot Your Application Code
Probably one of the best ways to fix 308 error code is to troubleshoot your app code. Server-side logs are kept by almost every web application. The history of what the application did while running a website is frequently stored in application logs.
If the troubleshooting step above didn’t solve the problem, the issue could be due to custom code in your application.
You must manually debug your application code to discover if this is the case. When something goes wrong, go through a step-by-step troubleshooting process to replicate the exact scenario that caused the 308 Permanent Redirect and see the application code.
>>> How to Resolve HTTP Error 508 WordPress Sites
Final Thoughts
The 308 Permanent Redirect status code indicates that the user’s requested resource has moved to a different URI.
The best technique to fix 308 error code is to:
Verify your server’s settings.
Debug the code in your application.
You should invest in a reliable website maintenance solution to assist you automatically spot such mistakes in the future to avoid status codes severely influencing your user experience and SEO performance. Exai, for example, can detect an issue as soon as it arises. You can rest assured that your website is current and completely functional, allowing you to maintain a strong online presence.
If you are in need of professional help, connect with the best website development companies at Distinguished.io today.
Leave a comment
Your email address will not be published. Required fields are marked *