#50972 Cockpit plugin build issue
Closed: wontfix by mreynolds. Opened by slev.

I'm building 389-ds 1.4.1.16.
Before that I've updated node modules.

+ SKIP_AUDIT_CI=yes
+ make 389-console
make: Entering directory '/usr/src/RPM/BUILD/389-ds-base-1.4.1.16'
cd src/cockpit/389-console; make -f node_modules.mk build-cockpit-plugin
make[1]: Entering directory '/usr/src/RPM/BUILD/389-ds-base-1.4.1.16/src/cockpit/389-console'
npm run build && cp -r dist cockpit_dist
> 389-console@1.0.0 build /usr/src/RPM/BUILD/389-ds-base-1.4.1.16/src/cockpit/389-console
> webpack
Warning: React version not specified in eslint-plugin-react settings. See https://github.com/ya
nnickcr/eslint-plugin-react#configuration .
(node:3457172) [ESLINT_LEGACY_OBJECT_REST_SPREAD] DeprecationWarning: The 'parserOptions.ecmaFe
atures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' inst
ead. (found in "standard-react")
(node:3457172) [ESLINT_LEGACY_OBJECT_REST_SPREAD] DeprecationWarning: The 'parserOptions.ecmaFe
atures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' inst
ead. (found in "node_modules/eslint-config-standard-jsx/index.js")
(node:3457172) [ESLINT_LEGACY_OBJECT_REST_SPREAD] DeprecationWarning: The 'parserOptions.ecmaFe
atures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' inst
ead. (found in "standard")
Hash: b50ffb5abcc344b418bc
Version: webpack 4.42.0
Time: 39220ms
Built at: 03/23/2020 9:51:18 AM
                                     Asset       Size  Chunks                   Chunk Names
                               banner.html   1.44 KiB          [emitted]        
                                css/ds.css     11 KiB          [emitted]        
          fonts/OpenSans-Bold-webfont.woff   96.5 KiB          [emitted]        
         fonts/OpenSans-Bold-webfont.woff2   62.2 KiB          [emitted]        
   fonts/OpenSans-BoldItalic-webfont.woff2   58.1 KiB          [emitted]        
        fonts/OpenSans-Italic-webfont.woff   91.7 KiB          [emitted]        
       fonts/OpenSans-Italic-webfont.woff2   58.5 KiB          [emitted]        
          fonts/OpenSans-Light-webfont.ttf    217 KiB          [emitted]        
         fonts/OpenSans-Light-webfont.woff   95.6 KiB          [emitted]        
        fonts/OpenSans-Light-webfont.woff2   61.7 KiB          [emitted]        
        fonts/OpenSans-Regular-webfont.ttf    212 KiB          [emitted]        
       fonts/OpenSans-Regular-webfont.woff   93.9 KiB          [emitted]        
      fonts/OpenSans-Regular-webfont.woff2   60.5 KiB          [emitted]        
       fonts/OpenSans-Semibold-webfont.ttf    216 KiB          [emitted]        
      fonts/OpenSans-Semibold-webfont.woff   96.2 KiB          [emitted]        
     fonts/OpenSans-Semibold-webfont.woff2   62.2 KiB          [emitted]        
fonts/OpenSans-SemiboldItalic-webfont.woff   92.3 KiB          [emitted]        
         fonts/PatternFlyIcons-webfont.ttf   37.1 KiB          [emitted]        
        fonts/PatternFlyIcons-webfont.woff   37.2 KiB          [emitted]        
            fonts/fontawesome-webfont.woff   95.7 KiB          [emitted]        
           fonts/fontawesome-webfont.woff2   75.4 KiB          [emitted]        
   fonts/glyphicons-halflings-regular.woff   22.9 KiB          [emitted]        
  fonts/glyphicons-halflings-regular.woff2   17.6 KiB          [emitted]        
                       images/sort_asc.png  160 bytes          [emitted]        
              images/sort_asc_disabled.png  148 bytes          [emitted]        
                      images/sort_both.png  201 bytes          [emitted]        
                      images/sort_desc.png  158 bytes          [emitted]        
             images/sort_desc_disabled.png  146 bytes          [emitted]        
                                index.html  653 bytes          [emitted]        
                                  index.js   9.45 MiB   index  [emitted]        index
                              index.js.map   9.63 MiB   index  [emitted] [dev]  index
                             manifest.json  208 bytes          [emitted]        
                           static/32px.png   3.05 KiB          [emitted]        
                           static/40px.png   1.84 KiB          [emitted]        
                      static/Typeahead.css   4.82 KiB          [emitted]        
                   static/bootpopup.min.js   6.04 KiB          [emitted]        
            static/bootstrap-theme.min.css   22.9 KiB          [emitted]        
        static/bootstrap-theme.min.css.map     25 KiB          [emitted]        
                  static/bootstrap.min.css    118 KiB          [emitted]        
              static/bootstrap.min.css.map    529 KiB          [emitted]        
                   static/bootstrap.min.js   36.2 KiB          [emitted]        
                          static/c3.min.js    182 KiB          [emitted]        
                          static/d3.min.js    148 KiB          [emitted]        
      static/dataTables.datetime-moment.js   2.04 KiB          [emitted]        
 static/images/ui-icons_444444_256x240.png   6.83 KiB          [emitted]        
 static/images/ui-icons_555555_256x240.png   6.82 KiB          [emitted]        
 static/images/ui-icons_777620_256x240.png   4.44 KiB          [emitted]
 static/images/ui-icons_ffffff_256x240.png   6.15 KiB          [emitted]        
                static/jquery-3.3.1.min.js   84.9 KiB          [emitted]        
          static/jquery.dataTables.min.css   13.3 KiB          [emitted]        
           static/jquery.dataTables.min.js   81.1 KiB          [emitted]        
    static/jquery.dataTables.select.min.js   11.2 KiB          [emitted]        
          static/jquery.timepicker.min.css   1.39 KiB          [emitted]        
           static/jquery.timepicker.min.js   15.4 KiB          [emitted]        
                      static/jstree.min.js    136 KiB          [emitted]        
                      static/moment.min.js   50.4 KiB          [emitted]        
                       static/page.min.css   2.73 KiB          [emitted]        
           static/patternfly-additions.css    233 KiB          [emitted]        
                     static/patternfly.css    214 KiB          [emitted]        
                  static/patternfly.min.js   36.2 KiB          [emitted]        
                      static/style.min.css   27.1 KiB          [emitted]        
                       static/throbber.gif   1.68 KiB          [emitted]        
