i cant change my primary installation to opt/mqm/ - ibm-mq

root#SPTS-Linux01:/opt/mqm/bin# ./setmqinst -i -p /opt/mqm/
AMQ6294E: Failed to create symbolic link with the name
'/usr/lib/libmqmzf.so'. Error Number: 2
1 of 32 tasks have been rolled back.
2 of 32 tasks have been rolled back.
3 of 32 tasks have been rolled back.
4 of 32 tasks have been rolled back.
5 of 32 tasks have been rolled back.
6 of 32 tasks have been rolled back.
7 of 32 tasks have been rolled back.``
8 of 32 tasks have been rolled back.
9 of 32 tasks have been rolled back.
10 of 32 tasks have been rolled back.
11 of 32 tasks have been rolled back.
12 of 32 tasks have been rolled back.
13 of 32 tasks have been rolled back.
14 of 32 tasks have been rolled back.
15 of 32 tasks have been rolled back.
16 of 32 tasks have been rolled back.
17 of 32 tasks have been rolled back.
18 of 32 tasks have been rolled back.
19 of 32 tasks have been rolled back.
20 of 32 tasks have been rolled back.
21 of 32 tasks have been rolled back.
22 of 32 tasks have been rolled back.
23 of 32 tasks have been rolled back.
24 of 32 tasks have been rolled back.
25 of 32 tasks have been rolled back.
26 of 32 tasks have been rolled back.
27 of 32 tasks have been rolled back.
28 of 32 tasks have been rolled back.
29 of 32 tasks have been rolled back.
30 of 32 tasks have been rolled back.
31 of 32 tasks have been rolled back.
32 of 32 tasks have been rolled back.
AMQ8577E: Failed to set 'Installation1' (/opt/mqm) as the primary installation.
AMQ8580E: Failed to unset 'Installation1' (/opt/mqm) as the primary
installation.
root#SPTS-Linux01:/opt/mqm/bin#
this is the errors
i have been trying for days i i always get stuck hereas a result i cant create QMGRS.
please if possible contact me i would really appreciate it.

If your primary installation is MQ v7.0.1 then you cannot change it to something else. As it says here, if you have MQ v7.0.1 installed then it must be the primary installation. The only way to change it is to un-install MQ v7.0.1. The setmqinst command can only be used against MQ v7.1 or higher installations.

root#SPTS-Linux01:/opt/mqm/bin# cd /usr/
root#SPTS-Linux01:/usr# ls
bin config games include lib local sbin share src
root#SPTS-Linux01:/usr# mkdir
root#SPTS-Linux01:/usr# mkdir lib64
root#SPTS-Linux01:/usr# ls
bin config games include lib lib64 local sbin share src
root#SPTS-Linux01:/usr# cd /opt/mqm/bin/
root#SPTS-Linux01:/opt/mqm/bin# ./setmqinst -i -p /opt/mqm
143 of 143 tasks have been completed successfully.
'Installation1' (/opt/mqm) set as the primary installation.

Related

After deleting Gradle's build cache and building, some tasks are still marked as FROM-CACHE

