immense / Remotely

A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
GNU General Public License v3.0
4.5k stars 1.61k forks source link

Warnings in the logs #748

Open rellis-erigon opened 1 year ago

rellis-erigon commented 1 year ago

Hi All hoping some one can help... I am running Remotely on OMV (Linux)/ Docker / Portainer,

using docker compose


version: '3.3' services: remotely: container_name: remotely restart: unless-stopped ports:


In portainer logs from start up,


Entered main script. Starting Remotely server. [09:56:15 WRN] Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. {EventId={Id=60, Name="UsingEphemeralFileSystemLocationInContainer"}, SourceContext="Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository", ThreadId=1} [09:56:19 WRN] No XML encryptor configured. Key {94dc2de1-5c39-4c03-bd17-c4be853cec1f} may be persisted to storage in unencrypted form. {EventId={Id=35, Name="NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedForm"}, SourceContext="Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager", ThreadId=1} [09:56:20 WRN] Failed to determine the https port for redirect. {EventId={Id=3, Name="FailedToDeterminePort"}, SourceContext="Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware", RequestId="0HMU0Q9ACKRA2:00000001", RequestPath="/hubs/service/negotiate", ConnectionId="0HMU0Q9ACKRA2", ThreadId=13} [09:56:43 WRN] Device has not been set in the context items. {SourceContext="Remotely.Server.Hubs.AgentHub", TransportConnectionId="Hu9M3QRLky72uPVjg7YUPw", RequestId="0HMU0Q9ACKRBO:00000001", RequestPath="/hubs/service", ConnectionId="0HMU0Q9ACKRBO", ThreadId=15}


What are the Errors? Would any of this be the cause of my systems droping on and off all the time... its only been an issue since the most recent 2 or so updates. Both windows and Linux clients.

Thanks this is an amazing program.

Rob

halfdans commented 3 months ago

Hi,

I am experiencing the same issue. I am also running the container using Docker-Compose (or as a stack in Portainer) and my logs are filled with the following entries:

Here is my docker-compose.yml:

version: '3.4'

networks:
  remotely:
    name: remotely-network
    driver: bridge
    ipam:
      config:
        - subnet: 172.28.0.0/16
          gateway: 172.28.0.1

services:
  remotely:
    image: immybot/remotely:latest
    container_name: remotely
    volumes:
      - /var/www/remotely:/app/AppData
    restart: unless-stopped
    ports:
      - "5000:5000"
    networks:
      - remotely
    environment:
      - ASPNETCORE_ENVIRONMENT=Production
      - ASPNETCORE_HTTP_PORTS=5000
      # Other ASP.NET Core configurations can be overridden here, such as Logging.
      # See https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0
      - Serilog__MinimumLevel__Override__Microsoft.AspNetCore=Warning
      - Serilog__MinimumLevel__Override__System=Warning

      # Values for DbProvider are SQLite, SQLServer, and PostgreSQL.
      - Remotely_ApplicationOptions__DbProvider=SQLite
      # The Docker gateway will be used in Forwarded Headers, which is necessary to
      # to correctly determine request hostname and scheme within the app.  If you change
      # the network config, you must update this value as well.
      - Remotely_ApplicationOptions__DockerGateway=172.28.0.1
      # This path shouldn't be changed.  It points to the Docker volume.
      - Remotely_ConnectionStrings__SQLite=Data Source=/app/AppData/Remotely.db

And here are the error messages that flood my logs:

***
2024-06-29 14:07:16.520 +00:00 [WRN] Device has not been set in the context items. { SourceContext: "Remotely.Server.Hubs.AgentHub", TransportConnectionId: "W-3JAxWTqmV1lnmysIDjEA", RequestId: "0HN4NRDGAQNPS:00000001", RequestPath: "/hubs/service", ConnectionId: "0HN4NRDGAQNPS", ThreadId: 14 }
2024-06-29 14:07:16.520 +00:00 [WRN] Device has not been set in the context items. { SourceContext: "Remotely.Server.Hubs.AgentHub", TransportConnectionId: "eI5v_3StIQcn8kntkjvXJQ", RequestId: "0HN4NRDGAQNO5:00000001", RequestPath: "/hubs/service", ConnectionId: "0HN4NRDGAQNO5", ThreadId: 14 }
2024-06-29 14:07:16.520 +00:00 [WRN] Device has not been set in the context items. { SourceContext: "Remotely.Server.Hubs.AgentHub", TransportConnectionId: "NYGnpb0Qws6aMsh3gs5FsQ", RequestId: "0HN4NRDGAQNIM:00000001", RequestPath: "/hubs/service", ConnectionId: "0HN4NRDGAQNIM", ThreadId: 14 }
2024-06-29 14:07:17.520 +00:00 [WRN] Device has not been set in the context items. { SourceContext: "Remotely.Server.Hubs.AgentHub", TransportConnectionId: "1tOZP6QCRaSA7605xhPvkQ", RequestId: "0HN4NRDGAQNVM:00000001", RequestPath: "/hubs/service", ConnectionId: "0HN4NRDGAQNVM", ThreadId: 12 }
2024-06-29 14:07:17.521 +00:00 [WRN] Device has not been set in the context items. { SourceContext: "Remotely.Server.Hubs.AgentHub", TransportConnectionId: "EM5fFLBQlZXpsO1Cms9IgA", RequestId: "0HN4NRDGAQNVD:00000001", RequestPath: "/hubs/service", ConnectionId: "0HN4NRDGAQNVD", ThreadId: 12 }
2024-06-29 14:07:17.521 +00:00 [WRN] Device has not been set in the context items. { SourceContext: "Remotely.Server.Hubs.AgentHub", TransportConnectionId: "Y1zuR-RE_BD_RSNazAxiaw", RequestId: "0HN4NRDGAQNVN:00000001", RequestPath: "/hubs/service", ConnectionId: "0HN4NRDGAQNVN", ThreadId: 12 }
2024-06-29 14:07:18.517 +00:00 [WRN] Device has not been set in the context items. { SourceContext: "Remotely.Server.Hubs.AgentHub", TransportConnectionId: "dCXW7apfb1HPzTnuDq8X8w", RequestId: "0HN4NRDGAQO4J:00000001", RequestPath: "/hubs/service", ConnectionId: "0HN4NRDGAQO4J", ThreadId: 12 }
2024-06-29 14:07:18.517 +00:00 [WRN] Device has not been set in the context items. { SourceContext: "Remotely.Server.Hubs.AgentHub", TransportConnectionId: "Hr0jQk-9GsUF1ibJTw2mUA", RequestId: "0HN4NRDGAQO19:00000001", RequestPath: "/hubs/service", ConnectionId: "0HN4NRDGAQO19", ThreadId: 12 }
2024-06-29 14:07:18.517 +00:00 [WRN] Device has not been set in the context items. { SourceContext: "Remotely.Server.Hubs.AgentHub", TransportConnectionId: "cgiPuR3dj7MZULH-2348ug", RequestId: "0HN4NRDGAQO2T:00000001", RequestPath: "/hubs/service", ConnectionId: "0HN4NRDGAQO2T", ThreadId: 12 }
***

Any help or guidance on resolving this issue would be greatly appreciated. Thank you!