Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception during creation --- ValueFactory attempted to access the Value property of this instance. #259

Closed
Bertie2011 opened this issue May 20, 2022 · 6 comments

Comments

@Bertie2011
Copy link

With this docker compose configuration:

version: '3.1'

services:
  lighthouse:
    hostname: lighthouse
    image: petabridge/lighthouse:1.6.1
    restart: unless-stopped
    environment:
      ACTORSYSTEM: "myactorsystem"
      CLUSTER_PORT: 6600
      CLUSTER_IP: "lighthouse"
      AKKA__LOG_CONFIG_ON_START: "on"
      AKKA__CLUSTER__AUTO_DOWN_UNREACHABLE_AFTER: "86400s"
      AKKA__REMOTE__DOT_NETTY__TCP__HOSTNAME: 0.0.0.0
      CLUSTER_SEEDS: "akka.tcp://myactorsystem@lighthouse:6600"

We get these errors:

[Docker-Bootstrap] IP=lighthouse,
[Docker-Bootstrap] PORT=6600,
[Docker-Bootstrap] SEEDS=["akka.tcp://myactorsystem@lighthouse:6600"],
[Lighthouse] ActorSystem: myactorsystem; IP: lighthouse; PORT: 6600,
[Lighthouse] Performing pre-boot sanity check. Should be able to parse address [akka.tcp://myactorsystem@lighthouse:6600],
[Lighthouse] Parse successful.,
[INFO][05/20/2022 09:20:53][Thread 0001][remoting (akka://myactorsystem)] Starting remoting,
[INFO][05/20/2022 09:20:53][Thread 0001][remoting (akka://myactorsystem)] Remoting started; listening on addresses : [akka.tcp://myactorsystem@lighthouse:6600],
[INFO][05/20/2022 09:20:53][Thread 0001][remoting (akka://myactorsystem)] Remoting now listens on addresses: [akka.tcp://myactorsystem@lighthouse:6600],
[INFO][05/20/2022 09:20:53][Thread 0001][Cluster (akka://myactorsystem)] Cluster Node [akka.tcp://myactorsystem@lighthouse:6600] - Starting up...,
[ERROR][05/20/2022 09:20:54][Thread 0001][akka.tcp://myactorsystem@lighthouse:6600/system/cluster/core] Cluster node [akka.tcp://myactorsystem@lighthouse:6600] crashed, [[akka://myactorsystem/system/cluster/core/daemon#1349364722]: Akka.Actor.ActorInitializationException: Exception during creation,
 ---> System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance.,
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode),
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor),
   at System.Lazy`1.CreateValue(),
   at System.Lazy`1.get_Value(),
   at Akka.Actor.Internal.ActorSystemImpl.TryGetExtension[T](T& extension),
   at Akka.Actor.Internal.ActorSystemImpl.GetExtension[T](),
   at Akka.Actor.ActorSystemWithExtensions.WithExtension[T,TI](ActorSystem system),
   at Akka.Cluster.Cluster.Get(ActorSystem system),
   at Akka.Cluster.AutoDowning.get_DowningActorProps(),
   at Akka.Cluster.ClusterCoreDaemon.PreStart(),
   at Akka.Actor.ActorBase.AroundPreStart(),
   at Akka.Actor.ActorCell.<>c__DisplayClass176_0.<Create>b__0(),
   at Akka.Actor.ActorCell.UseThreadContext(Action action),
   at Akka.Actor.ActorCell.Create(Exception failure),
   --- End of inner exception stack trace ---,
   at Akka.Actor.ActorCell.Create(Exception failure),
   at Akka.Actor.ActorCell.SysMsgInvokeAll(EarliestFirstSystemMessageList messages, Int32 currentState)] - shutting down...,
Cause: [akka://myactorsystem/system/cluster/core/daemon#1349364722]: Akka.Actor.ActorInitializationException: Exception during creation,
 ---> System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance.,
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode),
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor),
   at System.Lazy`1.CreateValue(),
   at System.Lazy`1.get_Value(),
   at Akka.Actor.Internal.ActorSystemImpl.TryGetExtension[T](T& extension),
   at Akka.Actor.Internal.ActorSystemImpl.GetExtension[T](),
   at Akka.Actor.ActorSystemWithExtensions.WithExtension[T,TI](ActorSystem system),
   at Akka.Cluster.Cluster.Get(ActorSystem system),
   at Akka.Cluster.AutoDowning.get_DowningActorProps(),
   at Akka.Cluster.ClusterCoreDaemon.PreStart(),
   at Akka.Actor.ActorBase.AroundPreStart(),
   at Akka.Actor.ActorCell.<>c__DisplayClass176_0.<Create>b__0(),
   at Akka.Actor.ActorCell.UseThreadContext(Action action),
   at Akka.Actor.ActorCell.Create(Exception failure),
   --- End of inner exception stack trace ---,
   at Akka.Actor.ActorCell.Create(Exception failure),
   at Akka.Actor.ActorCell.SysMsgInvokeAll(EarliestFirstSystemMessageList messages, Int32 currentState),
[ERROR][05/20/2022 09:20:54][Thread 0001][akka://myactorsystem/system/cluster/core/daemon] ValueFactory attempted to access the Value property of this instance.,
Cause: [akka://myactorsystem/system/cluster/core/daemon#1349364722]: Akka.Actor.ActorInitializationException: Exception during creation,
 ---> System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance.,
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode),
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor),
   at System.Lazy`1.CreateValue(),
   at System.Lazy`1.get_Value(),
   at Akka.Actor.Internal.ActorSystemImpl.TryGetExtension[T](T& extension),
   at Akka.Actor.Internal.ActorSystemImpl.GetExtension[T](),
   at Akka.Actor.ActorSystemWithExtensions.WithExtension[T,TI](ActorSystem system),
   at Akka.Cluster.Cluster.Get(ActorSystem system),
   at Akka.Cluster.AutoDowning.get_DowningActorProps(),
   at Akka.Cluster.ClusterCoreDaemon.PreStart(),
   at Akka.Actor.ActorBase.AroundPreStart(),
   at Akka.Actor.ActorCell.<>c__DisplayClass176_0.<Create>b__0(),
   at Akka.Actor.ActorCell.UseThreadContext(Action action),
   at Akka.Actor.ActorCell.Create(Exception failure),
   --- End of inner exception stack trace ---,
   at Akka.Actor.ActorCell.Create(Exception failure),
   at Akka.Actor.ActorCell.SysMsgInvokeAll(EarliestFirstSystemMessageList messages, Int32 currentState),
[INFO][05/20/2022 09:20:54][Thread 0001][Cluster (akka://myactorsystem)] Cluster Node [akka.tcp://myactorsystem@lighthouse:6600] - Shutting down...,
[INFO][05/20/2022 09:20:54][Thread 0001][Cluster (akka://myactorsystem)] Cluster Node [akka.tcp://myactorsystem@lighthouse:6600] - Successfully shut down,
[INFO][05/20/2022 09:20:54][Thread 0001][remoting-terminator] Shutting down remote daemon.,
[INFO][05/20/2022 09:20:54][Thread 0001][remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports.,
[INFO][05/20/2022 09:20:54][Thread 0004][remoting (akka://myactorsystem)] Remoting shut down,
[INFO][05/20/2022 09:20:54][Thread 0008][remoting-terminator] Remoting shut down.

This same configuration works on v1.5.5, but throws the errors above on v1.6.1
This case was tested in an isolated setup, but in our product setup we also noticed that the ip and port sometimes don't get bound (defaulting back to 127.0.0.1:4053), perhaps it has something to do with it.

@Aaronontheweb
Copy link
Member

Aaronontheweb commented May 25, 2022

This has to do with the channel-executor that we switched to in 1.6.0 - related issue: akkadotnet/akka.net#5962

@Aaronontheweb
Copy link
Member

Whoops, meant akkadotnet/akka.net#5962

@jblackburn21
Copy link

Are there any updates to this? It looks like the linked issue has been resolved.

@Bertie2011
Copy link
Author

It might be in code, but I'm still waiting for a new lighthouse release.

@Aaronontheweb
Copy link
Member

Resolved via #267 (review) - going to push this to prod now.

@Aaronontheweb
Copy link
Member

https://github.com/petabridge/lighthouse/releases/tag/1.6.2 - this version has the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants