Having a problem with org-roam-dailies-capture-today - emacs

Having a problem with org-roam-dailies-... functions. My org-roam-capture-template is
(setq org-roam-dailies-capture-templates
'(
("d" "default" entry
#'org-roam-capture--get-point
"* %?"
:file-name "daily/%<%Y-%m-%d>"
:head "#+title: %<%Y-%m-%d>\n\n")
("l" "lab" entry
#'org-roam-capture--get-point
"* %?"
:file-name "daily/%<%Y-%m-%d>"
:head "#+title: %<%Y-%m-%d>\n"
:olp ("Lab notes"))
("j" "journal" entry
#'org-roam-capture--get-point
"* %?"
:file-name "daily/%<%Y-%m-%d>"
:head "#+title: %<%Y-%m-%d>\n"
:olp ("Journal"))
("w" "words" entry
#'org-roam-capture--get-point
"* %?"
:file-name "daily/%<%Y-%m-%d>"
:head "#+title: %<%Y-%m-%d>\n"
:olp ("Words"))
))
When I call org-roam-dailies-capture-today, using the 'l' (lab-notes) hotkey, it complains...
heading not found on level 1: Lab notes.
That makes perfect sense, in the context of vanilla org-capture, because the file hasn't been created yet, so it isn't going to have any headings in it. But the point of this function is to create the file. So it has to create these headings itself and then the sub-headings and then navigate to the proper location in the file.
If I create a file using the `default' template, then go in an add the other headings, then call org-roam-capture-dailies-today and use the 'l','j' or 'w' templates, it works fine.
Am I just missing something (which is entirely possible)
BTW. the 'default', 'lab','journal' entries in my capture template are copy-and-pastes out of the org-roam info file (org-roam is v1.2.3, as installed by emacs package manager from melpa (IIRC) ). The `words' template is based on those, and, as I said, works fine so long as a use the work-around discussed.
TIA
whd
p.s. I don't have the reputation to use org-roam... tags, and I need at least one tag. So, I used `emacs'. A bit vague, but what else could I do?