Entrypoint index = index.js index.js.map
[0] multi ./src/./index.es6 28 bytes {index} [built]
[./src/css/ds.css] 1.06 KiB {index} [built]
[./src/database.jsx] 56.9 KiB {index} [built]
[./src/ds.jsx] 71 KiB {index} [built]
[./src/index.es6] 258 bytes {index} [built]
[./src/lib/database/backups.jsx] 41.5 KiB {index} [built]
[./src/lib/database/databaseTables.jsx] 33 KiB {index} [built]
[./src/lib/notifications.jsx] 10.8 KiB {index} [built]
[./src/lib/tools.jsx] 4.04 KiB {index} [built]
[./src/monitor.jsx] 53.8 KiB {index} [built]
[./src/plugins.jsx] 24.4 KiB {index} [built]
[./src/replication.jsx] 51 KiB {index} [built]
[./src/schema.jsx] 40.3 KiB {index} [built]
[./src/server.jsx] 13.9 KiB {index} [built]
[cockpit] external "cockpit" 42 bytes {index} [built]
    + 1357 hidden modules
ERROR in ./src/lib/database/databaseConfig.jsx
Module Error (from ./node_modules/eslint-loader/index.js):
/usr/src/RPM/BUILD/389-ds-base-1.4.1.16/src/cockpit/389-console/src/lib/database/databaseConfig.jsx
  377:38  error  Expected indentation of 40 space characters but found 41  react/jsx-indent
  387:38  error  Expected indentation of 40 space characters but found 41  react/jsx-indent
 2 problems (2 errors, 0 warnings)
  2 errors and 0 warnings potentially fixable with the `--fix` option.
 @ ./src/database.jsx 39:0-73 1282:56-76
 @ ./src/ds.jsx
 @ ./src/index.es6
 @ multi ./src/./index.es6
ERROR in ./src/lib/security/ciphers.jsx
Module Error (from ./node_modules/eslint-loader/index.js):
/usr/src/RPM/BUILD/389-ds-base-1.4.1.16/src/cockpit/389-console/src/lib/security/ciphers.jsx
  225:67  error  Expected indentation of 28 space characters but found 29  react/jsx-indent
  241:67  error  Expected indentation of 28 space characters but found 29  react/jsx-indent
  259:67  error  Expected indentation of 28 space characters but found 29  react/jsx-indent
 3 problems (3 errors, 0 warnings)
  3 errors and 0 warnings potentially fixable with the `--fix` option.
 @ ./src/security.jsx 39:0-53 868:44-51
 @ ./src/server.jsx
 @ ./src/ds.jsx
 @ ./src/index.es6
 @ multi ./src/./index.es6
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! 389-console@1.0.0 build: `webpack`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the 389-console@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /usr/src/.npm/_logs/2020-03-23T09_51_18_520Z-debug.log
make[1]: *** [node_modules.mk:8: build-cockpit-plugin] Error 2
make[1]: Leaving directory '/usr/src/RPM/BUILD/389-ds-base-1.4.1.16/src/cockpit/389-console'
make: *** [Makefile:14577: src/cockpit/389-console/cockpit_dist/index.html] Error 2
make: Leaving directory '/usr/src/RPM/BUILD/389-ds-base-1.4.1.16'
error: Bad exit status from /usr/src/tmp/rpm-tmp.67209 (%build)

Commit f2901631 fixes this issue

Commit f290163 fixes this issue

d8f2994bd..30712fabe 389-ds-base-1.4.2 -> 389-ds-base-1.4.2

b811ee047..849f078ca 389-ds-base-1.4.1 -> 389-ds-base-1.4.1

Metadata Update from @mreynolds:
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Issue close_status updated to: None (was: Fixed)

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/4025

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix

Metadata
Related Pull Requests