jhipster kubernetes command fails at the beginning with "No monolith found in ..." - kubernetes

I just ran through the JHipster demo "Learn JHipster In 15 Minutes" and I'm now trying to deploy the result into kubernetes using these instructions. It's failing on the 2nd question.
$ jhipster kubernetes
INFO! Using JHipster version installed globally
⎈ Welcome to the JHipster Kubernetes Generator ⎈
Files will be generated in folder: /Users/johnaron/git/JHipDemo/k8s
✔ Docker is installed
? Which *type* of application would you like to deploy? Monolithic application
? Enter the root directory where your applications are located (../) ../
>> No monolith found in /Users/johnaron/git/JHipDemo/
This is the listing of the parent directory
$ ll ..
total 4384
drwxr-xr-x 40 johnaron staff 1280 Jun 22 16:08 .
drwxr-xr-x# 99 johnaron staff 3168 Jun 22 16:13 ..
-rw-r--r-- 1 johnaron staff 853 Jun 15 18:26 .browserslistrc
-rw-r--r-- 1 johnaron staff 478 Jun 15 18:26 .editorconfig
-rw-r--r-- 1 johnaron staff 92 Jun 15 18:27 .eslintignore
-rw-r--r-- 1 johnaron staff 3041 Jun 15 18:26 .eslintrc.json
drwxr-xr-x 12 johnaron staff 384 Jun 22 16:13 .git
-rw-r--r-- 1 johnaron staff 3413 Jun 15 18:26 .gitattributes
-rw-r--r-- 1 johnaron staff 2075 Jun 15 18:26 .gitignore
drwxr-xr-x 7 johnaron staff 224 Jun 15 18:41 .gradle
-rw-r--r-- 1 johnaron staff 53 Jun 15 18:26 .huskyrc
drwxr-xr-x 5 johnaron staff 160 Jun 15 18:31 .jhipster
-rw-r--r-- 1 johnaron staff 113 Jun 15 18:26 .lintstagedrc.js
-rw-r--r-- 1 johnaron staff 69 Jun 15 18:26 .prettierignore
-rw-r--r-- 1 johnaron staff 251 Jun 15 18:26 .prettierrc
-rw-r--r-- 1 johnaron staff 143 Jun 15 18:26 .yo-rc-global.json
-rw-r--r-- 1 johnaron staff 1468 Jun 22 16:12 .yo-rc.json
-rw-r--r-- 1 johnaron staff 7404 Jun 15 18:26 README.md
-rw-r--r-- 1 johnaron staff 3210 Jun 15 18:26 angular.json
-rw-r--r--# 1 johnaron staff 418 Jun 15 18:29 blog.jdl
drwxr-xr-x 8 johnaron staff 256 Jun 15 18:44 build
-rw-r--r-- 1 johnaron staff 10204 Jun 15 18:26 build.gradle
-rw-r--r-- 1 johnaron staff 793 Jun 15 18:26 checkstyle.xml
drwxr-xr-x 9 johnaron staff 288 Jun 15 18:26 gradle
-rw-r--r-- 1 johnaron staff 2424 Jun 15 18:26 gradle.properties
-rwxr-xr-x 1 johnaron staff 5960 Jun 15 18:26 gradlew
-rw-r--r-- 1 johnaron staff 2842 Jun 15 18:26 gradlew.bat
-rw-r--r-- 1 johnaron staff 1448 Jun 15 18:26 jest.conf.js
drwxr-xr-x 2 johnaron staff 64 Jun 22 16:08 k8s
-rw-r--r-- 1 johnaron staff 530 Jun 15 18:26 ngsw-config.json
drwxr-xr-x 1228 johnaron staff 39296 Jun 15 18:33 node_modules
-rw-r--r-- 1 johnaron staff 2108706 Jun 15 18:33 package-lock.json
-rw-r--r-- 1 johnaron staff 6672 Jun 15 18:33 package.json
-rw-r--r-- 1 johnaron staff 694 Jun 15 18:26 settings.gradle
-rw-r--r-- 1 johnaron staff 1538 Jun 15 18:26 sonar-project.properties
drwxr-xr-x 4 johnaron staff 128 Jun 15 18:26 src
-rw-r--r-- 1 johnaron staff 151 Jun 15 18:26 tsconfig.app.json
-rw-r--r-- 1 johnaron staff 729 Jun 15 18:26 tsconfig.json
-rw-r--r-- 1 johnaron staff 285 Jun 15 18:26 tsconfig.spec.json
drwxr-xr-x 5 johnaron staff 160 Jun 15 18:26 webpack
What is jhipster looking for?
John
Now I tried moving the k8s dir to the same level as the JHipDemo, but it was no help.
johnaron#JOHNARON-M-841U:k8s$ jhipster kubernetes
INFO! Using JHipster version installed globally
⎈ Welcome to the JHipster Kubernetes Generator ⎈
Files will be generated in folder: /Users/johnaron/git/k8s
✔ Docker is installed
? Which *type* of application would you like to deploy? Monolithic application
? Enter the root directory where your applications are located (../) ../JHipDemo
>> No monolith found in /Users/johnaron/git/JHipDemo