I don't know if you still need this. The question is 7 months old and is about org-roam v.1. But in any case.
You need to provide the headers you will use when you create the file. This can be done through the :head parameter.
(setq org-roam-dailies-capture-templates
(let ((header (concat "#+title: %<%Y-%m-%d>\n\n"
"* Lab notes\n\n"
"* Journal\n\n"
"* Words\n\n")))
`(("d" "default" entry
#'org-roam-capture--get-point
"* %?"
:file-name "daily/%<%Y-%m-%d>"
:head ,header)
("l" "lab" entry
#'org-roam-capture--get-point
"* %?"
:file-name "daily/%<%Y-%m-%d>"
:head ,header
:olp ("Lab notes"))
("j" "journal" entry
#'org-roam-capture--get-point
"* %?"
:file-name "daily/%<%Y-%m-%d>"
:head ,header
:olp ("Journal"))
("w" "words" entry
#'org-roam-capture--get-point
"* %?"
:file-name "daily/%<%Y-%m-%d>"
:head ,header
:olp ("Words")))))

Related

Run kibana in k8s but get `Module not found: Error: Can't resolve 'plugins/kibana/local_application_service'`

I run an es cluster in my k8s cluster, then I installed kibana, but get error:
ERROR in ./x-pack/legacy/plugins/dashboard_mode/public/dashboard_viewer.js
Module not found: Error: Can't resolve 'plugins/kibana/local_application_service' in '/usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/public'
ES cluster is running well. But kibana cannot start up. I tried 3 times to reinstall it, but not work.
Please help me, thanks.
versions: es -> 7.8.0, kibana -> 7.8.0
yamls
apiVersion: v1
kind: Service
metadata:
name: kibana
namespace: es
labels:
app: kibana
spec:
ports:
- port: 5601
type: NodePort
selector:
app: kibana
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kibana
namespace: es
labels:
app: kibana
spec:
selector:
matchLabels:
app: kibana
template:
metadata:
labels:
app: kibana
spec:
containers:
- name: kibana
image: kibana:7.8.0
resources:
limits:
cpu: '1'
requests:
cpu: '0.1'
env:
- name: ELASTICSEARCH_HOSTS
value: 'http://es-node1:9200 http://es-node2:9200'
ports:
- containerPort: 5601
kibana logs
{"type":"log","#timestamp":"2020-06-29T10:09:50Z","tags":["warning","plugins-discovery"],"pid":6,"message":"Expect plugin \"id\" in camelCase, but found: apm_oss"}
{"type":"log","#timestamp":"2020-06-29T10:09:50Z","tags":["warning","plugins-discovery"],"pid":6,"message":"Expect plugin \"id\" in camelCase, but found: triggers_actions_ui"}
{"type":"log","#timestamp":"2020-06-29T10:10:46Z","tags":["info","plugins-service"],"pid":6,"message":"Plugin \"visTypeXy\" is disabled."}
{"type":"log","#timestamp":"2020-06-29T10:10:46Z","tags":["info","plugins-service"],"pid":6,"message":"Plugin \"endpoint\" is disabled."}
{"type":"log","#timestamp":"2020-06-29T10:10:46Z","tags":["info","plugins-service"],"pid":6,"message":"Plugin \"ingestManager\" is disabled."}
{"type":"log","#timestamp":"2020-06-29T10:10:46Z","tags":["info","plugins-service"],"pid":6,"message":"Plugin \"lists\" is disabled."}
{"type":"log","#timestamp":"2020-06-29T10:11:10Z","tags":["info","plugins-system"],"pid":6,"message":"Setting up [94] plugins: [taskManager,licensing,observability,eventLog,encryptedSavedObjects,code,usageCollection,ossTelemetry,telemetryCollectionManager,telemetry,telemetryCollectionXpack,kibanaLegacy,devTools,translations,uiActions,statusPage,share,mapsLegacy,mapsLegacyLicensing,newsfeed,kibanaUtils,kibanaReact,inspector,embeddable,advancedUiActions,embeddableEnhanced,drilldowns,indexPatternManagement,esUiShared,discover,charts,bfetch,expressions,data,home,cloud,apm_oss,console,consoleExtensions,searchprofiler,painlessLab,grokdebugger,management,upgradeAssistant,reporting,licenseManagement,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,watcher,advancedSettings,telemetryManagementSection,fileUpload,dataEnhanced,visualizations,visTypeVislib,visTypeVega,visTypeTimeseries,rollup,visTypeTimelion,features,security,snapshotRestore,transform,ingestPipelines,canvas,visTypeTable,visTypeTagcloud,visTypeMetric,visTypeMarkdown,inputControlVis,navigation,lens,graph,maps,savedObjects,visualize,dashboard,dashboardEnhanced,savedObjectsManagement,spaces,actions,case,alerting,alertingBuiltins,triggers_actions_ui,infra,monitoring,logstash,uptime,ml,siem,apm]"}
{"type":"log","#timestamp":"2020-06-29T10:11:10Z","tags":["warning","plugins","encryptedSavedObjects","config"],"pid":6,"message":"Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml"}
{"type":"log","#timestamp":"2020-06-29T10:11:11Z","tags":["warning","plugins","security","config"],"pid":6,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
{"type":"log","#timestamp":"2020-06-29T10:11:11Z","tags":["warning","plugins","security","config"],"pid":6,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."}
{"type":"log","#timestamp":"2020-06-29T10:11:11Z","tags":["warning","plugins","actions","actions"],"pid":6,"message":"APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml."}
{"type":"log","#timestamp":"2020-06-29T10:11:11Z","tags":["warning","plugins","alerting","plugins","alerting"],"pid":6,"message":"APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml."}
{"type":"log","#timestamp":"2020-06-29T10:11:11Z","tags":["info","plugins","monitoring","monitoring"],"pid":6,"message":"config sourced from: production cluster"}
{"type":"log","#timestamp":"2020-06-29T10:11:11Z","tags":["warning","plugins","monitoring","monitoring"],"pid":6,"message":"X-Pack Monitoring Cluster Alerts will not be available: undefined"}
{"type":"log","#timestamp":"2020-06-29T10:11:11Z","tags":["info","savedobjects-service"],"pid":6,"message":"Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations..."}
{"type":"log","#timestamp":"2020-06-29T10:11:11Z","tags":["info","plugins","crossClusterReplication"],"pid":6,"message":"Your basic license does not support crossClusterReplication. Please upgrade your license."}
{"type":"log","#timestamp":"2020-06-29T10:11:11Z","tags":["info","plugins","watcher"],"pid":6,"message":"Your basic license does not support watcher. Please upgrade your license."}
{"type":"log","#timestamp":"2020-06-29T10:11:11Z","tags":["info","plugins","monitoring","monitoring","kibana-monitoring"],"pid":6,"message":"Starting monitoring stats collection"}
{"type":"log","#timestamp":"2020-06-29T10:11:12Z","tags":["info","savedobjects-service"],"pid":6,"message":"Starting saved objects migrations"}
{"type":"log","#timestamp":"2020-06-29T10:11:12Z","tags":["info","plugins-system"],"pid":6,"message":"Starting [72] plugins: [taskManager,licensing,observability,eventLog,encryptedSavedObjects,code,usageCollection,ossTelemetry,telemetryCollectionManager,telemetry,telemetryCollectionXpack,kibanaLegacy,translations,share,discover,bfetch,expressions,data,home,cloud,apm_oss,console,consoleExtensions,searchprofiler,painlessLab,grokdebugger,management,upgradeAssistant,reporting,licenseManagement,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,watcher,advancedSettings,fileUpload,dataEnhanced,visualizations,visTypeVislib,visTypeVega,visTypeTimeseries,rollup,visTypeTimelion,features,security,snapshotRestore,transform,ingestPipelines,canvas,visTypeTable,visTypeTagcloud,visTypeMetric,visTypeMarkdown,inputControlVis,lens,graph,visualize,dashboard,savedObjectsManagement,spaces,actions,case,alerting,alertingBuiltins,infra,monitoring,logstash,uptime,ml,siem,apm]"}
{"type":"log","#timestamp":"2020-06-29T10:11:36Z","tags":["warning","saved-objects"],"pid":6,"message":"Saved Objects uninitialized because the Kibana plugin is disabled."}
{"type":"log","#timestamp":"2020-06-29T10:11:44Z","tags":["info","optimize"],"pid":6,"message":"Optimizing and caching bundles for dashboardViewer and maps. This may take a few minutes"}
{"type":"log","#timestamp":"2020-06-29T10:14:33Z","tags":["fatal","root"],"pid":6,"message":"{ Error: Optimizations failure.\n 1660 modules\n \n ERROR in ./x-pack/legacy/plugins/dashboard_mode/public/dashboard_viewer.js\n Module not found: Error: Can't resolve 'plugins/kibana/local_application_service' in '/usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/public'\n\n at FsOptimizer.failedStatsToError (/usr/share/kibana/src/optimize/base_optimizer.js:436:26)\n at compiler.run (/usr/share/kibana/src/optimize/fs_optimizer.js:43:26)\n at finalCallback (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:257:39)\n at hooks.done.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:273:13)\n at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)\n at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)\n at onCompiled (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:271:21)\n at hooks.afterCompile.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:681:15)\n at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)\n at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)\n at compilation.seal.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:678:31)\n at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)\n at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)\n at hooks.optimizeAssets.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compilation.js:1423:35)\n at AsyncSeriesHook.eval [as callAsync]
(eval at create (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)\n at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)\n cause:\n { Error: Optimizations failure.\n 1660 modules\n \n ERROR in ./x-pack/legacy/plugins/dashboard_mode/public/dashboard_viewer.js\n Module not found: Error: Can't resolve 'plugins/kibana/local_application_service' in '/usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/public'\n \n at FsOptimizer.failedStatsToError (/usr/share/kibana/src/optimize/base_optimizer.js:436:26)\n at compiler.run (/usr/share/kibana/src/optimize/fs_optimizer.js:43:26)\n at finalCallback (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:257:39)\n at hooks.done.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:273:13)\n at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)\n at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)\n at onCompiled (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:271:21)\n at hooks.afterCompile.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:681:15)\n at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)\n at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)\n at compilation.seal.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:678:31)\n at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)\n at AsyncSeriesHook.lazyCompileHook (/usr/share/kib
ana/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)\n at hooks.optimizeAssets.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compilation.js:1423:35)\n at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)\n at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)\n data:\n { errors: [Array],\n warnings: [],\n version: '4.41.5',\n hash: 'a43bf197984c335f4355',\n time: 160392,\n builtAt: 1593425672528,\n publicPath: '__REPLACE_WITH_PUBLIC_PATH__',\n outputPath: '/usr/share/kibana/optimize/bundles',\n assetsByChunkName: [Object],\n assets: [Array],\n filteredAssets: 0,\n entrypoints: [Object],\n namedChunkGroups: [Object],\n chunks: [Array],\n modules: [Array],\n filteredModules: 0,\n logging: [Object],\n children: [Array] },\n isBoom: true,\n isServer: true,\n output: { statusCode: 500, payload: [Object], headers: {} },\n reformat: [Function],\n typeof: [Function: internal] },\n isOperational: true,\n data:\n { errors:\n [ './x-pack/legacy/plugins/dashboard_mode/public/dashboard_viewer.js\\nModule not found: Error: Can\\'t resolve \\'plugins/kibana/local_application_service\\' in \\'/usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/public\\'\\nresolve \\'plugins/kibana/local_application_service\\' in \\'/usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/public\\'\\n Parsed request is a module\\n using description file: /usr/share/kibana/x-pack/package.json (relative path: ./legacy/plugins/dashboard_mode/public)\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n resolve as module\\n /usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/public/webpackShims doesn\\'t exist or is not a directory\\n /usr/share
/kibana/x-pack/legacy/plugins/dashboard_mode/webpackShims doesn\\'t exist or is not a directory\\n /usr/share/kibana/x-pack/legacy/plugins/webpackShims doesn\\'t exist or is not a directory\\n /usr/share/kibana/x-pack/legacy/webpackShims doesn\\'t exist or is not a directory\\n /usr/share/kibana/x-pack/webpackShims doesn\\'t exist or is not a directory\\n /usr/share/webpackShims doesn\\'t exist or is not a directory\\n /usr/webpackShims doesn\\'t exist or is not a directory\\n /webpackShims doesn\\'t exist or is not a directory\\n looking for modules in /usr/share/kibana/webpackShims\\n using description file: /usr/share/kibana/package.json (relative path: ./webpackShims)\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n using description file: /usr/share/kibana/package.json (relative path: ./webpackShims/plugins/kibana/local_application_service)\\n no extension\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service doesn\\'t exist\\n .js\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service.js doesn\\'t exist\\n .ts\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service.ts doesn\\'t exist\\n .tsx\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service.tsx doesn\\'t exist\\n .json\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service.json doesn\\'t exist\\n as directory\\n /usr/share/kibana
/webpackShims/plugins/kibana/local_application_service doesn\\'t exist\\n looking for modules in /usr/share/kibana/webpackShims\\n using description file: /usr/share/kibana/package.json (relative path: ./webpackShims)\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n using description file: /usr/share/kibana/package.json (relative path: ./webpackShims/plugins/kibana/local_application_service)\\n no extension\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service doesn\\'t exist\\n .js\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service.js doesn\\'t exist\\n .ts\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service.ts doesn\\'t exist\\n .tsx\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service.tsx doesn\\'t exist\\n .json\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service.json doesn\\'t exist\\n as directory\\n /usr/share/kibana/webpackShims/plugins/kibana/local_application_service doesn\\'t exist\\n /usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/public/node_modules doesn\\'t exist or is not a directory\\n /usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/node_modules doesn\\'t exist or is not a directory\\n /usr/share/kibana/x-pack/legacy/plugins/node_modules doesn\\'t exist or is not a directory\\n /usr/share/kibana/x-pack/legacy/node_modules doesn\\'t exist or is not a directo
ry\\n /usr/share/node_modules doesn\\'t exist or is not a directory\\n /usr/node_modules doesn\\'t exist or is not a directory\\n /node_modules doesn\\'t exist or is not a directory\\n looking for modules in /usr/share/kibana/x-pack/node_modules\\n using description file: /usr/share/kibana/x-pack/package.json (relative path: ./node_modules)\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n looking for modules in /usr/share/kibana/node_modules\\n using description file: /usr/share/kibana/package.json (relative path: ./node_modules)\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n using description file: /usr/share/kibana/x-pack/package.json (relative path: ./node_modules/plugins/kibana/local_application_service)\\n no extension\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n using description file: /usr/share/kibana/package.json (relative path: ./node_modules/plugins/kibana/local_application_service)\\n no extension\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/x-pack/node_modules/plugins/kibana/local_application_service doesn\\'t exist\\n .js\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service doesn\\'t exist\\n .js\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/x-pack/node_modules/plugins/kibana/local_application_service.js doesn\\'t exist\\n .ts\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service.js doesn\\'t exist\\n .ts\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/s
hare/kibana/x-pack/node_modules/plugins/kibana/local_application_service.ts doesn\\'t exist\\n .tsx\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service.ts doesn\\'t exist\\n .tsx\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/x-pack/node_modules/plugins/kibana/local_application_service.tsx doesn\\'t exist\\n .json\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service.tsx doesn\\'t exist\\n .json\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/x-pack/node_modules/plugins/kibana/local_application_service.json doesn\\'t exist\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service.json doesn\\'t exist\\n as directory\\n /usr/share/kibana/x-pack/node_modules/plugins/kibana/local_application_service doesn\\'t exist\\n as directory\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service doesn\\'t exist\\n looking for modules in /usr/share/kibana/node_modules\\n using description file: /usr/share/kibana/package.json (relative path: ./node_modules)\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n using description file: /usr/share/kibana/package.json (relative path: ./node_modules/plugins/kibana/local_application_service)\\n no extension\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service doesn\\'t exist\\n .js\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/no
de_modules/plugins/kibana/local_application_service.js doesn\\'t exist\\n .ts\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service.ts doesn\\'t exist\\n .tsx\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service.tsx doesn\\'t exist\\n .json\\n Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service.json doesn\\'t exist\\n as directory\\n /usr/share/kibana/node_modules/plugins/kibana/local_application_service doesn\\'t exist\\n[/usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/public/webpackShims]\\n[/usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/webpackShims]\\n[/usr/share/kibana/x-pack/legacy/plugins/webpackShims]\\n[/usr/share/kibana/x-pack/legacy/webpackShims]\\n[/usr/share/kibana/x-pack/webpackShims]\\n[/usr/share/webpackShims]\\n[/usr/webpackShims]\\n[/webpackShims]\\n[/usr/share/kibana/webpackShims/plugins/kibana/local_application_service]\\n[/usr/share/kibana/webpackShims/plugins/kibana/local_application_service.js]\\n[/usr/share/kibana/webpackShims/plugins/kibana/local_application_service.ts]\\n[/usr/share/kibana/webpackShims/plugins/kibana/local_application_service.tsx]\\n[/usr/share/kibana/webpackShims/plugins/kibana/local_application_service.json]\\n[/usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/public/node_modules]\\n[/usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/node_modules]\\n[/usr/share/kibana/x-pack/legacy/plugins/node_modules]\\n[/usr/share/kibana/x-pack/legacy/node_modules]\\n[/usr/share/node_modules]\\n[/usr/node_modules]\\n[/node_modules]\\n[/usr/share/kibana/x-pack/node_modules/plugins/kibana/local_application_service]\\n[/usr/share/kibana/node_modules/plugins/kibana/
local_application_service]\\n[/usr/share/kibana/x-pack/node_modules/plugins/kibana/local_application_service.js]\\n[/usr/share/kibana/node_modules/plugins/kibana/local_application_service.js]\\n[/usr/share/kibana/x-pack/node_modules/plugins/kibana/local_application_service.ts]\\n[/usr/share/kibana/node_modules/plugins/kibana/local_application_service.ts]\\n[/usr/share/kibana/x-pack/node_modules/plugins/kibana/local_application_service.tsx]\\n[/usr/share/kibana/node_modules/plugins/kibana/local_application_service.tsx]\\n[/usr/share/kibana/x-pack/node_modules/plugins/kibana/local_application_service.json]\\n[/usr/share/kibana/node_modules/plugins/kibana/local_application_service.json]\\n # ./x-pack/legacy/plugins/dashboard_mode/public/dashboard_viewer.js 37:33-84\\n # ./optimize/bundles/dashboardViewer.entry.js' ],\n warnings: [],\n version: '4.41.5',\n hash: 'a43bf197984c335f4355',\n time: 160392,\n builtAt: 1593425672528,\n publicPath: '__REPLACE_WITH_PUBLIC_PATH__',\n outputPath: '/usr/share/kibana/optimize/bundles',\n assetsByChunkName:\n { commons: [Array],\n dark_theme: [Array],\n dashboardViewer: [Array],\n light_theme: [Array],\n maps: [Array] },\n assets:\n [ [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object] ],\n filteredAssets: 0,\n entrypoints:\n { dashboardViewer: [Object],\n maps: [Object],\n light_theme: [Object],\n dark_theme: [Object] },\n namedChunkGroups:\n { dashboardViewer: [Object],\n maps: [Object],\n light_theme: [Object],\n dark_theme: [Object] },\n chunks:\n [ [Object],\n [Object],\n
[Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object] ],\n modules:\n [ [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n ... 1560 more
items ],\n filteredModules: 0,\n logging: { 'webpack.buildChunkGraph.visitModules': [Object] },\n children:\n [ [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object],\n [Object] ] },\n isBoom: true,\n isServer: true,\n output:\n { statusCode: 500,\n payload:\n { statusCode: 500,\n error: 'Internal Server Error',\n message: 'An internal server error occurred' },\n headers: {} },\n reformat: [Function],\n typeof: [Function: internal] }"}
{"type":"log","#timestamp":"2020-06-29T10:14:33Z","tags":["info","plugins-system"],"pid":6,"message":"Stopping all plugins."}
...
{"type":"log","#timestamp":"2020-06-29T10:14:33Z","tags":["info","plugins","licensing"],"pid":6,"message":"Stopping plugin"}
{"type":"log","#timestamp":"2020-06-29T10:14:33Z","tags":["info","plugins","taskManager"],"pid":6,"message":"Stopping plugin"}
ERROR in ./x-pack/legacy/plugins/dashboard_mode/public/dashboard_viewer.js
Module not found: Error: Can't resolve 'plugins/kibana/local_application_service' in '/usr/share/kibana/x-pack/legacy/plugins/dashboard_mode/public'
files in kibana pod
pwd: /usr/share/kibana/x-pack/plugins
ls:
bash-4.2$ ls
actions case data_enhanced features infra lists observability searchprofiler telemetry_collection_xpack watcher
advanced_ui_actions cloud drilldowns file_upload ingest_manager logstash oss_telemetry security transform
alerting code embeddable_enhanced graph ingest_pipelines maps painless_lab siem translations
alerting_builtins console_extensions encrypted_saved_objects grokdebugger lens maps_legacy_licensing remote_clusters snapshot_restore triggers_actions_ui
apm cross_cluster_replication endpoint index_lifecycle_management license_management ml reporting spaces upgrade_assistant
canvas dashboard_enhanced event_log index_management licensing monitoring rollup task_manager uptime
error is due to
env:
- name: ELASTICSEARCH_HOSTS
value: 'http://es-node1:9200 http://es-node2:9200'
Try leaving only one of the es nodes and it will be ok. For instance:
env:
- name: ELASTICSEARCH_HOSTS
value: 'http://es-node1:9200'
For more info on the proper syntax and its challenges - https://discuss.elastic.co/t/syntax-to-specify-multiple-hosts-using-elasticsearch-hosts-env/221306/8

