Skip to content

No change detected during commit #21

Description

@lpc921

A new project was created from scratch. Initial commit worked.

However changes are not detected in the Commit window. See error message below:

I [c.a.i.g.GatewayScriptModule   ] [22:02:08]: java.lang.RuntimeException: java.nio.file.NoSuchFileException: /usr/local/bin/ignition/data/projects/git-demo\ignition\global-props\resource.json request-origin=172.20.0.1, session-user=admin, session-project=git-demo, session-id=00E31FDB
java.lang.RuntimeException: java.nio.file.NoSuchFileException: /usr/local/bin/ignition/data/projects/git-demo\ignition\global-props\resource.json
  at com.axone_io.ignition.git.managers.GitManager.isUpdatedResource(GitManager.java:328)
  at com.axone_io.ignition.git.managers.GitManager.uncommittedChangesBuilder(GitManager.java:172)
  at com.axone_io.ignition.git.GatewayScriptModule.getUncommitedChangesImpl(GatewayScriptModule.java:108)
  at com.axone_io.ignition.git.AbstractScriptModule.getUncommitedChanges(AbstractScriptModule.java:47)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.base/java.lang.reflect.Method.invoke(Unknown Source)
  at com.inductiveautomation.ignition.gateway.servlets.gateway.functions.ModuleInvoke.invoke(ModuleInvoke.java:167)
  at com.inductiveautomation.ignition.gateway.servlets.Gateway.doPost(Gateway.java:434)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:523)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
  at com.inductiveautomation.ignition.gateway.bootstrap.MapServlet.service(MapServlet.java:86)
  at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1410)
  at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
  at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665)
  at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527)
  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
  at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
  at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)
  at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570)
  at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
  at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384)
  at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
  at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)
  at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543)
  at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
  at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306)
  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
  at com.inductiveautomation.catapult.handlers.RemoteHostNameLookupHandler.handle(RemoteHostNameLookupHandler.java:121)
  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
  at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:301)
  at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:51)
  at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:141)
  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
  at org.eclipse.jetty.server.Server.handle(Server.java:563)
  at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505)
  at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762)
  at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497)
  at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)
  at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)
  at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
  at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
  at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:416)
  at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:385)
  at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:272)
  at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:140)
  at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)
  at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969)
  at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194)
  at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149)
  at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.nio.file.NoSuchFileException: /usr/local/bin/ignition/data/projects/git-demo\ignition\global-props\resource.json
  at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source)
  at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
  at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
  at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(Unknown Source)
  at java.base/java.nio.file.Files.newByteChannel(Unknown Source)
  at java.base/java.nio.file.Files.newByteChannel(Unknown Source)
  at java.base/java.nio.file.Files.readAllBytes(Unknown Source)
  at com.axone_io.ignition.git.managers.GitManager.isUpdatedResource(GitManager.java:319)
  ... 53 common frames omitted

The file does exist.

ignition@gateway:/usr/local/bin/ignition/data/projects/git-demo/ignition/global-props$ ls
data.bin  resource.json
ignition@gateway:/usr/local/bin/ignition/data/projects/git-demo/ignition/global-props$ cat resource.json 
{
  "scope": "A",
  "version": 1,
  "restricted": false,
  "overridable": true,
  "files": [
    "data.bin"
  ],
  "attributes": {
    "lastModification": {
      "actor": "external",
      "timestamp": "2023-07-31T21:58:05Z"
    },
    "lastModificationSignature": "e2dd97017e98dcab65e35fda3ee73ed1e644ca68c98fd9fbe1fb20cd0246f3ce"
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions