[jira] [Commented] (DIRSERVER-2154) ApacheDS install fails on Mac OS X El Capitan due to SIP

2019-07-07 Thread Emmanuel Lecharny (JIRA)


[ 
https://issues.apache.org/jira/browse/DIRSERVER-2154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16879972#comment-16879972
 ] 

Emmanuel Lecharny commented on DIRSERVER-2154:
--

There is nothing wrong in installing the server in {{/usr/local/bin}}. What I'm 
currently facing is another issue : latest version of MacOSX reclaims that you 
get a signed package if you want it to be installable as a {{.dmg}}. I'm 
waiting for the certitficate generated by Apple (almost there).

> ApacheDS install fails on Mac OS X El Capitan due to SIP
> 
>
> Key: DIRSERVER-2154
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2154
> Project: Directory ApacheDS
>  Issue Type: Bug
>  Components: installer
>Affects Versions: 2.0.0-M19, 2.0.0-M20, 2.0.0-M21
> Environment: OS X El Capitan 10.11.5 (15F34)
>Reporter: Brad Curfman
>Priority: Major
>
> I've tried to install the 64 bit version of ApacheDS on El Capitan and the 
> installation always fails. I've tried builds M19, M20, and M21 and get the 
> same result for each. 
> When I get to the installation step in the installer, I get the following 
> warning message 
> "This package is incompatible with this version of OS X and may fail to 
> install."
> If I continue, the installation does fail. The Apple install log suggests 
> that the issue is due to the installer attempting to write to 
> /usr/bin/apacheds which is not writeable due to SIP.
> {noformat}
> Jun 13 10:55:21 macbookpro Installer[35094]: Package Authoring Warning: 
> Package will fail to install with System Integrity Protection feature enabled.
> Jun 13 10:55:21 macbookpro Installer[35094]: Package Authoring Error: Package 
> contains system content, and installation is expected to fail: Error 
> Domain=IFInstallErrorDomain Code=-5000 "This package is incompatible with 
> this version of OS X and may fail to install." 
> UserInfo={NSLocalizedRecoveryOptions=(
>   "Cancel Installation",
>   "Install Anyway"
>   ), NSLocalizedRecoverySuggestion=Installing this package may damage 
> your system, and the installation may fail. To stop the program and the 
> installation, click “Cancel Installation”., IFSystemPathsKey=(
>   "usr/bin/apacheds"
>   ), NSLocalizedDescription=This package is incompatible with this 
> version of OS X and may fail to install.}
> Jun 13 10:55:23 macbookpro installd[339]: PackageKit: - Begin install 
> -
> Jun 13 10:55:23 macbookpro shove[35103]: [source=file] failed 
> _RelinkFile(/var/folders/zz/zyxvpxvq6csfxvn_n0/C/PKInstallSandboxManager/D8AD5173-038A-453D-8F06-28DB6A549FAB.activeSandbox/Root/usr/bin/apacheds,
>  /usr/bin/apacheds): No such file or directory
> Jun 13 10:55:23 macbookpro shove[35103]: srcPath = 
> /var/folders/zz/zyxvpxvq6csfxvn_n0/C/PKInstallSandboxManager/D8AD5173-038A-453D-8F06-28DB6A549FAB.activeSandbox/Root/usr/bin/apacheds
>  NSFileOwnerAccountID=0 NSFileHFSTypeCode=0 NSFileSystemFileNumber=5657763 
> NSFileExtensionHidden=0 NSFileSystemNumber=16777220 NSFileSize=858 
> NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root 
> NSFileCreationDate=2015-12-18 14:30:47 + NSFilePosixPermissions=509 
> NSFileHFSCreatorCode=0 NSFileType=NSFileTypeRegular 
> NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1 
> NSFileModificationDate=2015-12-18 14:30:47 +
> Jun 13 10:55:23 macbookpro shove[35103]: dstPath = /usr/bin/apacheds does not 
> exist
> Jun 13 10:55:23 macbookpro shove[35103]: dstParentPath = /usr/bin 
> NSFileOwnerAccountID=0 NSFileSystemFileNumber=404726 NSFileExtensionHidden=0 
> NSFileSystemNumber=16777220 NSFileSize=35836 NSFileGroupOwnerAccountID=0 
> NSFileOwnerAccountName=root NSFileCreationDate=2015-10-17 23:47:11 + 
> NSFilePosixPermissions=493 NSFileType=NSFileTypeDirectory 
> NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1054 
> NSFileModificationDate=2016-05-19 13:59:37 +
> Jun 13 10:55:24 macbookpro installd[339]: PackageKit: Install Failed: Error 
> Domain=PKInstallErrorDomain Code=120 "An unexpected error occurred while 
> moving files to the final destination." 
> UserInfo={NSUnderlyingError=0x7ffc0fd15120 {Error Domain=NSPOSIXErrorDomain 
> Code=2 "No such file or directory"}, NSLocalizedDescription=An unexpected 
> error occurred while moving files to the final destination., arguments=(
>   "-f",
>   "-s",
>   
> "/var/folders/zz/zyxvpxvq6csfxvn_n0/C/PKInstallSandboxManager/D8AD5173-038A-453D-8F06-28DB6A549FAB.activeSandbox/Root",
>   "/"
>   )} {
>   NSLocalizedDescription = "An unexpected error occurred while moving 
> files to the final destination.";
>   NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"No 
> such file or directory\"";
>  

[jira] [Commented] (DIRAPI-337) ClosedSelectorException while searching through LDAP

2019-07-07 Thread Jan Zelmer (JIRA)


[ 
https://issues.apache.org/jira/browse/DIRAPI-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16879869#comment-16879869
 ] 

Jan Zelmer commented on DIRAPI-337:
---

Hi,

i am getting this error with the 2.0.0. M3 version, also. 

Which logs and information do you need? (If necessary I could set the log level 
of the LDAP server to debug)

Kind,
Jan

> ClosedSelectorException while searching through LDAP
> 
>
> Key: DIRAPI-337
> URL: https://issues.apache.org/jira/browse/DIRAPI-337
> Project: Directory Client API
>  Issue Type: Bug
>Affects Versions: 1.0.0
>Reporter: Dom Gibson
>Priority: Major
>
> Getting the below stack trace several times randomly while searching through 
> LDAP.
>  
> java.nio.channels.ClosedSelectorException: null
> at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) ~[na:1.8.0_171]
> at sun.nio.ch.SelectorImpl.select(Unknown Source) ~[na:1.8.0_171]
> at 
> org.apache.mina.transport.socket.nio.NioProcessor.select(NioProcessor.java:98)
>  ~[mina-core-2.0.16.jar!/:na]
> at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1075)
>  ~[mina-core-2.0.16.jar!/:na]
> at 
> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
>  [mina-core-2.0.16.jar!/:na]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
> [na:1.8.0_171]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
> [na:1.8.0_171]
> at java.lang.Thread.run(Unknown Source) [na:1.8.0_171]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