Podspec does not validate without error

I'm trying to create private pod.
What I've done:
* Create and push repo at correct branch
* Create podspec
Now I'm struggling with podspec validation.
BKit.podspec
Pod::Spec.new do |s|
s.name = 'BKit'
s.version = '0.1.0'
s.summary = 'This is for myown usage kit'
s.homepage = 'https://wdowikowski.pl'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Błażej Wdowikowski' => 'blazej#wdowikowski.pl' }
s.source = { :git => 'https://url.to.repo', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/the_dudi'
s.ios.deployment_target = '8.0'
s.source_files = 'BKit/Classes/**/*'
s.frameworks = 'UIKit'
s.dependency 'Cheetah'
s.dependency 'Decodable'
end
After calling pod repo push BKit BKit.podspec --verbose I get
//Building log
** BUILD SUCCEEDED **
-> BKit (0.1.0)
+ WARN | xcodebuild: Cheetah/Cheetah/Bezier.swift:44:36: warning: '++' is deprecated: it will be removed in Swift 3
+ WARN | xcodebuild: Cheetah/Cheetah/Bezier.swift:44:9: warning: C-style for statement is deprecated and will be removed in a future version of Swift
+ WARN | xcodebuild: Cheetah/Cheetah/Cheetah.swift:290:16: warning: '++' is deprecated: it will be removed in Swift 3
+ WARN | xcodebuild: Cheetah/Cheetah/Cheetah.swift:295:28: warning: '--' is deprecated: it will be removed in Swift 3
+ WARN | xcodebuild: Cheetah/Cheetah/CheetahManager.swift:35:16: warning: '++' is deprecated: it will be removed in Swift 3
+ WARN | xcodebuild: Cheetah/Cheetah/CheetahManager.swift:46:65: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' instead
[!] The `BKit.podspec` specification does not validate.
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:130:in `block in validate_podspec_files'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:119:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:119:in `validate_podspec_files'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:64:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
I don't know what I'm doing wrong and I'm not sure at what I should look at.
I'm using Cocoapods 1.0.1
It looks like you left in a placeholder for the repo URL.
If you pod spec lint --verbose you can see a more detailed error message for why your spec fails, such as fatal: unable to access 'https://url.to.repo/': Could not resolve host: url.to.repo. Hope that helps.

Unquoting in Nested Macros in Racket

Context
The language is #lang web-server/insta and this code will be generated inside a quasiquoted argument passed to response/xexpr
The Call
-> (define home 'home-page)
-> (make-navigation home "home-page")
Current Output
Note the ` backquote before ((href , (embed/url ...
'(p ((id "home-page")) (a `((href ,(embed/url home-page))) "home-page"))
Desired Output
Note that the ` is gone.
'(p ((id "home-page")) (a ((href ,(embed/url home-page))) "home-page"))
Current Code
(define (make-navigation uri label)
(define (make-id uri)
`((id ,(symbol->string uri))))
(define-syntax-rule (embed uri)
``((href ,(embed/url ,uri))))
`(p ,(make-id uri)
(a ,(embed uri)
,label)))
Problem Locus
The issue is probably with embed.
#lang racket
(define (make-navigation uri label)
(define (make-id uri)
`((id ,(symbol->string uri))))
(define-syntax-rule (embed uri)
'((href ,(embed/url uri))))
`(p ,(make-id uri)
(a ,(embed uri)
,label)))
(define home 'home-page)
(make-navigation home "home-page")
Output:
'(p ((id "home-page")) (a ((href ,(embed/url uri))) "home-page"))
UPDATE
(define (make-navigation uri label)
(define (make-id uri)
`((id ,(symbol->string uri))))
(define-syntax-rule (embed uri)
`((href ,(list 'unquote (list 'embed/url uri)))))
`(p ,(make-id uri)
(a ,(embed uri)
,label)))
(define home 'home-page)
(make-navigation home "home-page")
Output:
'(p ((id "home-page")) (a ((href ,(embed/url home-page))) "home-page"))

No implementation of method: :as-file of protocol: #'clojure.java.io/Coercions found for class: clojure.lang.PersistentVector

Getting a java.lang.IllegalArgumentException: No implementation of method: :as-file of protocol: #'clojure.java.io/Coercions found for class: clojure.lang.PersistentVector
when i run lein test or lein repl from terminal on MAC OS X. Though lein repl works well in eclipse (with counterclockwise plugin)
My Project file is:
(defproject cmp "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[lib-noir "0.5.0"]
[compojure "1.1.5"]
[ring-server "0.2.7"]
[clabango "0.5"]
[korma "0.3.0-RC5"]
[clj-json "0.5.3"]
[mysql/mysql-connector-java "5.1.6"]
[com.taoensso/timbre "1.5.2"]
[com.taoensso/tower "1.5.1"]
[com.postspectacular/rotor "0.1.0"]
[markdown-clj "0.9.19"]
[clj-pdf "1.11.1"]
[dk.ative/docjure "1.6.0"]
[com.cemerick/friend "0.1.5"]
[ring-basic-authentication "1.0.2"]
[org.clojure/data.csv "0.1.2"]
[clojure-csv/clojure-csv "2.0.1"]
[clj-time "0.6.0"]
[log4j "1.2.15"
:exclusions
[javax.mail/mail
javax.jms/jms
com.sun.jdmk/jmxtools
com.sun.jmx/jmxri]]]
:plugins [[lein-ring "0.8.3"]]
:ring {:handler cmp.handler/war-handler
:init cmp.handler/init
:destroy cmp.handler/destroy }
:profiles {
:production {
:ring {:open-browser? false
:stacktraces? false
:auto-reload? false}}
:dev {:dependencies [[ring-mock "0.1.3"]
[ring/ring-devel "1.1.8"]]}}
:java-source-paths [["src/cmp/java"]]
:min-lein-version "2.0.0")
The entry under :java-source-paths in your project.clj is a nested vector. It should be a plain vector of strings. Try replacing
:java-source-paths [["src/cmp/java"]]
with:
:java-source-paths ["src/cmp/java"]

