• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Blank pages after build

    Hi, I’m having trouble getting the application to build for the first time. The application is built and deployed successfully, but there are problems after logging into OpenSpecimen.
    The issue is that many pages are blank, namely the System Administrator page, and I can’t find any useful logs. Please advise on where I can look to troubleshoot.

    Attached are screenshots, build logs, and config files

    Home

    System Administrator

    npm.txt (2.4 KB)
    bower.txt (16.7 KB)
    gradle.txt (31 KB)
    catalina.2022-06-22.log (12.9 KB)
    localhost.2022-06-22.log (769 Bytes)

    context.xml (2.1 KB)
    openspecimen.properties (219 Bytes)

    Clicking on User leaves you with nothing ? You need to modify the Vue main.js. The problem is the main.js has a loop at the bottom that is not entered and responsible for rendering the vue parts of the UI:

    https://github.com/krishagni/openspecimen/blob/master/ui/src/main.js

    Specifically:

    let count = appProps.plugins.length;
        appProps.plugins.forEach(
          (pluginName) => {
            pluginLoader.load(pluginName).then(
              function(pluginModule) {
                app.use(pluginModule.default, { router, osSvc });
                --count;
                if (count <= 0) {
                  app.use(router).use(PrimeVue)
                    .mount('#app');
                }
              },
    
              function(error) {
                console.log('Error loading the plugin: ' + pluginName);
                console.log(error);
                --count;
                if (count <= 0) {
                  app.use(router).use(PrimeVue)
                    .mount('#app');
                }
              }
            )
          }
        );
      }
    );
    

    Does not execute
    app.use(router).use(PrimeVue)
    since .forEach() wont even enter the loop if count = 0 or None

    So for testing i fix this like this:

    let count = appProps.plugins.length;
        appProps.plugins.forEach(
          (pluginName) => {
            pluginLoader.load(pluginName).then(
              function(pluginModule) {
                app.use(pluginModule.default, { router, osSvc });
                --count;
                if (count <= 0) {
                  app.use(router).use(PrimeVue)
                    .mount('#app');
                }
              },
    
              function(error) {
                console.log('Error loading the plugin: ' + pluginName);
                console.log(error);
                --count;
                if (count <= 0) {
                  app.use(router).use(PrimeVue)
                    .mount('#app');
                }
              }
            )
          }
        );
        app.use(router).use(PrimeVue)
                    .mount('#app');
      }
    );
    

    Such that vue renders anything. Otherwise you can create the directory structure such that count is not None or 0, which i recommend for anything more than toying arround

    Ok, so that worked. Everything appears to be working after bypassing that counter.
    Why doesn’t it work normally? Do I have missing plugins, or what is a more permanent fix?

    Everything is working normal at least as long as you do not have any plugins :slight_smile:

    Hmm it counts the number of plugins that are registered into OpenSpecimen. As soon as there are Plugins it should be workin. Just remember Krishagni sells an ENTERPRISE version, which per defnition has some plugins. Actually I employ a plugin which makes counter work as intended( like the ones you can find here
    https://github.com/krishagni/os-extensions). I try to stick as close to source as possible.

    So the stuff you find in the extensions dir gives you basic directions but is not working out of the box. Further tbh a lot is going to change in the upcoming months and would not bet on this repo being viable at all in 2 months since the OpenSpecimen UI is goign through major changes.
    As soon as those are done Krishagni is most likely going to start porting the API from spring to spring boot.

    Long story short make your demo case and either:

    Buy the product or gather a team of developers

    Hi @Simon_Streit

    Thanks for identifying the issue with the UI loading. We’ll fix this issue on the master branch. The fix will be available in v9.1

    Thanks,
    Vinayak

    Why wouldn’t this repo be viable? It looks like Krishagni is actively maintaining it, is there a chance they drop support for the open source version? What is your plan going forward?

    Oh actually itll be fixed with 9.1 as Vinyar stated