cancel
Showing results for 
Search instead for 
Did you mean: 

[Unreal] Install Oculus runtime on remote server

Eanir
Protege
I recently switched to the Oculus Online Subsystem, since then I am not able to connect to my dedicated server running on an EC2 instance. I get a warning:

[2020.05.10-11.10.45:385][684]LogOnline: Warning: Oculus: Failed to initialize the Oculus Platform SDK! Failure code: -5
[2020.05.10-11.10.45:386][684]LogOnline: Warning: Oculus: Oculus API failed to initialize!

I guess because I don't have any oculus runtime installed on the server. Do I need to install to Oculus home or is there a bit more lightweight installer? The oculus home software is 15Gb so installing it on EC2 micro is not a good option. Running it on my local computer, where I have the oculus installed works fine. Or can I just build something into the dedicated server? Any thoughts? 4.25 epic src.


[2020.05.10-11.10.45:085][675]LogNet: Verbose: NotifyAcceptingConnection: Server ForestComposition accept
[2020.05.10-11.10.45:086][675]LogNet: NotifyAcceptingConnection accepted from: 146.199.17.11:57851
[2020.05.10-11.10.45:089][675]LogHandshake: SendConnectChallenge. Timestamp: 121.846199, Cookie: 113133072012245007164165174220163255145035172078046214021045
[2020.05.10-11.10.45:151][677]LogNet: Verbose: NotifyAcceptingConnection: Server ForestComposition accept
[2020.05.10-11.10.45:152][677]LogNet: NotifyAcceptingConnection accepted from: 146.199.*.*1:57851
[2020.05.10-11.10.45:153][677]LogHandshake: SendChallengeAck. InCookie: 113133072012245007164165174220163255145035172078046214021045
[2020.05.10-11.10.45:153][677]LogNet: Server accepting post-challenge connection from: 146.199.*.*1:57851
[2020.05.10-11.10.45:155][677]LogNet: Verbose: InitSequence: IncomingSequence: 3144, OutgoingSequence: 1393, InitInReliable: 72, InitOutReliable: 369
[2020.05.10-11.10.45:157][677]PacketHandlerLog: Loaded PacketHandler component: Engine.EngineHandlerComponentFactory (StatelessConnectHandlerComponent)
[2020.05.10-11.10.45:157][677]LogNet: Verbose: UNetConnection::SetClientLoginState: State changing from Invalid to LoggingIn
[2020.05.10-11.10.45:159][677]LogNet: Verbose: UNetConnection::SetExpectedClientLoginMsgType: Type same: [0]Hello
[2020.05.10-11.10.45:159][677]LogNet: NotifyAcceptedConnection: Name: ForestComposition, TimeStamp: 05/10/20 11:10:45, [UNetConnection] RemoteAddr: 146.199.17.11:57851, Name: IpConnection_2147482507, Driver: GameNetDriver IpNetDriver_2147482545, IsServer: YES, PC: NULL, Owner: NULL, UniqueId: INVALID
[2020.05.10-11.10.45:161][677]LogNet: AddClientConnection: Added client connection: [UNetConnection] RemoteAddr: 146.199.*.*1:57851, Name: IpConnection_2147482507, Driver: GameNetDriver IpNetDriver_2147482545, IsServer: YES, PC: NULL, Owner: NULL, UniqueId: INVALID
[2020.05.10-11.10.45:285][681]LogNet: NotifyAcceptingChannel Control 0 server World /Game/Maps/NewComp/ForestComposition.ForestComposition: Accepted
[2020.05.10-11.10.45:287][681]LogNet: Remote platform little endian=1
[2020.05.10-11.10.45:287][681]LogNet: This platform little endian=1
[2020.05.10-11.10.45:288][681]LogNet: Verbose: Level server received: Hello
[2020.05.10-11.10.45:288][681]LogNetVersion: VRKraft 1.0.0.0, NetCL: 0, EngineNetVer: 14, GameNetVer: 0 (Checksum: 974679460)
[2020.05.10-11.10.45:289][681]LogNet: Verbose: UNetConnection::SetExpectedClientLoginMsgType: Type changing from [0]Hello to [5]Login
[2020.05.10-11.10.45:384][684]LogNet: Verbose: Level server received: Login
[2020.05.10-11.10.45:384][684]LogOnline: OSS: Creating online subsystem instance for: Oculus
[2020.05.10-11.10.45:385][684]LogOnline: Display: Oculus: FOnlineSubsystemOculus::InitWithWindowsPlatform()
[2020.05.10-11.10.45:385][684]LogOnline: Warning: Oculus: Failed to initialize the Oculus Platform SDK! Failure code: -5
[2020.05.10-11.10.45:386][684]LogOnline: Warning: Oculus: Oculus API failed to initialize!
[2020.05.10-11.10.45:387][684]LogNet: Login request: /Game/Maps/Menu?Name=Eanir userId: Oculus:2625804874194*** platform: Oculus
[2020.05.10-11.10.45:388][684]LogNet: PreLogin failure: incompatible_unique_net_id
[2020.05.10-11.10.45:548][689]LogNet: UChannel::ReceivedSequencedBunch: Bunch.bClose == true. ChIndex == 0. Calling ConditionalCleanUp.
[2020.05.10-11.10.45:550][689]LogNet: UChannel::CleanUp: ChIndex == 0. Closing connection. [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 146.199.*.*1:57851, Name: IpConnection_2147482507, Driver: GameNetDriver IpNetDriver_2147482545, IsServer: YES, PC: NULL, Owner: NULL, UniqueId: Oculus:2625804874194***
[2020.05.10-11.10.45:550][689]LogNet: UNetConnection::Close: [UNetConnection] RemoteAddr: 146.199.*.*1:57851, Name: IpConnection_2147482507, Driver: GameNetDriver IpNetDriver_2147482545, IsServer: YES, PC: NULL, Owner: NULL, UniqueId: Oculus:2625804874194***, Channels: 2, Time: 2020.05.10-11.10.45
[2020.05.10-11.10.45:551][689]LogNet: UChannel::Close: Sending CloseBunch. ChIndex == 0. Name: [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 146.199.*.*1:57851, Name: IpConnection_2147482507, Driver: GameNetDriver IpNetDriver_2147482545, IsServer: YES, PC: NULL, Owner: NULL, UniqueId: Oculus:2625804874194225
[2020.05.10-11.10.45:582][690]LogNet: UNetConnection::PendingConnectionLost. [UNetConnection] RemoteAddr: 146.199.*.*1:57851, Name: IpConnection_2147482507, Driver: GameNetDriver IpNetDriver_2147482545, IsServer: YES, PC: NULL, Owner: NULL, UniqueId: Oculus:2625804874194*** bPendingDestroy=0 
[2020.05.10-11.10.45:583][690]LogNet: Verbose: UNetConnection::SetClientLoginState: State changing from LoggingIn to CleanedUp


3 REPLIES 3

MikeF
Trustee
Have you tried including the platform .dll's with your build? This will cause an instant rejection if you try to upload to the oculus backend, but for other redistributables it should be fine.

 I have to do this for my cross platform builds that use parts of the oculus SDK but dont use Oculus home as the primary platform.

you can find these in C:\Program Files\Oculus\Support\oculus-runtime LibOVRPlatform64.dll (there's 32 bit and 64 bit dll's in there so be sure to include all of them depending on your setup)

Eanir
Protege
Yes, that is what I'm looking for. Thanks for the info!

Eanir
Protege
I think I'm one step closer now, I don't get that warning until I try to connect. Now, when I try login the server says:

Failed to initialize the Oculus Platform SDK! Failure code: -3
...
PreLogin failure: incompatible_unique_net_id

The error code changed from -5 to -3. Any solution for this?

[2020.05.15-17.31.19:162][828]LogNet: NotifyAcceptedConnection: Name: ForestComposition, TimeStamp: 05/15/20 17:31:19, [UNetConnection] RemoteAddr: 146.199.17.105:61264, Name: IpConnection_2147482500, Driver: GameNetDriver IpNetDriver_2147482545, IsServer: YES, PC: NULL, Owner: NULL, UniqueId: INVALID
[2020.05.15-17.31.19:163][828]LogNet: AddClientConnection: Added client connection: [UNetConnection] RemoteAddr: 146.199.17.105:61264, Name: IpConnection_2147482500, Driver: GameNetDriver IpNetDriver_2147482545, IsServer: YES, PC: NULL, Owner: NULL, UniqueId: INVALID
[2020.05.15-17.31.19:187][829]LogNet: Verbose: UNetConnection::SetClientLoginState: State same: CleanedUp
[2020.05.15-17.31.19:253][831]LogNet: NotifyAcceptingChannel Control 0 server World /Game/Maps/NewComp/ForestComposition.ForestComposition: Accepted
[2020.05.15-17.31.19:256][831]LogNet: Remote platform little endian=1
[2020.05.15-17.31.19:257][831]LogNet: This platform little endian=1
[2020.05.15-17.31.19:257][831]LogNet: Verbose: Level server received: Hello
[2020.05.15-17.31.19:258][831]LogNet: Verbose: UNetConnection::SetExpectedClientLoginMsgType: Type changing from [0]Hello to [5]Login
[2020.05.15-17.31.19:352][834]LogNet: Verbose: Level server received: Login
[2020.05.15-17.31.19:355][834]LogOnline: OSS: Creating online subsystem instance for: Oculus
[2020.05.15-17.31.19:356][834]LogOnline: Display: Oculus: FOnlineSubsystemOculus::InitWithWindowsPlatform()
[2020.05.15-17.31.19:356][834]LogOnline: Warning: Oculus: Failed to initialize the Oculus Platform SDK! Failure code: -3
[2020.05.15-17.31.19:358][834]LogOnline: Warning: Oculus: Oculus API failed to initialize!
[2020.05.15-17.31.19:359][834]LogNet: Login request: /Game/Maps/Menu?Name=Eanir userId: Oculus:2625804874194225 platform: Oculus
[2020.05.15-17.31.19:360][834]LogNet: PreLogin failure: incompatible_unique_net_id