delete a facebook feed post using fb_graph gem

I am using fb_graph rails gem for posting a message to my user's Facebook feed.
I have requested the following permissions:
:scope => 'email, publish_actions, offline_access, publish_stream'
I am able to post to the user's feed. But I am unable to destroy it.
When I execute the following in the Rails Console you can see the errors:
me = FbGraph::User.me( user.access_token )
#facebookpost = me.feed!( :message => "sample feed message", :description => 'sample message')
post = me.feed.find(#facebookpost.identifier).first
post.destroy # this generates the following error
FbGraph::InvalidRequest: OAuthException :: (#100) Invalid parameter
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/fb_graph-2.4.12/lib/fb_graph/exception.rb:47:in `block in handle_httpclient_error'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/fb_graph-2.4.12/lib/fb_graph/exception.rb:44:in `each'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/fb_graph-2.4.12/lib/fb_graph/exception.rb:44:in `handle_httpclient_error'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/fb_graph-2.4.12/lib/fb_graph/node.rb:146:in `handle_response'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/fb_graph-2.4.12/lib/fb_graph/node.rb:63:in `delete'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/fb_graph-2.4.12/lib/fb_graph/node.rb:43:in `destroy'
from (irb):67
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.1.3/lib/rails/commands/console.rb:45:in `start'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.1.3/lib/rails/commands/console.rb:8:in `start'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.1.3/lib/rails/commands.rb:40:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
1.9.2-p318 :068 > post.destroy(user.access_token)
TypeError: can't convert Symbol into String
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/fb_graph-2.4.12/lib/fb_graph/node.rb:93:in `delete'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/fb_graph-2.4.12/lib/fb_graph/node.rb:93:in `build_endpoint'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/fb_graph-2.4.12/lib/fb_graph/node.rb:61:in `delete'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/fb_graph-2.4.12/lib/fb_graph/node.rb:43:in `destroy'
from (irb):68
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.1.3/lib/rails/commands/console.rb:45:in `start'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.1.3/lib/rails/commands/console.rb:8:in `start'
from /home/invinc/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.1.3/lib/rails/commands.rb:40:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Did I miss any permissions? What can I do to resolve this problem?
You can delete posts with
FbGraph::Post.new(fb_post_id).destroy(access_token: "access_token")
Not the best API though...
The v2.4 requires that you combine the fb_post_id with the client id.
FbGraph2::Post.new("#{client_id}_#{fb_post_id}", access_token: "access_token").destroy