Closed BruceEckel closed 7 months ago
Not sure if this helps: when I start with an empty Structurizr data directory, starting the app will produce a workspace.dsl
file, and then when I try to open the browser the workspace.json
file appears.
The Docker version seems to work consistently.
Just installed the Docker version on my desktop (the other was on my laptop) and it started seamlessly. (also a Windows 11 machine).
Thanks for the information. Do you see any errors in your web browser's developer/JavaScript console? I'm wondering whether this is a problem with running Graphviz ... does commenting out autoLayout
in your workspace.dsl
file resolve the issue?
I removed all autoLayouts. Here's the browser javascript console:
LegacyDataMixin will be applied to all legacy elements.
Set `_legacyUndefinedCheck: true` on element class to enable.
DevTools failed to load source map: Could not load content for chrome-extension://akimgimeeoiognljlfchpbkpfbmeapkh/polyfills/web-animations-next-lite.min.js.map: System error: net::ERR_FILE_NOT_FOUND
After removing the autoLayouts, I got the following on the windows terminal used for invoking the command (after the usual copyright stuff):
2023-07-10T10:44:30.396-06:00 WARN 20844 --- [nio-8080-exec-1] com.structurizr.dsl.AbstractViewParser : Container-001 is an automatically generated view key - you will likely lose manual layout information when using automatically generated view keys.
2023-07-10T10:44:30.422-06:00 WARN 20844 --- [nio-8080-exec-1] com.structurizr.dsl.AbstractViewParser : Component-001 is an automatically generated view key - you will likely lose manual layout information when using automatically generated view keys.
2023-07-10T10:44:30.429-06:00 WARN 20844 --- [nio-8080-exec-1] com.structurizr.dsl.AbstractViewParser : Component-002 is an automatically generated view key - you will likely lose manual layout information when using automatically generated view keys.
2023-07-10T10:44:31.073-06:00 WARN 20844 --- [nio-8080-exec-1] com.structurizr.view.ViewSet : Could not find a matching view for "System Landscape" ... diagram layout information may be lost.
2023-07-10T10:44:31.073-06:00 WARN 20844 --- [nio-8080-exec-1] com.structurizr.view.ViewSet : Could not find a matching view for "C4 Dsl Extension - Containers" ... diagram layout information may be lost.
2023-07-10T10:44:31.078-06:00 WARN 20844 --- [nio-8080-exec-1] com.structurizr.view.ViewSet : Could not find a matching view for "C4 Dsl Extension - C4 DSL Client - Components" ... diagram layout information may be lost.
At this point I've stopped attempting to get the war file to work, since the docker version not only works but starts up faster. My guess is that it wouldn't be an impediment to narrow the instructions to just using the docker version, at least for windows. Especially since that seems to have a reliable testing process. (Insert requisite joke about "Java, write once run everywhere").
I have a similar problem with the current structurizr-lite.war version. When I run that on a (virtual) machine with no internet access at all. The same dsl and war runs fine on another machine with http(s) internet access.
More info: the browser shows a lot of Server errros (500)
GET https://fonts.googleapis.com/css?family=Open+Sans:400,700 net::ERR_NAME_NOT_RESOLVED structurizr-ui.js:1 Uncaught TypeError: Cannot set properties of undefined (setting 'DEFAULT_FONT_NAME') at structurizr-ui.js:1:34 (anonymous) @ structurizr-ui.js:1 diagrams:368 Uncaught TypeError: Cannot set properties of undefined (setting 'ProgressMessage') at diagrams:368:36 (anonymous) @ diagrams:368 diagrams:415 Uncaught TypeError: Cannot set properties of undefined (setting 'QuickNavigation') at diagrams:415:36 (anonymous) @ diagrams:415 diagrams:681 Uncaught TypeError: Cannot set properties of undefined (setting 'Tooltip') at diagrams:681:28 (anonymous) @ diagrams:681 jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500) diagrams:2137 Uncaught ReferenceError: progressMessage is not defined at diagrams:2137:5 (anonymous) @ diagrams:2137 diagrams:3406 Uncaught TypeError: Cannot read properties of undefined (reading 'StructurizrApiClient') at diagrams:3406:53 (anonymous) @ diagrams:3406 jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500) jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500) jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500) jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500) jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500)
I found that running it in Docker worked fine.
Bruce Eckel HappyPathProgramming.com SummerTechForum.com MindViewLLC.com Blog: BruceEckel.com EvolveWork.co WinterTechForum.com http://www.WinterTechForum.com OnJava8.com http://www.OnJava8.com www.AtomicKotlin.com Reinventing-Business.com http://www.Reinventing-Business.com
On Fri, Nov 3, 2023 at 7:30 AM WolfgangNiebuhr @.***> wrote:
I have a similar problem with the current structurizr-lite.war version. When I run that on a (virtual) machine with no internet access at all. The same dsl and war runs fine on another machine with http(s) internet access.
More info: the browser shows a lot of Server errros (500)
GET https://fonts.googleapis.com/css?family=Open+Sans:400,700 net::ERR_NAME_NOT_RESOLVED structurizr-ui.js:1 Uncaught TypeError: Cannot set properties of undefined (setting 'DEFAULT_FONT_NAME') at structurizr-ui.js:1:34 (anonymous) @ structurizr-ui.js:1 diagrams:368 Uncaught TypeError: Cannot set properties of undefined (setting 'ProgressMessage') at diagrams:368:36 (anonymous) @ diagrams:368 diagrams:415 Uncaught TypeError: Cannot set properties of undefined (setting 'QuickNavigation') at diagrams:415:36 (anonymous) @ diagrams:415 diagrams:681 Uncaught TypeError: Cannot set properties of undefined (setting 'Tooltip') at diagrams:681:28 (anonymous) @ diagrams:681 jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500) diagrams:2137 Uncaught ReferenceError: progressMessage is not defined at diagrams:2137:5 (anonymous) @ diagrams:2137 diagrams:3406 Uncaught TypeError: Cannot read properties of undefined (reading 'StructurizrApiClient') at diagrams:3406:53 (anonymous) @ diagrams:3406 jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500) jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500) jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500) jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500) jquery-3.6.3.min.js:2
POST http://localhost:8080/error 500 (Internal Server Error)
send @ jquery-3.6.3.min.js:2 ajax @ jquery-3.6.3.min.js:2 logError @ structurizr.js:54 window.onerror @ structurizr.js:49 error (async) (anonymous) @ structurizr.js:48 structurizr.js:71 There was an error logging the error : error (HTTP status code=500)
— Reply to this email directly, view it on GitHub https://github.com/structurizr/lite/issues/72#issuecomment-1792441142, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHUTLBLXDV3C6KCFHAE23LYCTWYXAVCNFSM6AAAAAAZ7JBINCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJSGQ2DCMJUGI . You are receiving this because you authored the thread.Message ID: @.***>
Closing as can't reproduce.
Description
Following these instructions: https://structurizr.com/share/76352/documentation#open-your-web-browser I go to http://localhost:8080/ I get a blank browser page along with the "loading" spinner in the browser tab.
If I CTRL-C out of the app running on the console, then I immediately see this:![image](https://github.com/structurizr/lite/assets/1001900/2fa231ab-8cc2-4cc3-8422-35f3947c50b5)
But that only happens sometimes.
There was one attempt where I seemed to be able to get it working, even editing the
workspace.dsl
, getting an (appropriate) error message and fixing it and reloading the page to regenerate the diagram. But it's unclear to me how I accomplished this; so far it appears random whether a particular command-line invocation is going to successfully produce a browser page.Steps to reproduce
The generated workspace.dsl (slightly modified):
}
{ "id" : 1, "name" : "Name", "description" : "Description", "lastModifiedDate" : "2023-07-05T17:30:01Z", "properties" : { "structurizr.dsl" : "d29ya3NwYWNlIHsNCg0KICAgIG1vZGVsIHsNCiAgICAgICAgdXNlciA9IHBlcnNvbiAiQm9iIg0KICAgICAgICBzb2Z0d2FyZVN5c3RlbSA9IHNvZnR3YXJlU3lzdGVtICJSb2JvdGljIFN0b3JhZ2UgU3lzdGVtIg0KDQogICAgICAgIHVzZXIgLT4gc29mdHdhcmVTeXN0ZW0gIlVzZXMiDQogICAgfQ0KDQogICAgdmlld3Mgew0KICAgICAgICBzeXN0ZW1Db250ZXh0IHNvZnR3YXJlU3lzdGVtICJGb29fQmFyIiB7DQogICAgICAgICAgICBpbmNsdWRlICoNCiAgICAgICAgICAgIGF1dG9MYXlvdXQNCiAgICAgICAgfQ0KICAgIH0NCg0KfQ0K" }, "configuration" : { }, "model" : { "people" : [ { "id" : "1", "tags" : "Element,Person", "properties" : { "structurizr.dsl.identifier" : "user" }, "name" : "Bob", "relationships" : [ { "id" : "3", "tags" : "Relationship", "properties" : { "structurizr.dsl.identifier" : "40283aa9-5fc2-43c6-98d2-f585918a5020" }, "sourceId" : "1", "destinationId" : "2", "description" : "Uses" } ], "location" : "Unspecified" } ], "softwareSystems" : [ { "id" : "2", "tags" : "Element,Software System", "properties" : { "structurizr.dsl.identifier" : "softwaresystem" }, "name" : "Robotic Storage System", "location" : "Unspecified", "documentation" : { } } ] }, "documentation" : { }, "views" : { "systemContextViews" : [ { "key" : "Foo_Bar", "order" : 1, "softwareSystemId" : "2", "automaticLayout" : { "implementation" : "Graphviz", "rankDirection" : "TopBottom", "rankSeparation" : 300, "nodeSeparation" : 300, "edgeSeparation" : 0, "vertices" : false }, "enterpriseBoundaryVisible" : true, "relationships" : [ { "id" : "3" } ], "elements" : [ { "id" : "1", "x" : 0, "y" : 0 }, { "id" : "2", "x" : 0, "y" : 0 } ] } ], "configuration" : { "branding" : { }, "styles" : { }, "terminology" : { }, "lastSavedView" : "Foo_Bar" } } }
Configuration