I start off by deleting Gradle's build cache
$ rm -rf $GRADLE_HOME/caches/build-cache-*
I manually confirm this directory is gone. I also clean to ensure nothing from incremental build will interfere
$ ./gradlew clean
I then run a build w/ build-cache enabled:
$ ./gradlew --build-cache --scan app:assembleDebug
...
238 actionable tasks: 172 executed, 49 from cache, 17 up-to-date
Checking the generated report I see that some tasks are still marked as FROM-CACHE. How is this happening?
FWIW I'm using Gradle 5.6.3. I also don't use a remote build cache.
UPDATE: after clearing build cache, here's what's left in the cache dir:
$ pwd
/Users/jasonatwood/.gradle/caches
$ ls -al
total 24
drwx------ 11 jasonatwood staff 352 Dec 13 18:11 .
drwxr-xr-x 9 jasonatwood staff 288 Oct 15 17:24 ..
drwxr-xr-x 14 jasonatwood staff 448 Oct 29 16:07 5.4.1
drwxr-xr-x 15 jasonatwood staff 480 Nov 26 18:25 5.6.3
drwxr-xr-x 35 jasonatwood staff 1120 Dec 11 14:14 jars-3
drwxr-xr-x 5 jasonatwood staff 160 Oct 15 17:44 journal-1
drwxr-xr-x 7 jasonatwood staff 224 Oct 15 17:50 modules-2
drwxr-xr-x 5 jasonatwood staff 160 Oct 15 17:50 transforms-2
-rw-r--r-- 1 jasonatwood staff 39 Oct 15 17:27 transforms-2.lock
-rw------- 1 jasonatwood staff 28 Oct 22 16:34 user-id.txt
-rw-r--r-- 1 jasonatwood staff 17 Dec 13 18:00 user-id.txt.lock
If I understand correctly, I don't need to delete any of these.
The local task cache in the .gradle directory within the root project might interfere.
In order to disable the local/global caching altogether, use gradle.properties:
org.gradle.caching=false
If you remove the local build cache and don't use a remove cache, Gradle should indeed not be able to fetch anything cached on the next build. However, I don't think you actually removed anything.
The GRADLE_HOME environment variable, if you have it, should points to an unpacked local Gradle distribution. It could be something like /Users/jasonatwood/gradle-6.0-all. It would be wrong to set it to a path that is not a Gradle distribution.
The Gradle build cache resides in /Users/jasonatwood/.gradle/caches/build-cache-1.
When you try to remove it with $ rm -rf $GRADLE_HOME/caches/build-cache-*, you are using GRADLE_HOME as if it is pointing to the root of your home folder (/Users/jasonatwood), which it most likely isn't.
So instead, use this for removing it: $ rm -rf ~/.gradle/caches/build-cache-*
Or, at the very least, verify that the cache folder has indeed been removed.
If I run a --scan and look at the FROM-CACHE tasks in the generated HTML report.
I then look at the build cache keys for those FROM-CACHE tasks. I then go find those keys on my local machine. I see they are generated at the same time as the rest of the build. So I'm guessing that Gradle is using build cache within a build and not just across builds.
Sometimes there is a need to invalidate cache every time you restart the IDEA. This may be due to shared indexes reuse. What I did Settings --> Tools --> Shared Indexes -> Download Automatically and it resolved all the pain.
Earlier the setting was Don't download use Local.

Flatpak error pulling runtime org.freedesktop.Platform

I'm on Ubuntu 16.04LTS, and I'm trying to install MonoDevelop through the Flatpak package.
I am almost done, only thing missing is the runtime. When I run the following command I get an error:
flatpak run com.xamarin.MonoDevelop
error: runtime/org.freedesktop.Platform/x86_64/1.4 not installed
Then I try to install it:
flatpak install gnome org.freedesktop.Platform//1.4
Installing: org.freedesktop.Platform/x86_64/1.4 from gnome
Receiving delta parts: 0/9 6.1 kB/s 98.3 kB/120.1 MB 5 hours 25 minutes
Receiving delta parts: 0/9 25.1 kB/s 426.0 kB/120.1 MB 1 hours 19 minut
Receiving delta parts: 0/9 34.9 kB/s 627.5 kB/120.1 MB 57 minutes 7 sec
Receiving delta parts: 0/9 34.8 kB/s 660.3 kB/120.1 MB 57 minutes 17 se
Receiving delta parts: 0/9 48.6 kB/s 971.6 kB/120.1 MB 40 minutes 52 se
Receiving delta parts: 0/9 84.5 kB/s 1.8 MB/120.1 MB 23 minutes 20 seconds remaining
error: While pulling runtime/org.freedesktop.Platform/x86_64/1.4 from remote gnome:
Error resolving 'sdk.gnome.org': Temporary failure in name resolution
Sometimes it doesn't show "Receiving delta parts", it goes straight to the error.
Maybe the repository for this runtime is broken, or the server! Can someone point me in the right direction?
The issue was in the file /etc/resolv.conf which had the nameserver 127.0.0.1, I changed it to 8.8.8.8 so I could carry on with the runtime installation.
You can also try to run: sudo service network-manager restart
I think that will reset the 127.0.0.1 to 127.0.1.1, otherwise change it manually as I said to 8.8.8.8 and it'll work.
Put "sudo" before all commands
Exemples:
$ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo sudo flatpak install
or
$ flathub org.gtk.Gtk3theme.deepin
Try running as root.
Sometimes the problem can be there.

upgraded to swift 2, and cocoapods -.38.2 now getting build error Command /bin/sh failed with exit code 23

How can I diagnose this error Command /bin/sh failed with exit code 23
sent 130971 bytes received 42 bytes 262026.00 bytes/sec
total size is 130816 speedup is 1.00
rsync -auv "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" "/Users/jinteki/Library/Developer/Xcode/DerivedData/MyApp-xyz/Build/Products/Debug-iphonesimulator/MyApp.app/Frameworks"
building file list ... rsync: link_stat "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9]
Command /bin/sh failed with exit code 23
I had this same issues and I cleaned the Build Folder via:
Product -> hold ALT pressed -> Clean Build Folder
Removing derived data works too
Xcode -> Preferences -> Locations -> tap on the derived data arrow -> Drag the derived data folder to trash
I had the same and nothing helped. I deleted the Pods folder from my project and ran pod install again. It worked…

