Error: Couldn't find any versions for "@dhis2-ui/button" that matches "7.7.1"

after have install all d2/ci d2/ui as refer, when create test app, got this error, the cli and ui version is 7.7.0, but there reported needing 7.7.1:

Error: Couldn’t find any versions for “@dhis2-ui/button” that matches “7.7.1”
at MessageError.ExtendableBuiltin (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:721:66)
at new MessageError (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:750:123)
at Function. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:50724:13)
at Generator.next ()
at step (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:310:30)
at C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:321:13
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Error: Couldn’t find any versions for “@dhis2-ui/button” that matches “7.7.1”
at MessageError.ExtendableBuiltin (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:721:66)
at new MessageError (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:750:123)
at Function. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:50724:13)
at Generator.next ()
at step (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:310:30)
at C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:321:13
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Error: Couldn’t find any versions for “@dhis2-ui/help” that matches “7.7.1”

@linxd thank you for your question and patience, have you been able to solve this issue! I remember I solved similar issues by running d2 app scripts init . in the app directory. Please give it a try and let me know if it solves the issue, thanks! (:

Installing @dhis2/cli-app-scripts…
warning @dhis2/cli-app-scripts > axios@0.20.0: Critical security vulnerability fixed in v0.21.1. For more information, see Hotfix: Prevent SSRF by timemachine3030 · Pull Request #3410 · axios/axios · GitHub
warning @dhis2/cli-app-scripts > @dhis2/cli-helpers-engine > request@2.88.2: request has been deprecated, see Request’s Past, Present and Future · Issue #3142 · request/request · GitHub
warning @dhis2/cli-app-scripts > @dhis2/cli-helpers-engine > request > har-validator@5.1.5: this library is no longer supported
warning @dhis2/cli-app-scripts > @dhis2/cli-helpers-engine > request > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > babel-jest > @jest/transform > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning @dhis2/cli-app-scripts > i18next-scanner > acorn-stage3 > acorn-bigint@0.4.0: acorn>=6.2 supports bigint
warning @dhis2/cli-app-scripts > i18next-scanner > acorn-stage3 > acorn-export-ns-from@0.1.0: acorn>=7.2 supports export-ns-from
warning @dhis2/cli-app-scripts > i18next-scanner > acorn-stage3 > acorn-import-meta@1.1.0: acorn>=7.2 supports import-meta
warning @dhis2/cli-app-scripts > i18next-scanner > acorn-stage3 > acorn-numeric-separator@0.3.6: acorn>=7.4 supports numeric separators
warning @dhis2/cli-app-scripts > i18next-scanner > acorn-stage3 > acorn-logical-assignment@0.1.4: acorn>=7.4 supports logical assignments
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi@15.1.1: Switch to ‘npm install joi’
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack-dev-server > webpack-log > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > @pmmmwh/react-refresh-webpack-plugin > native-url > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack > node-libs-browser > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > @svgr/webpack > @svgr/plugin-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/address@2.1.4: Moved to ‘npm install @sideway/address’
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > workbox-webpack-plugin > workbox-build > strip-comments > babel-plugin-transform-object-rest-spread > babel-runtime > core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: GitHub - lydell/resolve-url: [DEPRECATED] Like Node.js’ `path.resolve`/`url.resolve` for the browser.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > resolve-url-loader > rework > css > urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > postcss-preset-env > postcss-color-hex-alpha > postcss-values-parser > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
warning @dhis2/cli-app-scripts > @dhis2/app-shell > react-scripts > optimize-css-assets-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
error Couldn’t find any versions for “filelist” that matches “^1.0.1”
node:events:368
throw er; // Unhandled ‘error’ event
^

Error: spawn yarn ENOENT
at notFoundError (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules\cross-spawn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules\cross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
Emitted ‘error’ event on ChildProcess instance at:
at ChildProcess.cp.emit (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules\cross-spawn\lib\enoent.js:30:37)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
code: ‘ENOENT’,
errno: ‘ENOENT’,
syscall: ‘spawn yarn’,
path: ‘yarn’,
spawnargs: [ ‘add’, ‘–dev’, ‘@dhis2/cli-app-scripts’ ]

Hey @linxd
Whenever I get these type of errors I try to reinstall/update everything, please try the following steps in an elevated terminal (BTW, I don’t think we need to be concerned about the ‘warnings’ because I think those are for the core team developing the @dhis2/cli …etc):

  1. npm install -g npm@8.3.0
    and don’t use the audit fix, please, I read it causes more errors (unless someone knows exactly when and why to use it.)
  2. npm install --global yarn
  3. yarn global add @dhis2/cli
  4. try the command: d2 --help

If all installations were successful, restart your OS, and then try to create the test app again in a new directory to see if it works: d2 app scripts init cop-app

If you still face an issue then I must request from one of the developers to help, please fill in this info:
Operating System:
Node.js version:
yarn version:
error log:

Thanks!

may be may network problem.
try again, success.
but run yarn start ,got :

The app cop-app is now available on port 3000

node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module ‘D:\opt\dhis\apps\tt\test\cop-app\react-scripts\bin\react-scripts.js’
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack: []

Maybe if you tried to restart after the whole installation process. And instead of yarn start try: yarn run start I used to see issues when trying yarn start but for some reason trying again with yarn run start worked. Also, sometimes trying d2 app scripts init . in the app directory fixes this issue.

I just read now that the fix could be:

npm cache clean --force 
yarn global add react-scripts

If you try again and all these don’t work then we’ll ask the developers to check this out. :crossed_fingers: Thank you!

I found all dhis2 sub-module in local dir: node_modules/@dhis2

I run from sub-directory .\node_modules@dhis2\cli\bin\d2 got :
Importing d2.config.js defaults
No package.json found, creating one…
Creating package scripts…
Installing @dhis2/cli-app-scripts…
node:events:368
throw er; // Unhandled ‘error’ event
^

Error: spawn yarn ENOENT
at notFoundError (D:\opt\dhis\apps\test\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (D:\opt\dhis\apps\test\node_modules\cross-spawn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (D:\opt\dhis\apps\test\node_modules\cross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
Emitted ‘error’ event on ChildProcess instance at:
at ChildProcess.cp.emit (D:\opt\dhis\apps\test\node_modules\cross-spawn\lib\enoent.js:30:37)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
code: ‘ENOENT’,
errno: ‘ENOENT’,
syscall: ‘spawn yarn’,
path: ‘yarn’,
spawnargs: [ ‘add’, ‘–dev’, ‘@dhis2/cli-app-scripts’ ]
}


which version of npm,yarn ,you are using :
yarn --version
3.1.1
npm --version
8.3.0


but :
yarn global install @dhis2/cli
Usage Error: The ‘yarn global’ commands have been removed in 2.x - consider using ‘yarn dlx’ or a third-party plugin instead

@linxd would it be possible for you to host your code somewhere public so that we could check? If that’s not possible would you be able to share your yarn.lock file?

1 Like

yarn.lock.doc (2.5 MB)

re install again with npm -g install @dhis2/cli, it’s ok ,but still got :

d2 app scripts init t1
node:internal/validators:119
throw new ERR_INVALID_ARG_TYPE(name, ‘string’, value);
^

TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
at new NodeError (node:internal/errors:371:5)
at validateString (node:internal/validators:119:11)
at Object.resolve (node:path:167:9)
at module.exports (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-helpers-engine\lib\createModuleLoader.js:17:44)
at builder (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\src\index.js:6:24)
at builder (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-helpers-engine\lib\namespace.js:13:21)
at module.exports (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-helpers-engine\lib\makeEntryPoint.js:16:5)
at Object. (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\bin\d2:8:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10) {
code: ‘ERR_INVALID_ARG_TYPE’


windows 11.
yarn :3.1.1
npm : 8.3.0

@linxd there was a temporary issue with our cli tool, but that has been resolved now. Could you try running npm -g install @dhis2/cli one more time?

1 Like

no using. still have same problem:
d2 app scripts init tt
[WARNING] A config file already exists, use --force to overwrite it
Creating package scripts…
[WARNING] A script called “build” already exists, use --force to overwrite it
[WARNING] A script called “start” already exists, use --force to overwrite it
[WARNING] A script called “test” already exists, use --force to overwrite it
[WARNING] A script called “deploy” already exists, use --force to overwrite it
Installing @dhis2/cli-app-scripts…
node:events:368
throw er; // Unhandled ‘error’ event
^

Error: spawn yarn ENOENT
at notFoundError (D:\opt\dhis\apps\test\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (D:\opt\dhis\apps\test\node_modules\cross-spawn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (D:\opt\dhis\apps\test\node_modules\cross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
Emitted ‘error’ event on ChildProcess instance at:
at ChildProcess.cp.emit (D:\opt\dhis\apps\test\node_modules\cross-spawn\lib\enoent.js:30:37)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
code: ‘ENOENT’,
errno: ‘ENOENT’,
syscall: ‘spawn yarn’,
path: ‘yarn’,
spawnargs: [ ‘add’, ‘–dev’, ‘@dhis2/cli-app-scripts’ ]

@linxd You are getting this error because on Windows the yarn command is named yarn.cmd.

Adding alias yarn='yarn.cmd' to your .bash_profile (as explained here) may solve your issue.

1 Like

I can run yarn in cmd line, add line “alias yarn=‘yarn.cmd’”
still NO,

change to new directory,
E:\test>d2 app scripts init tt
d2 app scripts init

Setup an app

Options:
–verbose Enable verbose messages [boolean]
–debug Enable debug messages [boolean]
–quiet Enable quiet mode [boolean]
–config Path to JSON config file
–cwd working directory to use (defaults to cwd)
–force Overwrite existing files and configurations
[boolean] [default: false]
–lib Create a library [boolean] [default: false]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]

RangeError: Maximum call stack size exceeded
at Object.existsSync (node:fs:290:20)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:16:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)
at findYarnLock (C:\Users\Administrator\AppData\Roaming\npm\node_modules@dhis2\cli\node_modules@dhis2\cli-app-scripts\src\lib\paths.js:19:12)

chang to a new directory , do :
d2 i
yarn
d2 app scripts init test
all ok.
but yarn start :

yarn run v1.22.15
$ d2-app-scripts start
Generating internationalization strings…
Writing 2 language strings to ./i18n\en.pot…
Bootstrapping local appShell…
Copying appShell to temporary directory…
Building app tt…
Generating manifests…

Starting development server…
The app tt is now available on port 3000

node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module ‘E:\test\tt\react-scripts\bin\react-scripts.js’
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack: []
}
error Command failed with exit code 1.
node:events:368
throw er; // Unhandled ‘error’ event
^

Error: spawn yarn ENOENT
at notFoundError (E:\test\tt\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (E:\test\tt\node_modules\cross-spawn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (E:\test\tt\node_modules\cross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
Emitted ‘error’ event on ChildProcess instance at:
at ChildProcess.cp.emit (E:\test\tt\node_modules\cross-spawn\lib\enoent.js:30:37)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
code: ‘ENOENT’,
errno: ‘ENOENT’,
syscall: ‘spawn yarn’,
path: ‘yarn’,
spawnargs: [ ‘run’, ‘start’ ]
}
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.

=============
yarn add react-scripts … no “global” option
yarn start
It’s ok…

can start and open browser, but can’t login to dhis2 server. when enter the url, user and password, enter will repeat ask enter account. …

in tomcat console , got this log:

WARN 2022-01-08T19:45:19,149 Could not find action or result: /dhis/dhis-web-commons-security/login.action (Dispatcher.java [http-nio-8080-exec-1])
IDDoKMecekan1IgwX9eJRF7ak84/Md1B46dcei5ZPu+aA= com.opensymphony.xwork2.config.ConfigurationException: There is no Action mapped for action name login.
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:195) ~[struts2-core-2.5.26.jar:2.5.26]
at org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:57) ~[struts2-core-2.5.26.jar:2.5.26]
at org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:32) ~[struts2-core-2.5.26.jar:2.5.26]
at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:60) ~[struts2-core-2.5.26.jar:2.5.26]
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564) [struts2-core-2.5.26.jar:2.5.26]
at org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79) [struts2-core-2.5.26.jar:2.5.26]
at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:141) [struts2-core-2.5.26.jar:2.5.26]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.54]
at org.hisp.dhis.commons.jsonfiltering.web.JsonFilteringRequestFilter.doFilter(JsonFilteringRequestFilter.java:71) [dhis-support-json-filtering-2.37.1-SNAPSHOT.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.54]
at org.hisp.dhis.servlet.filter.AppOverrideFilter.doFilterInternal(AppOverrideFilter.java:175) [dhis-web-commons-2.37.1-SNAPSHOT.jar:?]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [spring-web-5.3.6.jar:5.3.6]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.54]
at org.hisp.dhis.webapi.filter.RequestIdentifierFilter.doFilterInternal(RequestIdentifierFilter.java:105) [dhis-web-api-2.37.1-SNAPSHOT.jar:?]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [spring-web-5.3.6.jar:5.3.6]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.54]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-websocket.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.54]
at org.hisp.dhis.servlet.filter.HttpUrlPatternFilter.doFilter(HttpUrlPatternFilter.java:123) [dhis-web-commons-2.37.1-SNAPSHOT.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.54]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.hisp.dhis.webapi.filter.CorsFilter.doFilter(CorsFilter.java:123) [dhis-web-api-2.37.1-SNAPSHOT.jar:?]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:218) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:212) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.hisp.dhis.webapi.filter.CustomAuthenticationFilter.doFilter(CustomAuthenticationFilter.java:90) [dhis-web-api-2.37.1-SNAPSHOT.jar:?]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:103) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:89) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183) [spring-security-web-5.4.7.jar:5.4.7]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [spring-web-5.3.6.jar:5.3.6]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.54]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [spring-web-5.3.6.jar:5.3.6]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.54]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.3.6.jar:5.3.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.6.jar:5.3.6]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.54]
at org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:156) [spring-orm-5.3.6.jar:5.3.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.6.jar:5.3.6]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.54]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) [catalina.jar:9.0.54]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [catalina.jar:9.0.54]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) [catalina.jar:9.0.54]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) [catalina.jar:9.0.54]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [catalina.jar:9.0.54]
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687) [catalina.jar:9.0.54]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [catalina.jar:9.0.54]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) [catalina.jar:9.0.54]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) [tomcat-coyote.jar:9.0.54]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-coyote.jar:9.0.54]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895) [tomcat-coyote.jar:9.0.54]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1722) [tomcat-coyote.jar:9.0.54]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:9.0.54]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat-util.jar:9.0.54]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat-util.jar:9.0.54]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:9.0.54]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_311]

resolve it by add cors whitelist

2 Likes

Did you resolve the first issue that had to do with yarn start or is this the same issue that has been resolved using cors whitelist?

Thank you @linxd!

I think it’s resolved by way of local install dhis2/cli on app 's dir.

1 Like

Great, thank you for sharing! :+1:

I’m using Windows 10 and I had a similar issue when the project directory was in the Desktop but when I tried a different directory (outside of the Users folder) it worked! :thinking: