question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SEB3 service fails to start

See original GitHub issue

IMPORTANT Please always consult the documentation first before creating a bug report! https://safeexambrowser.org/windows/win_usermanual_en.html

Describe the Bug On some computers SEB3’s service fails to start due to exception: “Failed to start communication host for endpoint ‘net.pipe://localhost/safeexambrowser/service’ within 5 seconds” This happens on some desktops / laptops regardless of hard drive type (HDD or SSD) when they start up.

Steps to Reproduce Steps to reproduce the behavior: It’s random behavior.

Expected Behavior SEB3’s service should implement some retry logic to ensure service is up and running.

Screenshots If applicable, add screenshots to help explain your problem.

Version Information

  • OS: Windows 10 Professional, Version 1809
  • SEB-Version SEB 3.0.1.163

Additional Context The only workaround was to create an automated scheduled task (attached to specific event) that tries to start SEB’s service within next 30 seconds. If interested, here is event filter:

<?xml version="1.0" encoding="UTF-8"?>
<QueryList>
   <Query Id="0" Path="System">
      <Select Path="System">*[EventData[Data[@Name='param1'] and (Data*='Safe Exam Browser Service')]]
and
*[System[(EventID='7034')]]</Select>
   </Query>
</QueryList>

Having this event filter you can deploy a scheduled task (in case you use Active Directory). Unfortunately this is not viable solution for student’s computers.

Here is service’s log:

2020-09-14 11:17:43.989 [04] - INFO: Initiating startup procedure...
2020-09-14 11:17:44.426 [04] - INFO: Starting auto-restore mechanism...
2020-09-14 11:17:44.755 [04] - INFO: [AutoRestoreMechanism] Started auto-restore mechanism.
2020-09-14 11:17:44.973 [04] - INFO: Starting communication host...
2020-09-14 11:17:45.208 [05] - DEBUG: [FeatureConfigurationBackup] No backup data found under 'C:\windows\system32\config\systemprofile\AppData\Local\SafeExamBrowser\Backup.bin'.
2020-09-14 11:17:45.270 [05] - INFO: [AutoRestoreMechanism] Nothing to restore, stopped auto-restore mechanism.
2020-09-14 11:17:49.207 [07] - DEBUG: [ServiceHost] Communication host is opening...
2020-09-14 11:17:53.910 [07] - DEBUG: [ServiceHost] Communication host has been opened.
2020-09-14 11:17:53.910 [07] - DEBUG: [ServiceHost] Successfully started communication host for endpoint 'net.pipe://localhost/safeexambrowser/service'.
2020-09-14 11:17:55.472 [04] - ERROR: Caught unexpected exception while performing operation 'CommunicationHostOperation'!

   Exception Message: Failed to start communication host for endpoint 'net.pipe://localhost/safeexambrowser/service' within 5 seconds!
   Exception Type: System.ServiceModel.CommunicationException

   at SafeExamBrowser.Communication.Hosts.BaseHost.Start() in C:\Users\appveyor\projects\seb-win-refactoring-l9ysdqd7kes2i06p\SafeExamBrowser.Communication\Hosts\BaseHost.cs:line 142
   at SafeExamBrowser.Core.Operations.CommunicationHostOperation.Perform() in C:\Users\appveyor\projects\seb-win-refactoring-l9ysdqd7kes2i06p\SafeExamBrowser.Core\Operations\CommunicationHostOperation.cs:line 42
   at SafeExamBrowser.Core.OperationModel.OperationSequence.Perform() in C:\Users\appveyor\projects\seb-win-refactoring-l9ysdqd7kes2i06p\SafeExamBrowser.Core\OperationModel\OperationSequence.cs:line 108

2020-09-14 11:17:55.488 [04] - INFO: Stopping communication host...
2020-09-14 11:17:55.488 [04] - DEBUG: [ServiceHost] Communication host is closing...
2020-09-14 11:17:56.082 [04] - DEBUG: [ServiceHost] Communication host has been closed.
2020-09-14 11:17:56.082 [04] - DEBUG: [ServiceHost] Terminated communication host for endpoint 'net.pipe://localhost/safeexambrowser/service'.
2020-09-14 11:17:56.082 [04] - INFO: Stopping auto-restore mechanism...
2020-09-14 11:17:56.082 [04] - INFO: [AutoRestoreMechanism] Auto-restore mechanism is not running.
2020-09-14 11:17:56.097 [04] - INFO: Service startup aborted!



Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dbuechelcommented, Sep 28, 2020

We will increase the timeout for the service communication host to 15 seconds for version 3.1.

1reaction
dbuechelcommented, Sep 25, 2020

I think we could increase it to 10 or 15 seconds, @danschlet ? What I would like to avoid is that users are stuck in front of a loading screen for a long time if something fails.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failure to initialize SEB service - Safe Exam Browser
I have installed SEB on several machines (Windows 10, 64bit) . In one particular machine, the application refuses to start, and I get...
Read more >
Windows User Manual
"Secure session" in this case is a session based on a SEB config file with a quit password set. If currently no quit...
Read more >
Agent Service fails to start on standalone server - SQL Server
Issue 1: On a standalone server, the MSSQLSERVER service may fail to start, and you receive the following error message: An error 1068...
Read more >
Give the IUPAC Name for the following: Root, heptane Seb ...
Question: Give the IUPAC Name for the following: Root, heptane Seb: 3,3-dimethyl i subi 3-ethyl 3-ethyloctane. 3,3-dimethylheptane في ethyl rootinonane 7 ...
Read more >
How to troubleshoot 3rd party service start failure on ...
1. Run SysInternals ProcMon to identify the resource that it is failing on (access denied). · Nothing shows up in ProcMon. I filtered...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found