[jira] [Commented] (DIRSERVER-2154) ApacheDS install fails on Mac OS X El Capitan due to SIP

2019-07-07 Thread Twan van der Schoot (JIRA)


[ 
https://issues.apache.org/jira/browse/DIRSERVER-2154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16879833#comment-16879833
 ] 

Twan van der Schoot commented on DIRSERVER-2154:


As Ari Maniatis noted, what is wrong with `/usr/local/bin`?

Even though MacOS looks like *nix, Apple seems to be on a route to deviate from 
it significantly in the (near) future anyway. So applying *nix notions without 
any regard to MacOS peculiarities leaves MacOS users out in the cold. I'm 
afraid SIP on MacOS is part of reality now and here to stay. Please do 
repackage for '/usr/local/bin' instead of '/usr/bin'

To be honest, thinking about it this is something I also like to see for 
operational installations on Linux servers as a policy: anything not belonging 
to "core" linux distribution goes there! Much easier to manage security.

Oh, well, its open source. I'll have to burn my own time to get this done.

> ApacheDS install fails on Mac OS X El Capitan due to SIP
> 
>
> Key: DIRSERVER-2154
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2154
> Project: Directory ApacheDS
>  Issue Type: Bug
>  Components: installer
>Affects Versions: 2.0.0-M19, 2.0.0-M20, 2.0.0-M21
> Environment: OS X El Capitan 10.11.5 (15F34)
>Reporter: Brad Curfman
>Priority: Major
>
> I've tried to install the 64 bit version of ApacheDS on El Capitan and the 
> installation always fails. I've tried builds M19, M20, and M21 and get the 
> same result for each. 
> When I get to the installation step in the installer, I get the following 
> warning message 
> "This package is incompatible with this version of OS X and may fail to 
> install."
> If I continue, the installation does fail. The Apple install log suggests 
> that the issue is due to the installer attempting to write to 
> /usr/bin/apacheds which is not writeable due to SIP.
> {noformat}
> Jun 13 10:55:21 macbookpro Installer[35094]: Package Authoring Warning: 
> Package will fail to install with System Integrity Protection feature enabled.
> Jun 13 10:55:21 macbookpro Installer[35094]: Package Authoring Error: Package 
> contains system content, and installation is expected to fail: Error 
> Domain=IFInstallErrorDomain Code=-5000 "This package is incompatible with 
> this version of OS X and may fail to install." 
> UserInfo={NSLocalizedRecoveryOptions=(
>   "Cancel Installation",
>   "Install Anyway"
>   ), NSLocalizedRecoverySuggestion=Installing this package may damage 
> your system, and the installation may fail. To stop the program and the 
> installation, click “Cancel Installation”., IFSystemPathsKey=(
>   "usr/bin/apacheds"
>   ), NSLocalizedDescription=This package is incompatible with this 
> version of OS X and may fail to install.}
> Jun 13 10:55:23 macbookpro installd[339]: PackageKit: - Begin install 
> -
> Jun 13 10:55:23 macbookpro shove[35103]: [source=file] failed 
> _RelinkFile(/var/folders/zz/zyxvpxvq6csfxvn_n0/C/PKInstallSandboxManager/D8AD5173-038A-453D-8F06-28DB6A549FAB.activeSandbox/Root/usr/bin/apacheds,
>  /usr/bin/apacheds): No such file or directory
> Jun 13 10:55:23 macbookpro shove[35103]: srcPath = 
> /var/folders/zz/zyxvpxvq6csfxvn_n0/C/PKInstallSandboxManager/D8AD5173-038A-453D-8F06-28DB6A549FAB.activeSandbox/Root/usr/bin/apacheds
>  NSFileOwnerAccountID=0 NSFileHFSTypeCode=0 NSFileSystemFileNumber=5657763 
> NSFileExtensionHidden=0 NSFileSystemNumber=16777220 NSFileSize=858 
> NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root 
> NSFileCreationDate=2015-12-18 14:30:47 + NSFilePosixPermissions=509 
> NSFileHFSCreatorCode=0 NSFileType=NSFileTypeRegular 
> NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1 
> NSFileModificationDate=2015-12-18 14:30:47 +
> Jun 13 10:55:23 macbookpro shove[35103]: dstPath = /usr/bin/apacheds does not 
> exist
> Jun 13 10:55:23 macbookpro shove[35103]: dstParentPath = /usr/bin 
> NSFileOwnerAccountID=0 NSFileSystemFileNumber=404726 NSFileExtensionHidden=0 
> NSFileSystemNumber=16777220 NSFileSize=35836 NSFileGroupOwnerAccountID=0 
> NSFileOwnerAccountName=root NSFileCreationDate=2015-10-17 23:47:11 + 
> NSFilePosixPermissions=493 NSFileType=NSFileTypeDirectory 
> NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1054 
> NSFileModificationDate=2016-05-19 13:59:37 +
> Jun 13 10:55:24 macbookpro installd[339]: PackageKit: Install Failed: Error 
> Domain=PKInstallErrorDomain Code=120 "An unexpected error occurred while 
> moving files to the final destination." 
> UserInfo={NSUnderlyingError=0x7ffc0fd15120 {Error Domain=NSPOSIXErrorDomain 
> Code=2 "No such file or directory"}, NSLocalizedDescription=An unexpected 
> error occurred while moving files to the final destination., arguments=(
>