I'm new to angular, but we are implementing Angular material for the popup functionality.
In the app.module.ts I'm importing the MatButtonModule and MatDialog module with the following import statements.
import {MatButtonModule} from "#angular/material/button/typings/button-module";
import {MatDialogModule} from "#angular/material/dialog/typings/dialog-module";
For some reason when I compile, using ng build, I get the error message below.
ng build
Date: 2020-05-04T18:47:12.434Z
Hash: 9bec1eb21effd8a26717
Time: 10607ms
chunk {main} main.js, main.js.map (main) 426 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 425 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 200 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 5.56 MB [initial] [rendered]
ERROR in ./src/app/app.module.ts
Module not found: Error: Can't resolve '#angular/material/button/typings/button-module' in
'C:\Code\AFI\bugs\68550\Hpfc.Afi.Web\src\app'
ERROR in ./src/app/app.module.ts
Module not found: Error: Can't resolve '#angular/material/dialog/typings/dialog-module' in
'C:\Code\AFI\bugs\68550\Hpfc.Afi.Web\src\app'
Here are my versions
Angular CLI: 7.3.9
Node: 12.16.2
OS: win32 x64
Angular: 7.2.15
... common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
---------------------------------------------------------
#angular-devkit/architect 0.13.9
#angular-devkit/build-angular 0.13.9
#angular-devkit/build-webpack 0.13.9
#angular-devkit/core 0.7.5
#angular-devkit/schematics 0.7.5
#angular/animations 7.2.16
#angular/cdk 7.3.7
#angular/cli 7.3.9
#angular/material 7.3.7
#ngtools/json-schema 1.1.0
#ngtools/webpack 7.3.9
#schematics/angular 7.3.9
#schematics/package-update 0.7.5
#schematics/update 0.13.9
rxjs 6.5.4
typescript 3.2.4
webpack 4.29.0
What am I missing or not doing correctly to get those error message?
In order to import these modules you also need to add them to the module where you want to use them, E.g: app.module.ts
#NgModule({
declarations: [AppComponent],
imports: [BrowserModule, MatButtonModule, MatDialogModule],
providers: [],
bootstrap: [AppComponent]
})
Then you should be able to use both of them in all the components that belong to that module
Related
I have no problems in importing sql3 in my Electron-React-Typescript-Webpack app:
import sqlite3 from 'sqlite3';
But when I add these lines in main.ts :
const sql3_cb = () => {
console.log("Welcome to sql3");
}
app.on('ready', async () => {
createMainWindow();
const infopiecesSqliteDb = new sqlite3.database(
path.join(app.getPath('userData'), '/infopiecessql3db'),
sql3_cb,
);
}
when running the app I get the following errors (complete backtrace):
(base) marco#pc01:~/webMatters/electronMatters/Raphy-Template$ yarn
start
yarn run v1.22.5
$ yarn run build && electron ./dist/main/main.js
$ npx webpack --config ./webpack.config.js
asset main.js 4.95 MiB [compared for emit] (name: main)
orphan modules 263 KiB [orphan] 138 modules
runtime modules 1.06 KiB 6 modules
javascript modules 3.6 MiB
cacheable modules 3.59 MiB
modules by path ./node_modules/ 3.58 MiB 660 modules
modules by path ./src/ 13.3 KiB 3 modules
json modules 374 KiB
modules by path ./node_modules/har-schema/lib/*.json 6.93 KiB 18
modules
modules by path ./node_modules/iconv-lite/encodings/tables/*.json
86.7 KiB 8 modules
modules by path ./node_modules/node-pre-gyp/ 16.8 KiB 3 modules
modules by path ./node_modules/ajv/lib/refs/*.json 5.58 KiB 3
modules
4 modules
WARNING in ./node_modules/node-pre-gyp/lib/pre-binding.js 20:22-48
Critical dependency: the request of a dependency is an expression
# ./node_modules/node-pre-gyp/lib/node-pre-gyp.js 42:0-44
# ./node_modules/sqlite3/lib/sqlite3-binding.js 1:13-36
# ./node_modules/sqlite3/lib/sqlite3.js 2:14-45
# ./src/main/main.ts 35:16-34
WARNING in ./node_modules/node-pre-gyp/lib/util/compile.js 39:27-49
Module not found: Error: Can't resolve 'npm' in '/home/marco
/webMatters/electronMatters/Raphy-Template/node_modules/node-pre-
gyp/lib/util'
# ./node_modules/node-pre-gyp/lib/ sync ^\.\/.*$ ./util/compile.js
./util/compile
# ./node_modules/node-pre-gyp/lib/node-pre-gyp.js 52:13-36 184:38-55
# ./node_modules/sqlite3/lib/sqlite3-binding.js 1:13-36
# ./node_modules/sqlite3/lib/sqlite3.js 2:14-45
# ./src/main/main.ts 35:16-34
WARNING in ./node_modules/node-pre-gyp/lib/util/versioning.js 17:20-67
Critical dependency: the request of a dependency is an expression
# ./node_modules/node-pre-gyp/lib/ sync ^\.\/.*$ ./util/versioning.js
./util/versioning
# ./node_modules/node-pre-gyp/lib/node-pre-gyp.js 52:13-36 184:38-55
# ./node_modules/sqlite3/lib/sqlite3-binding.js 1:13-36
# ./node_modules/sqlite3/lib/sqlite3.js 2:14-45
# ./src/main/main.ts 35:16-34
WARNING in ./node_modules/sqlite3/lib/sqlite3-binding.js 4:14-35
Critical dependency: the request of a dependency is an expression
# ./node_modules/sqlite3/lib/sqlite3.js 2:14-45
# ./src/main/main.ts 35:16-34
4 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show
it.
ERROR in ./node_modules/node-gyp/lib/Find-VisualStudio.cs 9:6
Module parse failed: Unexpected token (9:6)
You may need an appropriate loader to handle this file type, currently
no loaders are configured to process this file. See
https://webpack.js.org/concepts#loaders
| // This script needs to be compatible with PowerShell v2 to run on
Windows 2008R2 and Windows 7.
|
> using System;
| using System.Text;
| using System.Runtime.InteropServices;
# ./node_modules/node-gyp/lib/ sync ^\.\/.*$ ./Find-VisualStudio.cs
# ./node_modules/node-gyp/lib/node-gyp.js 41:13-36 190:36-53
# ./node_modules/node-pre-gyp/lib/util/compile.js 29:28-55
# ./node_modules/node-pre-gyp/lib/ sync ^\.\/.*$ ./util/compile.js
./util/compile
# ./node_modules/node-pre-gyp/lib/node-pre-gyp.js 52:13-36 184:38-55
# ./node_modules/sqlite3/lib/sqlite3-binding.js 1:13-36
# ./node_modules/sqlite3/lib/sqlite3.js 2:14-45
# ./src/main/main.ts 35:16-34
ERROR in ./node_modules/node-pre-gyp/lib/info.js 14:14-32
Module not found: Error: Can't resolve 'aws-sdk' in '/home/marco
/webMatters/electronMatters/Raphy-Template/node_modules/node-pre-
gyp/lib'
# ./node_modules/node-pre-gyp/lib/ sync ^\.\/.*$ ./info.js ./info
# ./node_modules/node-pre-gyp/lib/node-pre-gyp.js 52:13-36 184:38-55
# ./node_modules/sqlite3/lib/sqlite3-binding.js 1:13-36
# ./node_modules/sqlite3/lib/sqlite3.js 2:14-45
# ./src/main/main.ts 35:16-34
ERROR in ./node_modules/node-pre-gyp/lib/publish.js 18:14-32
Module not found: Error: Can't resolve 'aws-sdk' in '/home/marco
/webMatters/electronMatters/Raphy-Template/node_modules/node-pre-
gyp/lib'
# ./node_modules/node-pre-gyp/lib/ sync ^\.\/.*$ ./publish.js
./publish
# ./node_modules/node-pre-gyp/lib/node-pre-gyp.js 52:13-36 184:38-55
# ./node_modules/sqlite3/lib/sqlite3-binding.js 1:13-36
# ./node_modules/sqlite3/lib/sqlite3.js 2:14-45
# ./src/main/main.ts 35:16-34
ERROR in ./node_modules/node-pre-gyp/lib/unpublish.js 16:14-32
Module not found: Error: Can't resolve 'aws-sdk' in '/home/marco
/webMatters/electronMatters/Raphy-Template/node_modules/node-pre-
gyp/lib'
# ./node_modules/node-pre-gyp/lib/ sync ^\.\/.*$ ./unpublish.js
./unpublish
# ./node_modules/node-pre-gyp/lib/node-pre-gyp.js 52:13-36 184:38-55
# ./node_modules/sqlite3/lib/sqlite3-binding.js 1:13-36
# ./node_modules/sqlite3/lib/sqlite3.js 2:14-45
# ./src/main/main.ts 35:16-34
ERROR in ./node_modules/node-pre-gyp/lib/util/nw-pre-gyp/index.html
1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently
no loaders are configured to process this file. See
https://webpack.js.org/concepts#loaders
> <!doctype html>
| <html>
| <head>
# ./node_modules/node-pre-gyp/lib/ sync ^\.\/.*$ ./util/nw-pre-
gyp/index.html
# ./node_modules/node-pre-gyp/lib/node-pre-gyp.js 52:13-36 184:38-55
# ./node_modules/sqlite3/lib/sqlite3-binding.js 1:13-36
# ./node_modules/sqlite3/lib/sqlite3.js 2:14-45
# ./src/main/main.ts 35:16-34
3 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show
it.
webpack 5.31.2 compiled with 5 errors and 4 warnings in 12546 ms
assets by path lib/pdfjs-dist/web/ 4.55 MiB 341 assets
assets by path assets/ 1.4 MiB
assets by path assets/css/ 1.23 MiB 22 assets
assets by path assets/pics/ 170 KiB 9 assets
assets by path *.js 11.5 MiB 7 assets
assets by path lib/pdfjs-dist/build/ 6.3 MiB
assets by path lib/pdfjs-dist/build/*.map 4 MiB 3 assets
assets by path lib/pdfjs-dist/build/*.js 2.3 MiB 3 assets
assets by path *.html 28 KiB 5 assets
asset lib/pdfjs-dist/LICENSE 9.94 KiB [compared for emit] [from:
src/lib/pdfjs-dist/LICENSE] [copied]
asset lib/infopiecemgr.js 2.77 KiB [compared for emit] [from: src/lib
/infopiecemgr.js] [copied]
orphan modules 35.2 KiB [orphan] 118 modules
runtime modules 7.32 KiB 32 modules
modules by path ./node_modules/ 3.38 MiB 850 modules
modules by path ./src/ 132 KiB
modules by path ./src/app/ 55.9 KiB 16 modules
modules by path ./src/app_A/ 24.8 KiB 4 modules
modules by path ./src/app_B/ 24.8 KiB 4 modules
modules by path ./src/store/*.ts 3.5 KiB
./src/store/redux_hooks.ts 556 bytes [built] [code generated]
./src/store/store.ts 2.96 KiB [built] [code generated]
modules by path ./src/assets/css/*.css 21 KiB
./src/assets/css/global.css 339 bytes [built] [code generated]
./node_modules/css-loader/dist/cjs.js!./src/assets/css/global.css
20.7 KiB [built] [code generated]
./src/reducers/infopiece/infopieceSlice.ts 1.98 KiB [built] [code
generated]
webpack 5.31.2 compiled successfully in 12552 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
this command.
It looks like the errors are related to node-pre-gyp and / or webpack configuration.
But I do not understand how to fix them.
How to use sqlite3 in an Electron app?
(node:2679) UnhandledPromiseRejectionWarning: TypeError:
sqlite3_1.default.database is not a constructor
at App.<anonymous> (/home/marco/webMatters/electronMatters/Raphy-
Template/dist/main/main.js:60:32)
at App.emit (events.js:315:20)
(Use `electron --trace-warnings ...` to show where the warning was
created)
(node:2679) UnhandledPromiseRejectionWarning: Unhandled promise
rejection. This error originated either by throwing inside of an async
function without a catch block, or by rejecting a promise which was
not handled with .catch(). To terminate the node process on unhandled
promise rejection, use the CLI flag `--unhandled-rejections=strict`
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).
(rejection id: 1)
(node:2679) [DEP0018] DeprecationWarning: Unhandled promise rejections
are deprecated. In the future, promise rejections that are not handled
will terminate the Node.js pro
I created a brand new Rails app with Ruby 2.7.2 and Ruby on Rails 6.1.3:
rails new rails6
Then I installed the CoffeeScript compiler using the Rails command:
rails webpacker:install:coffee
But when i started the webpack-dev-server, he was unable to compile correctly:
Asset Size Chunks Chunk Names
js/application-30c16ea0138c526e20f5.js 515 KiB application [emitted] [immutable] application
js/application-30c16ea0138c526e20f5.js.map 579 KiB application [emitted] [dev] application
js/hello_coffee-5eba0c58c2666f949e88.js 395 KiB hello_coffee [emitted] [immutable] hello_coffee
js/hello_coffee-5eba0c58c2666f949e88.js.map 444 KiB hello_coffee [emitted] [dev] hello_coffee
manifest.json 710 bytes [emitted]
ERROR in ./app/javascript/packs/hello_coffee.coffee
Module build failed (from ./node_modules/coffee-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
at Object.loader (/Users/iwan/dev/rails/rails6/node_modules/coffee-loader/dist/index.js:21:24)
ℹ 「wdm」: Failed to compile.
How to fix this issue?
I found that downgrading coffee-loader to the version 1.0.1 removed the error.
Edit package.json and change the version from
"coffee-loader": "^2.0.0",
to
"coffee-loader": "1.0.1",
Then run yarn install --check-files to apply the change.
Happy days!
I bumped webpacker from 4.x to 5.2.1 and started getting this warning:
The resolved_paths option has been deprecated. Use additional_paths instead.
This seems straightforward enough, my config/webpacker.yml was almost unmodified:
# Additional paths webpack should lookup modules
# ['app/assets', 'engine/foo/app/assets']
resolved_paths: [
'app/assets',
]
But doing a simple s/resolved_paths/additional_paths/ there doesn't work:
[Webpacker] Compiling...
[Webpacker] Compilation failed:
Hash: 7448f36a43523a84e146
Version: webpack 4.44.1
Time: 5803ms
Built at: 10/15/2020 11:57:06 AM
Asset Size Chunks Chunk Names
js/application-a019b363e4513fe092e6.js 3.02 MiB application [emitted] [immutable] application
js/application-a019b363e4513fe092e6.js.map 3.03 MiB application [emitted] [dev] application
js/hello_react-40e806bdb6de496532d8.js 1.05 MiB hello_react [emitted] [immutable] hello_react
js/hello_react-40e806bdb6de496532d8.js.map 1.21 MiB hello_react [emitted] [dev] hello_react
js/server_rendering-9cd9dcc6e1cebb2a8063.js 2.25 MiB server_rendering [emitted] [immutable] server_rendering
js/server_rendering-9cd9dcc6e1cebb2a8063.js.map 2.44 MiB server_rendering [emitted] [dev] server_rendering
manifest.json 1.05 KiB [emitted]
Entrypoint application = js/application-a019b363e4513fe092e6.js js/application-a019b363e4513fe092e6.js.map
Entrypoint hello_react = js/hello_react-40e806bdb6de496532d8.js js/hello_react-40e806bdb6de496532d8.js.map
Entrypoint server_rendering = js/server_rendering-9cd9dcc6e1cebb2a8063.js js/server_rendering-9cd9dcc6e1cebb2a8063.js.map
[./app/javascript/channels sync recursive _channel\.js$] ./app/javascript/channels sync _channel\.js$ 160 bytes {application} [built]
[./app/javascript/channels/index.js] 211 bytes {application} [built]
[./app/javascript/components sync recursive ^\.\/.*$] ./app/javascript/components sync ^\.\/.*$ 2.42 KiB {application} {server_rendering} [built]
[./app/javascript/packs/application.js] 10.3 KiB {application} [built]
[./app/javascript/packs/hello_react.jsx] 1.05 KiB {hello_react} [built]
[./app/javascript/packs/server_rendering.js] 301 bytes {server_rendering} [built]
[./node_modules/webpack/buildin/amd-options.js] (webpack)/buildin/amd-options.js 80 bytes {application} {server_rendering} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 905 bytes {application} {server_rendering} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 552 bytes {application} {server_rendering} [built]
+ 474 hidden modules
ERROR in ./app/javascript/components/menu/MenuComponent.jsx
Module not found: Error: Can't resolve 'images/ellipsis-v.svg' in '/home/me/app/javascript/components/menu'
So obviously additional_paths isn't just a drop-in replacement, even though the docs suggest it should be.
Before I jump into the source to try to understand what's happening here, anyone got a quick fix?
The error is logged in the web browser's console, and it comes from the npm package. You need to upgrade both: the webpacker gem and #rails/webpacker npm package.
I am trying to use Vuelidate in production with Webpacker for my Rails app.
Usually I just need to run the following commands for my packages.json to get built and deployed into my app:
RAILS_ENV=production bundle exec rake assets:clobber
RAILS_ENV=production bundle exec rake assets:clean
RAILS_ENV=production bundle exec rake assets:precompile
but this isn't working in prod since I added Vuelidate (works fine in dev).
Using /home/my_user/my_app/config/webpacker.yml file for setting up webpack paths
Compiling…
Compilation failed:
Hash: a535894e7898c0a336a3
Version: webpack 3.5.6
Time: 13838ms
Asset Size Chunks Chunk Names
app-36e1d2de960efd5bf847.js.map 17.4 kB 2 [emitted] app
dashboard-9cadea07287686e15eed.js 99 kB 0 [emitted] dashboard
app-36e1d2de960efd5bf847.js 1.65 kB 2 [emitted] app
app-4758d50be4328c1ed27fc08a09d9dae2.css 119 bytes 2 [emitted] app
dashboard-9cadea07287686e15eed.js.map 808 kB 0 [emitted] dashboard
application-06c4c55e7d8c8e2ea0de.js.map 703 kB 1 [emitted] application
application-06c4c55e7d8c8e2ea0de.js 83.9 kB 1 [emitted] application
app-4758d50be4328c1ed27fc08a09d9dae2.css.map 117 bytes 2 [emitted] app
app-36e1d2de960efd5bf847.js.gz 843 bytes [emitted]
application-06c4c55e7d8c8e2ea0de.js.gz 30.5 kB [emitted]
dashboard-9cadea07287686e15eed.js.gz 35.4 kB [emitted]
manifest.json 518 bytes [emitted]
[1] (webpack)/buildin/global.js 509 bytes {0} {1} [built]
[2] ./app/javascript/packs/app.vue + 2 modules 1.65 kB {2} [built]
[3] ./node_modules/extract-text-webpack-plugin/dist/loader.js?{"omit":1,"remove":true}!./node_modules/vue-style-loader!./node_modules/css-loader?minimize!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-18f420a0","scoped":true,"hasInlineConfig":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./app/javascript/packs/app.vue 41 bytes {2} [built]
[5] ./app/javascript/packs/application.js 1.92 kB {1} [built]
[6] ./app/javascript/packs/dashboard.js + 1 modules 45.1 kB {0} [built]
[8] ./node_modules/css-loader?minimize!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-18f420a0","scoped":true,"hasInlineConfig":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./app/javascript/packs/app.vue 220 bytes [built]
+ 6 hidden modules
ERROR in ./app/javascript/packs/application.js
Module not found: Error: Can't resolve 'vuelidate' in '/home/my_user/my_app/app/javascript/packs'
# ./app/javascript/packs/application.js 13:0-34
ERROR in ./app/javascript/packs/dashboard.js
Module not found: Error: Can't resolve 'vuelidate' in '/home/my_user/my_app/app/javascript/packs'
# ./app/javascript/packs/dashboard.js 35:0-34
ERROR in ./app/javascript/packs/application.js
Module not found: Error: Can't resolve 'vuelidate/lib/validators' in '/home/my_user/my_app/app/javascript/packs'
# ./app/javascript/packs/application.js 14:0-59
ERROR in ./app/javascript/packs/dashboard.js
Module not found: Error: Can't resolve 'vuelidate/lib/validators' in '/home/my_user/my_app/app/javascript/packs'
# ./app/javascript/packs/dashboard.js 36:0-72
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?minimize!node_modules/vue-loader/lib/style-compiler/index.js?{"vue":true,"id":"data-v-18f420a0","scoped":true,"hasInlineConfig":false}!node_modules/vue-loader/lib/selector.js?type=styles&index=0!app/javascript/packs/app.vue:
[0] ./node_modules/css-loader?minimize!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-18f420a0","scoped":true,"hasInlineConfig":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./app/javascript/packs/app.vue 220 bytes {0} [built]
+ 1 hidden module
here is my package.json file:
{
"license": "UNLICENSED",
"dependencies": {
"#rails/webpacker": "^3.0.1",
"vue": "^2.4.3",
"vue-loader": "^13.0.4",
"vue-resource": "^1.3.4",
"vue-template-compiler": "^2.4.3",
"vuelidate": "^0.5.0"
},
"devDependencies": {
"webpack-dev-server": "^2.8.1"
}
}
I'm guessing the pack isn't being properly installed to /home/my_user/my_app/app/javascript/packs. Any idea how I'd fix this?
Thanks in advance!
I was trying to install docker with these instructions:
https://docs.docker.com/engine/installation/linux/centos/
It went well without any error, just one warning. But nothing seems to be get installed. I tried it a few times with different approaches on two different machines. Result was the same. It did not install.
Here is the console output:
[root#myhostname ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root#myhostname ~]# uname -r
3.10.0-229.el7.x86_64
[root#myhostname ~]# cat /etc/yum.repos.d/docker.repo
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
[root#myhostname ~]# sudo yum install docker-engine
Loaded plugins: fastestmirror, langpacks, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
dockerrepo | 2.9 kB 00:00:00
dockerrepo/7/primary_db | 11 kB 00:00:00
Loading mirror speeds from cached hostfile
apel-7-x86_64 | 1.0 kB 00:00:00
epel-7-x86_64 | 1.5 kB 00:00:00
ipel-7-x86_64 | 1.0 kB 00:00:00
spacewalk-client-el7-x86_64 | 1.2 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package docker-engine.x86_64 0:1.10.1-1.el7.centos will be installed
--> Processing Dependency: docker-engine-selinux >= %{epoch}:1.10.1-1.el7.centos for package: docker-engine-1.10.1-1.el7.centos.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: docker-engine-1.10.1-1.el7.centos.x86_64
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.10.1-1.el7.centos.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.10.1-1.el7.centos.x86_64
--> Running transaction check
---> Package device-mapper-libs.x86_64 7:1.02.93-3.el7_1.1 will be updated
--> Processing Dependency: device-mapper-libs = 7:1.02.93-3.el7_1.1 for package: 7:device-mapper-1.02.93-3.el7_1.1.x86_64
---> Package device-mapper-libs.x86_64 7:1.02.107-5.el7_2.1 will be an update
---> Package docker-engine-selinux.noarch 0:1.10.1-1.el7.centos will be installed
---> Package systemd-libs.x86_64 0:208-20.el7_1.6 will be updated
--> Processing Dependency: systemd-libs = 208-20.el7_1.6 for package: systemd-208-20.el7_1.6.x86_64
---> Package systemd-libs.x86_64 0:219-19.el7_2.4 will be an update
--> Running transaction check
---> Package device-mapper.x86_64 7:1.02.93-3.el7_1.1 will be updated
--> Processing Dependency: device-mapper = 7:1.02.93-3.el7_1.1 for package: 7:device-mapper-event-1.02.93-3.el7_1.1.x86_64
---> Package device-mapper.x86_64 7:1.02.107-5.el7_2.1 will be an update
---> Package systemd.x86_64 0:208-20.el7_1.6 will be updated
--> Processing Dependency: systemd = 208-20.el7_1.6 for package: systemd-sysv-208-20.el7_1.6.x86_64
--> Processing Dependency: systemd = 208-20.el7_1.6 for package: systemd-python-208-20.el7_1.6.x86_64
--> Processing Dependency: systemd = 208-20.el7_1.6 for package: libgudev1-208-20.el7_1.6.x86_64
---> Package systemd.x86_64 0:219-19.el7_2.4 will be an update
--> Processing Dependency: kmod >= 18-4 for package: systemd-219-19.el7_2.4.x86_64
--> Running transaction check
---> Package device-mapper-event.x86_64 7:1.02.93-3.el7_1.1 will be updated
--> Processing Dependency: device-mapper-event = 7:1.02.93-3.el7_1.1 for package: 7:lvm2-libs-2.02.115-3.el7_1.1.x86_64
---> Package device-mapper-event.x86_64 7:1.02.107-5.el7_2.1 will be an update
--> Processing Dependency: device-mapper-event-libs = 7:1.02.107-5.el7_2.1 for package: 7:device-mapper-event-1.02.107-5.el7_2.1.x86_64
---> Package kmod.x86_64 0:14-10.el7 will be updated
---> Package kmod.x86_64 0:20-5.el7 will be an update
---> Package libgudev1.x86_64 0:208-20.el7_1.6 will be updated
---> Package libgudev1.x86_64 0:219-19.el7_2.4 will be an update
---> Package systemd-python.x86_64 0:208-20.el7_1.6 will be updated
---> Package systemd-python.x86_64 0:219-19.el7_2.4 will be an update
---> Package systemd-sysv.x86_64 0:208-20.el7_1.6 will be updated
---> Package systemd-sysv.x86_64 0:219-19.el7_2.4 will be an update
--> Running transaction check
---> Package device-mapper-event-libs.x86_64 7:1.02.93-3.el7_1.1 will be updated
---> Package device-mapper-event-libs.x86_64 7:1.02.107-5.el7_2.1 will be an update
---> Package lvm2-libs.x86_64 7:2.02.115-3.el7_1.1 will be updated
--> Processing Dependency: lvm2-libs = 7:2.02.115-3.el7_1.1 for package: 7:lvm2-2.02.115-3.el7_1.1.x86_64
---> Package lvm2-libs.x86_64 7:2.02.130-5.el7_2.1 will be an update
--> Running transaction check
---> Package lvm2.x86_64 7:2.02.115-3.el7_1.1 will be updated
---> Package lvm2.x86_64 7:2.02.130-5.el7_2.1 will be an update
--> Processing Dependency: device-mapper-persistent-data >= 0.5.5-1 for package: 7:lvm2-2.02.130-5.el7_2.1.x86_64
--> Running transaction check
---> Package device-mapper-persistent-data.x86_64 0:0.4.1-2.el7 will be updated
---> Package device-mapper-persistent-data.x86_64 0:0.5.5-1.el7 will be an update
--> Processing Conflict: systemd-219-19.el7_2.4.x86_64 conflicts initscripts < 9.49.28-1
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.24-1.el7 will be updated
---> Package initscripts.x86_64 0:9.49.30-1.el7 will be an update
--> Processing Conflict: systemd-219-19.el7_2.4.x86_64 conflicts dracut < 033-243
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package dracut.x86_64 0:033-241.el7_1.5 will be updated
--> Processing Dependency: dracut = 033-241.el7_1.5 for package: dracut-config-rescue-033-241.el7_1.5.x86_64
--> Processing Dependency: dracut = 033-241.el7_1.5 for package: dracut-network-033-241.el7_1.5.x86_64
---> Package dracut.x86_64 0:033-360.el7_2 will be an update
--> Running transaction check
---> Package dracut-config-rescue.x86_64 0:033-241.el7_1.5 will be updated
---> Package dracut-config-rescue.x86_64 0:033-360.el7_2 will be an update
---> Package dracut-network.x86_64 0:033-241.el7_1.5 will be updated
---> Package dracut-network.x86_64 0:033-360.el7_2 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
docker-engine x86_64 1.10.1-1.el7.centos apel-7-x86_64 9.6 M
Updating:
dracut x86_64 033-360.el7_2 centos-7-updates-x86_64 311 k
initscripts x86_64 9.49.30-1.el7 centos-7-base-x86_64 429 k
Installing for dependencies:
docker-engine-selinux noarch 1.10.1-1.el7.centos apel-7-x86_64 28 k
Updating for dependencies:
device-mapper x86_64 7:1.02.107-5.el7_2.1 centos-7-updates-x86_64 252 k
device-mapper-event x86_64 7:1.02.107-5.el7_2.1 centos-7-updates-x86_64 167 k
device-mapper-event-libs x86_64 7:1.02.107-5.el7_2.1 centos-7-updates-x86_64 169 k
device-mapper-libs x86_64 7:1.02.107-5.el7_2.1 centos-7-updates-x86_64 304 k
device-mapper-persistent-data x86_64 0.5.5-1.el7 centos-7-base-x86_64 350 k
dracut-config-rescue x86_64 033-360.el7_2 centos-7-updates-x86_64 49 k
dracut-network x86_64 033-360.el7_2 centos-7-updates-x86_64 90 k
kmod x86_64 20-5.el7 centos-7-base-x86_64 114 k
libgudev1 x86_64 219-19.el7_2.4 centos-7-updates-x86_64 65 k
lvm2 x86_64 7:2.02.130-5.el7_2.1 centos-7-updates-x86_64 1.0 M
lvm2-libs x86_64 7:2.02.130-5.el7_2.1 centos-7-updates-x86_64 872 k
systemd x86_64 219-19.el7_2.4 centos-7-updates-x86_64 5.1 M
systemd-libs x86_64 219-19.el7_2.4 centos-7-updates-x86_64 357 k
systemd-python x86_64 219-19.el7_2.4 centos-7-updates-x86_64 98 k
systemd-sysv x86_64 219-19.el7_2.4 centos-7-updates-x86_64 52 k
Transaction Summary
====================================================================================================================================
Install 1 Package (+ 1 Dependent package)
Upgrade 2 Packages (+15 Dependent packages)
Total download size: 19 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for centos-7-updates-x86_64
No Presto metadata available for centos-7-base-x86_64
(1/19): device-mapper-1.02.107-5.el7_2.1.x86_64.rpm | 252 kB 00:00:00
(2/19): device-mapper-event-1.02.107-5.el7_2.1.x86_64.rpm | 167 kB 00:00:00
(3/19): device-mapper-event-libs-1.02.107-5.el7_2.1.x86_64.rpm | 169 kB 00:00:00
(4/19): device-mapper-libs-1.02.107-5.el7_2.1.x86_64.rpm | 304 kB 00:00:00
(5/19): device-mapper-persistent-data-0.5.5-1.el7.x86_64.rpm | 350 kB 00:00:00
warning: /var/cache/yum/x86_64/7/apel-7-x86_64/packages/docker-engine-1.10.1-1.el7.centos.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
Public key for docker-engine-1.10.1-1.el7.centos.x86_64.rpm is not installed
(6/19): docker-engine-1.10.1-1.el7.centos.x86_64.rpm | 9.6 MB 00:00:01
(7/19): docker-engine-selinux-1.10.1-1.el7.centos.noarch.rpm | 28 kB 00:00:00
(8/19): dracut-033-360.el7_2.x86_64.rpm | 311 kB 00:00:00
(9/19): dracut-config-rescue-033-360.el7_2.x86_64.rpm | 49 kB 00:00:00
(10/19): dracut-network-033-360.el7_2.x86_64.rpm | 90 kB 00:00:00
(11/19): initscripts-9.49.30-1.el7.x86_64.rpm | 429 kB 00:00:00
(12/19): kmod-20-5.el7.x86_64.rpm | 114 kB 00:00:00
(13/19): libgudev1-219-19.el7_2.4.x86_64.rpm | 65 kB 00:00:00
(14/19): lvm2-2.02.130-5.el7_2.1.x86_64.rpm | 1.0 MB 00:00:00
(15/19): lvm2-libs-2.02.130-5.el7_2.1.x86_64.rpm | 872 kB 00:00:00
(16/19): systemd-219-19.el7_2.4.x86_64.rpm | 5.1 MB 00:00:01
(17/19): systemd-libs-219-19.el7_2.4.x86_64.rpm | 357 kB 00:00:00
(18/19): systemd-python-219-19.el7_2.4.x86_64.rpm | 98 kB 00:00:00
(19/19): systemd-sysv-219-19.el7_2.4.x86_64.rpm | 52 kB 00:00:00
------------------------------------------------------------------------------------------------------------------------------------
Total 1.5 MB/s | 19 MB 00:00:13
Public key for docker-engine-selinux-1.10.1-1.el7.centos.noarch.rpm is not installed
[root#myhostname ~]# sudo service docker start
Redirecting to /bin/systemctl start docker.service
Failed to issue method call: Unit docker.service failed to load: No such file or directory.
INDEED:
[root#myhostname tmp]# ls /etc/systemd/system/docker.service
ls: cannot access /etc/systemd/system/docker.service: No such file or directory
I faced the similar issue and for me "rpm --import https://yum.dockerproject.org/gpg" didn;t work.
"yum clean all" worked for me. Looks like there was something wrong with the cache. After clean up it worked fine.