Teamcity Configuration Settings

I need to know the teamcity settings which prevents the re-trigger/trigger of outdated builds/jobs if the new builds are successful.
I am facing a issue where teamcity jobs can be re triggered even if the next builds are successful.And If the trigger event is fired before, then it must stop teamcity to run that job if the latest build is successful.
So I have to 2 jobs in TC for 1 branch -- Build-Precheck and the other is Build-compile
So I could see that Build-compile is just picking the latest available successful build from Build-Precheck and then queing up the next which may be the outdated build.
Build-Precheck is just taking 2 min to finish the builds , it quickly triggers the latest builds , I guess following the principal First In First Out
Build-Precheck
06 Oct 14 14:33 - 14:35 (2m:01s) –7.1.4345
06 Oct 14 14:41 - 14:43 (2m:16s)- 7.1.4346
06 Oct 14 14:45 - 14:47 (2m:10s)- 7.1.4347
Build-compile
06 Oct 14 14:35 - 15:00 -7.1.0.4345
06 Oct 14 14:52 - 15:20 (28m:02s)- 7.1.4347
06 Oct 14 16:08 - 16:33 (24m:52s)- 7.1.4346
Is there any fix for this that TC runs incremental builds rather than outdated ones
Sounds like you are looking for Configuring Build Trigger.
AFAIK, there isn't a way to cancel queued builds if a given build passes. However, you can adjust the Build Triggers that queue those builds. Most likely, you'll need to set the Quiet Period on your VCS Build Trigger to longer than it takes for your build.
For example, if your full build takes 5 minutes, you should set the Quiet Period to 7. This way additional builds wont queue while a build is running.

Stumped by Git/Xcode and GitHub for Mac

I have a Mac Pro and a Macbook Pro both working on the same project stored at GitHub. When I try to sync the Mac Pro using GitHub for Mac I see that I've somehow now got two branches, Head and Master. When I try to merge them, I get this error:
Failed to lookup reference. Failed to update loose reference.
-entry not found in hash table.
When I try to sync from the MacBook Pro I get this error:
Uncommitted changes. Please commit your changes before syncing.
There is a DELETED Icon/r line in the underlying box. I have no recollection of deleting an icon. When I try to commit this "change" I get this error:
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
Changes not staged for commit:
(use "git add/rm ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working
directory)
deleted: "Icon\r"
no changes added to commit (use "git add" and/or "git commit -a")
If I try to sync using Xcode I get this error:
The working copy "Graphing-Calculator" failed to commit files. error:
pathspec 'Icon\r' did not match any file(s) known to git.
I'm really stumped. Clearly I've done something wrong, don't know what that was, and don't know how to fix it. Guidance appreciated.
Update
When I try to roll back two commits on the MBP I get this error:
(
0 GitHub 0x0000000100096531 -[GHApplication presentError:] + 445
1 libdispatch.dylib 0x00007fff9277d90a _dispatch_call_block_and_release + 18
2 libdispatch.dylib 0x00007fff9277f77a _dispatch_main_queue_callback_4CF + 308
3 CoreFoundation 0x00007fff90564c0c __CFRunLoopRun + 1724
4 CoreFoundation 0x00007fff90564216 CFRunLoopRunSpecific + 230
5 HIToolbox 0x00007fff90f5c4ff RunCurrentEventLoopInMode + 277
6 HIToolbox 0x00007fff90f63c21 ReceiveNextEventCommon + 355
7 HIToolbox 0x00007fff90f63aae BlockUntilNextEventMatchingListInMode + 62
8 AppKit 0x00007fff913dc191 _DPSNextEvent + 659
9 AppKit 0x00007fff913dba95 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
10 AppKit 0x00007fff913d83d6 -[NSApplication run] + 463
11 AppKit 0x00007fff9165652a NSApplicationMain + 867
12 GitHub 0x00000001000014e4 start + 52
13 ??? 0x0000000000000002 0x0 + 2
)
Update
I'm pretty sure I've condensed it down to this: Git thinks the file Icon\r was deleted and wants to commit this change, but cannot find the file Icon\r. If I try to discard the change, Git gives me the error, "Icon\r did not match any file(s) known to git." How to proceed?
Thanks for the pointer to the ^M^M .gitignore solution.
To clear these entries from your working repo, without going through the process of creating a new repository, just do 'git commit -a'. This should delete the "/Icon\r" entries out of your git index.

Resources