I believe you need to create it at the same level as your monolith. For example:
JHipDemo
k8s
Can you try this?

Related

Linux - RHEL 8.3 - Unable to start PostgreSQL 13 service - Cannot open shared object library

Trying to setup PostgreSQL 13 on RHEL 8.3 Linux Server. Attempting to start the service after following the installation steps outlined in the PostgreSQL documentation including the initdb I get the below output when running journalctl -xe after trying systemctl start postgresql-13:
-- Subject: Unit postgresql-13.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit postgresql-13.service has begun starting up.
Mar 19 23:53:11 host.local postmaster[485386]: 2021-03-19 23:53:11.209 AWST [485386] FATAL: could not load library "/usr/pgsql-13/lib/timescaledb.so": /usr/pgsql-13/lib/timescaledb.so: cannot open shared object file: Operation not permitted
Mar 19 23:53:11 host.local postmaster[485386]: 2021-03-19 23:53:11.209 AWST [485386] LOG: database system is shut down
Mar 19 23:53:11 host.local systemd[1]: postgresql-13.service: Main process exited, code=exited, status=1/FAILURE
Mar 19 23:53:11 host.local systemd[1]: postgresql-13.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- The unit postgresql-13.service has entered the 'failed' state with result 'exit-code'.
Mar 19 23:53:11 host.local systemd[1]: Failed to start PostgreSQL 13 database server.
-- Subject: Unit postgresql-13.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit postgresql-13.service has failed.
--
-- The result is failed.
Digging around I thought okay, let's check my ldconfig conf files. But they correctly reference the libraries mentioned in the output. So I tried manually running ldconfig with -v to see the output.
[root#host ~]# ldconfig -n -v /usr/pgsql-13/lib
/usr/pgsql-13/lib:
libpqwalreceiver.so -> libpqwalreceiver.so
libpq.so.5 -> libpq.so.5.13
libpgtypes.so.3 -> libpgtypes.so.3.13
libecpg_compat.so.3 -> libecpg_compat.so.3.13
libecpg.so.6 -> libecpg.so.6.13
However, an ls -l /usr/pgsql-13/lib shows a much larger output of libraries, leaving me to wonder what am I missing? I have tried changing permissions within the directory but that made no change so reverted the permissions:
total 13784
-rwxr-xr-x 1 root root 20440 Feb 11 09:43 adminpack.so
-rwxr-xr-x 1 root root 36976 Feb 11 09:43 amcheck.so
-rwxr-xr-x 1 root root 7680 Feb 11 09:43 auth_delay.so
-rwxr-xr-x 1 root root 16256 Feb 11 09:43 auto_explain.so
-rwxr-xr-x 1 root root 11896 Feb 11 09:43 autoinc.so
drwxr-xr-x 2 root root 6 Feb 11 09:43 bitcode
-rwxr-xr-x 1 root root 29504 Feb 11 09:43 bloom.so
-rwxr-xr-x 1 root root 32672 Feb 11 09:43 btree_gin.so
-rwxr-xr-x 1 root root 92872 Feb 11 09:43 btree_gist.so
-rwxr-xr-x 1 root root 16128 Feb 11 09:43 citext.so
-rwxr-xr-x 1 root root 50568 Feb 11 09:43 cube.so
-rwxr-xr-x 1 root root 16088 Feb 11 09:43 cyrillic_and_mic.so
-rwxr-xr-x 1 root root 50224 Feb 11 09:43 dblink.so
-rwxr-xr-x 1 root root 11848 Feb 11 09:43 dict_int.so
-rwxr-xr-x 1 root root 497200 Feb 11 09:43 dict_snowball.so
-rwxr-xr-x 1 root root 11984 Feb 11 09:43 dict_xsyn.so
-rwxr-xr-x 1 root root 7696 Feb 11 09:43 earthdistance.so
-rwxr-xr-x 1 root root 11792 Feb 11 09:43 euc2004_sjis2004.so
-rwxr-xr-x 1 root root 7688 Feb 11 09:43 euc_cn_and_mic.so
-rwxr-xr-x 1 root root 15952 Feb 11 09:43 euc_jp_and_sjis.so
-rwxr-xr-x 1 root root 7704 Feb 11 09:43 euc_kr_and_mic.so
-rwxr-xr-x 1 root root 16512 Feb 11 09:43 euc_tw_and_big5.so
-rwxr-xr-x 1 root root 24736 Feb 11 09:43 file_fdw.so
-rwxr-xr-x 1 root root 28960 Feb 11 09:43 fuzzystrmatch.so
-rwxr-xr-x 1 root root 11680 Feb 11 09:43 hstore_plperl.so
-rwxr-xr-x 1 root root 67120 Feb 11 09:43 hstore.so
-rwxr-xr-x 1 root root 11888 Feb 11 09:43 insert_username.so
-rwxr-xr-x 1 root root 54640 Feb 11 09:43 _int.so
-rwxr-xr-x 1 root root 102720 Feb 11 09:43 isn.so
-rwxr-xr-x 1 root root 15808 Feb 11 09:43 jsonb_plperl.so
-rwxr-xr-x 1 root root 11864 Feb 11 09:43 latin2_and_win1250.so
-rwxr-xr-x 1 root root 11816 Feb 11 09:43 latin_and_mic.so
-rw-r--r-- 1 root root 727708 Feb 11 09:43 libecpg.a
-rw-r--r-- 1 root root 101788 Feb 11 09:43 libecpg_compat.a
lrwxrwxrwx 1 root root 22 Feb 11 09:43 libecpg_compat.so -> libecpg_compat.so.3.13
lrwxrwxrwx 1 root root 22 Feb 11 09:43 libecpg_compat.so.3 -> libecpg_compat.so.3.13
-rwxr-xr-x 1 root root 38320 Feb 11 09:43 libecpg_compat.so.3.13
lrwxrwxrwx 1 root root 15 Feb 11 09:43 libecpg.so -> libecpg.so.6.13
lrwxrwxrwx 1 root root 15 Feb 11 09:43 libecpg.so.6 -> libecpg.so.6.13
-rwxr-xr-x 1 root root 101288 Feb 11 09:43 libecpg.so.6.13
-rw-r--r-- 1 root root 1310988 Feb 11 09:43 libpgcommon.a
-rw-r--r-- 1 root root 1306378 Feb 11 09:43 libpgcommon_shlib.a
-rw-r--r-- 1 root root 624890 Feb 11 09:43 libpgfeutils.a
-rw-r--r-- 1 root root 702572 Feb 11 09:43 libpgport.a
-rw-r--r-- 1 root root 701762 Feb 11 09:43 libpgport_shlib.a
-rw-r--r-- 1 root root 458268 Feb 11 09:43 libpgtypes.a
lrwxrwxrwx 1 root root 18 Feb 11 09:43 libpgtypes.so -> libpgtypes.so.3.13
lrwxrwxrwx 1 root root 18 Feb 11 09:43 libpgtypes.so.3 -> libpgtypes.so.3.13
-rwxr-xr-x 1 root root 83704 Feb 11 09:43 libpgtypes.so.3.13
-rw-r--r-- 1 root root 1762742 Feb 11 09:43 libpq.a
lrwxrwxrwx 1 root root 13 Feb 11 09:43 libpq.so -> libpq.so.5.13
lrwxrwxrwx 1 root root 13 Feb 11 09:43 libpq.so.5 -> libpq.so.5.13
-rwxr-xr-x 1 root root 338992 Feb 11 09:43 libpq.so.5.13
-rwxr-xr-x 1 root root 25136 Feb 11 09:43 libpqwalreceiver.so
-rwxr-xr-x 1 root root 11832 Feb 11 09:43 lo.so
-rwxr-xr-x 1 root root 63000 Feb 11 09:43 ltree.so
-rwxr-xr-x 1 root root 11864 Feb 11 09:43 moddatetime.so
-rwxr-xr-x 1 root root 45928 Feb 11 09:43 pageinspect.so
-rwxr-xr-x 1 root root 11848 Feb 11 09:43 passwordcheck.so
-rwxr-xr-x 1 root root 11872 Feb 11 09:43 pg_buffercache.so
-rwxr-xr-x 1 root root 139552 Feb 11 09:43 pgcrypto.so
-rwxr-xr-x 1 root root 7720 Feb 11 09:43 pg_freespacemap.so
-rwxr-xr-x 1 root root 20592 Feb 11 09:43 pgoutput.so
-rwxr-xr-x 1 root root 29440 Feb 11 09:43 pg_prewarm.so
-rwxr-xr-x 1 root root 16144 Feb 11 09:43 pgrowlocks.so
-rwxr-xr-x 1 root root 45520 Feb 11 09:43 pg_stat_statements.so
-rwxr-xr-x 1 root root 29264 Feb 11 09:43 pgstattuple.so
-rwxr-xr-x 1 root root 54608 Feb 11 09:43 pg_trgm.so
-rwxr-xr-x 1 root root 20440 Feb 11 09:43 pg_visibility.so
-rwxr-xr-x 1 root root 25224 Feb 11 09:43 pgxml.so
drwxr-xr-x 4 root root 31 Mar 18 22:32 pgxs
drwxr-xr-x 2 root root 86 Mar 18 22:32 pkgconfig
-rwxr-xr-x 1 root root 200640 Feb 11 09:43 plpgsql.so
-rwxr-xr-x 1 root root 113888 Feb 11 09:43 postgres_fdw.so
-rwxr-xr-x 1 root root 20224 Feb 11 09:43 refint.so
-rwxr-xr-x 1 root root 38008 Feb 11 09:43 seg.so
-rwxr-xr-x 1 root root 71264 Feb 11 09:43 sepgsql.so
-rwxr-xr-x 1 root root 20528 Feb 11 09:43 sslinfo.so
-rwxr-xr-x 1 root root 24536 Feb 11 09:43 tablefunc.so
-rwxr-xr-x 1 root root 11872 Feb 11 09:43 tcn.so
-rwxr-xr-x 1 root root 16264 Feb 11 09:43 test_decoding.so
-rwxr-xr-x 1 root root 618784 Mar 19 09:12 timescaledb-2.1.0.so
-rwxrwxrwx 1 root root 52520 Mar 19 10:11 timescaledb.so
-rwxr-xr-x 1 root root 605640 Mar 19 09:12 timescaledb-tsl-2.1.0.so
-rwxr-xr-x 1 root root 12000 Feb 11 09:43 tsm_system_rows.so
-rwxr-xr-x 1 root root 12008 Feb 11 09:43 tsm_system_time.so
-rwxr-xr-x 1 root root 16160 Feb 11 09:43 unaccent.so
-rwxr-xr-x 1 root root 122400 Feb 11 09:43 utf8_and_big5.so
-rwxr-xr-x 1 root root 15912 Feb 11 09:43 utf8_and_cyrillic.so
-rwxr-xr-x 1 root root 212488 Feb 11 09:43 utf8_and_euc2004.so
-rwxr-xr-x 1 root root 85536 Feb 11 09:43 utf8_and_euc_cn.so
-rwxr-xr-x 1 root root 159264 Feb 11 09:43 utf8_and_euc_jp.so
-rwxr-xr-x 1 root root 110120 Feb 11 09:43 utf8_and_euc_kr.so
-rwxr-xr-x 1 root root 208424 Feb 11 09:43 utf8_and_euc_tw.so
-rwxr-xr-x 1 root root 269888 Feb 11 09:43 utf8_and_gb18030.so
-rwxr-xr-x 1 root root 155168 Feb 11 09:43 utf8_and_gbk.so
-rwxr-xr-x 1 root root 7720 Feb 11 09:43 utf8_and_iso8859_1.so
-rwxr-xr-x 1 root root 32336 Feb 11 09:43 utf8_and_iso8859.so
-rwxr-xr-x 1 root root 171552 Feb 11 09:43 utf8_and_johab.so
-rwxr-xr-x 1 root root 134664 Feb 11 09:43 utf8_and_sjis2004.so
-rwxr-xr-x 1 root root 89632 Feb 11 09:43 utf8_and_sjis.so
-rwxr-xr-x 1 root root 175648 Feb 11 09:43 utf8_and_uhc.so
-rwxr-xr-x 1 root root 36424 Feb 11 09:43 utf8_and_win.so
-rwxr-xr-x 1 root root 20752 Feb 11 09:43 uuid-ossp.so
I'm hoping for solutions, but would even appreciate just the next direction to take so that I may hopefully find the answer. Please note I've tried re-installing PostgreSQL and doing a new initdb etc to no success.

Why do I see different files in Visual Studio Code terminal and Linux terminal?

I noticed that a lot of commands were missing when using VSCode terminal. So I tried a ls -l / on both my distro's and VSCode's terminals.
Linux Mint Xfce Terminal:
livy#linux-mint:~$ ls -l /
total 2097252
drwxr-xr-x 2 root root 4096 Aug 13 15:13 bin
drwxr-xr-x 4 root root 4096 Aug 13 15:15 boot
drwxr-xr-x 2 root root 4096 Aug 13 15:06 cdrom
drwxr-xr-x 20 root root 4260 Aug 15 08:40 dev
drwxr-xr-x 147 root root 12288 Aug 13 16:46 etc
drwxr-xr-x 4 root root 4096 Aug 13 15:06 home
lrwxrwxrwx 1 root root 33 Aug 13 15:07 initrd.img -> boot/initrd.img-4.15.0-54-generic
lrwxrwxrwx 1 root root 33 Aug 13 15:04 initrd.img.old -> boot/initrd.img-4.15.0-54-generic
drwxr-xr-x 23 root root 4096 Aug 13 15:07 lib
drwxr-xr-x 2 root root 4096 Jul 29 19:15 lib64
drwx------ 2 root root 16384 Aug 13 14:59 lost+found
drwxr-xr-x 2 root root 4096 Jul 29 19:14 media
drwxr-xr-x 2 root root 4096 Jul 29 19:14 mnt
drwxr-xr-x 3 root root 4096 Aug 13 15:18 opt
dr-xr-xr-x 214 root root 0 Aug 15 08:40 proc
drwx------ 4 root root 4096 Aug 13 15:07 root
drwxr-xr-x 32 root root 940 Aug 15 08:41 run
drwxr-xr-x 2 root root 12288 Aug 13 15:14 sbin
drwxr-xr-x 2 root root 4096 Jul 29 19:14 srv
-rw------- 1 root root 2147483648 Aug 15 08:40 swapfile
dr-xr-xr-x 13 root root 0 Aug 15 09:31 sys
drwxrwxrwt 15 root root 4096 Aug 15 08:53 tmp
drwxr-xr-x 11 root root 4096 Jul 29 19:14 usr
drwxr-xr-x 11 root root 4096 Jul 29 19:50 var
lrwxrwxrwx 1 root root 30 Aug 13 15:07 vmlinuz -> boot/vmlinuz-4.15.0-54-generic
And here is the result from VSCode terminal:
livy#linux-mint:~$ ls -l /
total 2097204
drwxr-xr-x 6 nfsnobody nfsnobody 4096 Aug 13 16:00 app
lrwxrwxrwx 1 livy livy 7 Aug 15 09:13 bin -> usr/bin
drwxr-xr-x 2 livy livy 80 Aug 15 09:13 boot
drwxr-xr-x 2 nfsnobody nfsnobody 4096 Aug 13 15:06 cdrom
drwxr-xr-x 5 livy livy 340 Aug 15 09:13 dev
drwxr-xr-x 15 livy livy 860 Aug 15 09:13 etc
drwxr-xr-x 4 nfsnobody nfsnobody 4096 Aug 13 15:06 home
lrwxrwxrwx 1 livy livy 33 Aug 15 09:13 initrd.img -> boot/initrd.img-4.15.0-54-generic
lrwxrwxrwx 1 livy livy 33 Aug 15 09:13 initrd.img.old -> boot/initrd.img-4.15.0-54-generic
lrwxrwxrwx 1 livy livy 7 Aug 15 09:13 lib -> usr/lib
lrwxrwxrwx 1 livy livy 9 Aug 15 09:13 lib64 -> usr/lib64
drwx------ 2 nfsnobody nfsnobody 16384 Aug 13 14:59 lost+found
drwxr-xr-x 2 nfsnobody nfsnobody 4096 Jul 29 19:14 media
drwxr-xr-x 2 nfsnobody nfsnobody 4096 Jul 29 19:14 mnt
drwxr-xr-x 3 nfsnobody nfsnobody 4096 Aug 13 15:18 opt
dr-xr-xr-x 209 nfsnobody nfsnobody 0 Aug 15 09:13 proc
drwxr-xr-x 6 livy livy 160 Aug 15 09:13 run
lrwxrwxrwx 1 livy livy 8 Aug 15 09:13 sbin -> usr/sbin
drwxr-xr-x 2 nfsnobody nfsnobody 4096 Jul 29 19:14 srv
-rw------- 1 nfsnobody nfsnobody 2147483648 Aug 15 08:40 swapfile
drwxr-xr-x 7 livy livy 140 Aug 15 09:13 sys
drwxr-xr-x 4 livy livy 80 Aug 15 09:13 tmp
drwxr-xr-x 12 nfsnobody nfsnobody 4096 Aug 13 16:00 usr
drwxr-xr-x 7 livy livy 160 Aug 15 09:13 var
lrwxrwxrwx 1 livy livy 30 Aug 15 09:13 vmlinuz -> boot/vmlinuz-4.15.0-54-generic
From the file owners, permissions, and modification date... it looks like they are working on different file systems. VSCode's /bin even points to /usr/bin, while it is not the case in Xfce terminal. The strange thing is that I can still use VSCode's terminal to navigate my home directory (/home/livy) and make changes to files. It even sources the content of my ~/.bashrc file.
What I am missing here?
I was having this exact same issue and discovered that the cause was that VSCode was installed as a Flatpak package. Uninstall it (be it a snap or a Flatpak package) and install the .deb file distributed by Microsoft.

Kafka broker shut down even though the log dirs are present

When I saw this error message:
ERROR Shutdown broker because all log dirs in /tmp/kafka-logs have failed (kafka.log.LogManager)
The first thought is "well the /tmp directory probably got cleared out by the O/S (linux) - so I should update the kafka config to point to something permanent. However the directory is present and has not been wiped:
ll /tmp/kafka-logs/
total 20
drwxrwxr-x 2 ec2-user ec2-user 38 Apr 7 16:56 __consumer_offsets-0
drwxrwxr-x 2 ec2-user ec2-user 38 Apr 7 16:56 __consumer_offsets-7
drwxrwxr-x 2 ec2-user ec2-user 38 Apr 7 16:56 __consumer_offsets-42
..
drwxrwxr-x 2 ec2-user ec2-user 38 Apr 7 16:56 __consumer_offsets-32
drwxrwxr-x 2 ec2-user ec2-user 141 Apr 12 02:49 flights_raw-0
drwxrwxr-x 2 ec2-user ec2-user 178 Apr 12 08:25 air2008-0
drwxrwxr-x 2 ec2-user ec2-user 141 Apr 12 13:38 testtopic-0
-rw-rw-r-- 1 ec2-user ec2-user 1244 Apr 17 22:29 recovery-point-offset-checkpoint
-rw-rw-r-- 1 ec2-user ec2-user 4 Apr 17 22:29 log-start-offset-checkpoint
-rw-rw-r-- 1 ec2-user ec2-user 1248 Apr 17 22:30 replication-offset-checkpoint
So then what does this actually mean, why is it happening and what should be done to correct/avoid the error?
In related question best answer suggests to delete log dir both for Kafka /tmp/kafka-logs and Zookeper /tmp/zookeeper.
Probably it's because of Kafka issue which was resolved in August 2018.
Hope this will help.

bluemix-appid No such module"BluemixAppID'

I am setting up APP ID on IOS Swift Project.
Set up the Pods, and seeing BluemixAppID in the Pods.
Set up the URLS etc
Added the error and the framework search path below
POD File
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'PS_1' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'BluemixAppID'
target 'PS_1Tests' do
inherit! :search_paths
# Pods for testing
end
target 'PS_1UITests' do
inherit! :search_paths
# Pods for testing
end
end
Project Dir
drwxr-xr-x 4 kosalan staff 136 22 Jul 23:54 DerivedData
drwxr-xr-x 11 kosalan staff 374 23 Jul 00:08 PS_1
drwxr-xr-x 5 kosalan staff 170 23 Jul 00:03 PS_1.xcodeproj
drwxr-xr-x 3 kosalan staff 102 22 Jul 22:39 PS_1.xcworkspace
drwxr-xr-x 4 kosalan staff 136 28 May 13:13 PS_1Tests
drwxr-xr-x 4 kosalan staff 136 28 May 13:13 PS_1UITests
-rw-r--r--# 1 kosalan staff 415 22 Jul 23:32 Podfile
-rw-r--r-- 1 kosalan staff 422 22 Jul 23:33 Podfile.lock
drwxr-xr-x 11 kosalan staff 374 22 Jul 23:32 Pods
-rw-r--r-- 1 kosalan staff 7 28 May 13:19 README.md
Kosalans-MBP:PS_1 kosalan$ pwd
/Users/kosalan/Documents/Projects/PS_1/PS_1
Kosalans-MBP:PS_1 kosalan$
Kosalans-MBP:Pods kosalan$ ls -l
total 8
drwxr-xr-x 5 kosalan staff 170 22 Jul 22:43 BMSAnalyticsAPI
drwxr-xr-x 5 kosalan staff 170 22 Jul 22:43 BMSCore
drwxr-xr-x 5 kosalan staff 170 22 Jul 23:30 BluemixAppID
drwxr-xr-x 2 kosalan staff 68 22 Jul 23:32 Headers
drwxr-xr-x 2 kosalan staff 68 22 Jul 22:38 Local Podspecs
-rw-r--r-- 1 kosalan staff 422 22 Jul 23:33 Manifest.lock
drwxr-xr-x 4 kosalan staff 136 22 Jul 22:38 Pods.xcodeproj
drwxr-xr-x 8 kosalan staff 272 22 Jul 23:33 Target Support Files
Kosalans-MBP:Pods kosalan$
xcode screenshot - framework search paths
xcode screenshot - error along with full build settings
This is fixed by opening .xcworkspace in the proj dir vs the .xcodeproj.

Installing Mongodb "no section headers." Error

I am trying to install mongodb on Centos 6.6. I am following the steps here: https://www.liquidweb.com/kb/how-to-install-mongodb-on-centos-6/
I have added the following (where it states on the tutorial):
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
As you can see here:
However, when I try and install I get the following error
Where am I going wrong?
My file listing for /etc/yum.repos.d is;
4.0K drwxr-xr-x 2 root root 4.0K Jun 26 13:12 .
4.0K drwxr-xr-x 66 root root 4.0K Jun 24 14:19 ..
4.0K -rw-r--r-- 1 root root 2.0K Oct 23 2014 CentOS-Base.repo
4.0K -rw-r--r-- 1 root root 647 Oct 23 2014 CentOS-Debuginfo.repo
4.0K -rw-r--r-- 1 root root 289 Oct 23 2014 CentOS-fasttrack.repo
4.0K -rw-r--r-- 1 root root 630 Oct 23 2014 CentOS-Media.repo
8.0K -rw-r--r-- 1 root root 5.3K Oct 23 2014 CentOS-Vault.repo
4.0K -rw-r--r-- 1 root root 1.1K Jul 3 2015 city-fan.org.repo
4.0K -rw-r--r-- 1 root root 191 Jun 26 12:56 mongodb-org-3.2.repo
12K -rw------- 1 root root 12K Jun 26 12:53 .mongodb-org-3.2.repo.swp
4.0K -rw-r--r-- 1 root root 200 Jun 26 13:12 mongodb-org-3.4.repo
12K -rw------- 1 root root 12K Jun 26 12:55 .mongodb-org.repo.swp
12K -rw------- 1 root root 12K Jun 24 14:16 .mongodb.repo.swp
4.0K -rw-r--r-- 1 root root 472 Apr 26 2016 nodesource-el.repo
4.0K -rw-r--r-- 1 root root 219 Dec 18 2013 vz.repo
From your error message it would appear that at least one of your .repo files is corrupt.
The file mongodb-org-3.2.repo has an errant \n on line 2 But looking at your file listing it would appear you have several files, some of which are corrupted (hence the .swp files left behind)
You should do a full file listing with ls -lash /etc/yum.repos.d and delete all the files with 'mongo' in the name.
Then create a new file named mongodb.repo and add the following to it;
[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
Then run yum install mongodb-org
I think the param in [mongodb] is not enough and is a lack of header information. you should specify the version as well.
for example for MongoDB v2.0, il should look like:
[mongodb-org-2.0]
name=...ect
regards