<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Eric Rodriguez on Medium]]></title>
        <description><![CDATA[Stories by Eric Rodriguez on Medium]]></description>
        <link>https://medium.com/@eric.rodriguez?source=rss-eb9373536e5d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rB8_k4ethHf4w_dM8mUX7w.jpeg</url>
            <title>Stories by Eric Rodriguez on Medium</title>
            <link>https://medium.com/@eric.rodriguez?source=rss-eb9373536e5d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:06:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eric.rodriguez/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[macOS 10.14— psycopg2 error: command ‘gcc’ failed with exit status 1]]></title>
            <link>https://medium.com/@eric.rodriguez/macos-10-14-psycopg2-error-command-gcc-failed-with-exit-status-1-a8d2f108dd55?source=rss-eb9373536e5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8d2f108dd55</guid>
            <category><![CDATA[gcc]]></category>
            <category><![CDATA[error]]></category>
            <category><![CDATA[pip]]></category>
            <category><![CDATA[psycopg2]]></category>
            <category><![CDATA[lssl]]></category>
            <dc:creator><![CDATA[Eric Rodriguez]]></dc:creator>
            <pubDate>Tue, 20 Aug 2019 22:42:43 GMT</pubDate>
            <atom:updated>2019-08-20T22:42:43.647Z</atom:updated>
            <content:encoded><![CDATA[<p>While trying to update my pip packages, to get the latest psycopg2 version for my python3 projects, I encountered the following error:</p><pre>ld: library not found for -lssl<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>error: command &#39;gcc&#39; failed with exit status 1</pre><p>This only happens on my computer that is running macOS 10.14 Mojave. The following command fixes this error.</p><pre>sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8d2f108dd55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rundeck PAM Authentication]]></title>
            <link>https://medium.com/@eric.rodriguez/rundeck-pam-authentication-773b7b9b3ad9?source=rss-eb9373536e5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/773b7b9b3ad9</guid>
            <category><![CDATA[rundeck]]></category>
            <category><![CDATA[jaa]]></category>
            <category><![CDATA[failed]]></category>
            <category><![CDATA[pams]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Eric Rodriguez]]></dc:creator>
            <pubDate>Fri, 13 Jul 2018 23:48:25 GMT</pubDate>
            <atom:updated>2018-07-13T23:48:25.599Z</atom:updated>
            <content:encoded><![CDATA[<p>Some roadblocks and errors I encounted while setting up PAM authentication after giving up on getting JumpCloud LDAP integration configured.</p><h4>Could not initialize class</h4><pre>Jul 13, 2018 11:02:12:WARN:oejj.JAASLoginService:qtp2065951873-82: <br>javax.security.auth.login.LoginException: java.lang.NoClassDefFoundError: Could not initialize class org.jvnet.libpam.impl.PAMLibrary$pam_conv|?at org.jvnet.libpam.PAM.&lt;init&gt;(PAM.java:73)|?at org.rundeck.jaas.pam.AbstractPamLoginModule.authenticate(AbstractPamLoginModule.java:85)|?at org.rundeck.jaas.AbstractSharedLoginModule.login(AbstractSharedLogin... </pre><p><strong>Solution</strong></p><pre>sudo apt install libpam4j-java</pre><pre>sudo ln -s /lib/x86_64-linux-gnu/libpam.so.0 /lib/x86_64-linux-gnu/libpam.so</pre><h4><strong>pam_authenticate failed</strong></h4><pre>Jul 13, 2018 11:32:22 PM org.rundeck.jaas.pam.AbstractPamLoginModule debug<br>INFO: pam_authenticate failed : Authentication failure<br>org.jvnet.libpam.PAMException: pam_authenticate failed : Authentication failure<br> at org.jvnet.libpam.PAM.check(PAM.java:106)<br> at org.jvnet.libpam.PAM.authenticate(PAM.java:124)<br> at org.rundeck.jaas.pam.AbstractPamLoginModule.authenticate(AbstractPamLoginModule.java:85)<br> at org.rundeck.jaas.AbstractSharedLoginModule.login(AbstractSharedLoginModule.java:78)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br> at java.lang.reflect.Method.invoke(Method.java:498)</pre><p><strong>Solution</strong></p><pre>setfacl -m “u:rundeck:r — “ /etc/shadowmore </pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=773b7b9b3ad9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Failed to get current version of TFS root: TF30063: You are not authorized to access]]></title>
            <link>https://medium.com/@eric.rodriguez/failed-to-get-current-version-of-tfs-root-tf30063-you-are-not-authorized-to-access-58c01bcce30a?source=rss-eb9373536e5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/58c01bcce30a</guid>
            <category><![CDATA[authorized]]></category>
            <category><![CDATA[teamcity]]></category>
            <category><![CDATA[tf30063]]></category>
            <category><![CDATA[defaultcollection]]></category>
            <dc:creator><![CDATA[Eric Rodriguez]]></dc:creator>
            <pubDate>Fri, 13 Jul 2018 19:00:07 GMT</pubDate>
            <atom:updated>2018-07-13T19:00:07.032Z</atom:updated>
            <content:encoded><![CDATA[<p>Version: <a href="https://www.jetbrains.com/teamcity/?fromServer">TeamCity Professional</a> 2018.1 (build 58245)</p><p>Spent a couple of hours trying to figure this TeamCity and VSTS (TFS) issue.</p><pre>Failed for the root &#39;&quot;TFS - Stage Platform&quot; {instance id=131, parent internal id=34, parent id=AbsenceTracker_TfsDev11, description: &quot;tfs: <a href="https://youraccount/">https://*youraccount</a>namehere*.visualstudio.com/DefaultCollection/ $/*your VCS root here*&quot;}: Failed to get current version of TFS root: TF30063: You are not authorized to access https://<a href="https://youraccount/">*youraccount</a>namehere*.visualstudio.com/DefaultCollection/.</pre><p><strong>TeamCity Stack Trace</strong></p><pre>jetbrains.buildServer.vcs.VcsRootVcsException: Failed to get current version of TFS root: TF30063: You are not authorized to access https://<a href="https://youraccount/">*youraccount</a>namehere*.visualstudio.com/DefaultCollection/. <br>at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.createRootException(VcsChangesStatesCollector.java:23)<br>at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.getCurrentState(VcsChangesStatesCollector.java:51)<br>at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.lambda$null....</pre><p><strong>Solution</strong></p><p>In VSTS we were using Alternate Authentication Credentials for the TeamCity VCS Root Username and Password.</p><p>We had to switch to using Personal Access Tokens in order to get this working after rounds of Googling the error and trying common, and seemingly now outdated, solutions.</p><p>Once you create a Personal Access Token under your VSTS user, go back to TeamCity VCS Root Settings and adjust the <em>Username to be blank</em>, and use the <em>Access Token as the password</em>. Upon Save or Test Connection, your issue should now be fixed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ur9ZeipDMQAYSEHy5dzpdw.png" /></figure><p>For information on how to setup a Personal Access Token visit: <a href="https://docs.microsoft.com/en-us/vsts/organizations/accounts/use-personal-access-tokens-to-authenticate?view=vsts">https://docs.microsoft.com/en-us/vsts/organizations/accounts/use-personal-access-tokens-to-authenticate?view=vsts</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58c01bcce30a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Logstash and AWS S3 ELB Access Logs]]></title>
            <link>https://medium.com/@eric.rodriguez/logstash-and-aws-s3-elb-access-logs-c4342869acff?source=rss-eb9373536e5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4342869acff</guid>
            <category><![CDATA[elb]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[access-log]]></category>
            <category><![CDATA[elk]]></category>
            <category><![CDATA[logstash]]></category>
            <dc:creator><![CDATA[Eric Rodriguez]]></dc:creator>
            <pubDate>Wed, 19 Jul 2017 02:19:50 GMT</pubDate>
            <atom:updated>2017-07-19T02:19:50.514Z</atom:updated>
            <content:encoded><![CDATA[<p>My goal was to create an ELK Stack (Logstash, Elasticsearch, Kibana) to parse AWS ELB access logs from AWS S3. Coming up with a configuration file in logstash to correctly retrieve, transform and load took hours of tinkering and research. I hope I can save you some time, and if you have any questions please feel free to ask in comments.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f39d70443f362f22bab2548cad7f8b84/href">https://medium.com/media/f39d70443f362f22bab2548cad7f8b84/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4342869acff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The OCSP server suggests trying again later.]]></title>
            <link>https://medium.com/@eric.rodriguez/the-ocsp-server-suggests-trying-again-later-23c0b853ac03?source=rss-eb9373536e5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/23c0b853ac03</guid>
            <category><![CDATA[lets-encrypt]]></category>
            <category><![CDATA[ocsp]]></category>
            <category><![CDATA[later]]></category>
            <category><![CDATA[error]]></category>
            <category><![CDATA[cpanel]]></category>
            <dc:creator><![CDATA[Eric Rodriguez]]></dc:creator>
            <pubDate>Wed, 19 Jul 2017 02:12:40 GMT</pubDate>
            <atom:updated>2017-07-19T02:12:40.989Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>The OCSP server suggests trying again later. Error code: SEC_ERROR_OCSP_TRY_SERVER_LATER</blockquote><p>I host my sites using CPanel and WHM hosted in AWS Cloud. I’m an avid supporter of Lets Encrypt (https://letsencrypt.org/) as their mission to spread easy and accessible encryption throughout the web is a cause I believe in. The FleetSSL CPanel plugin (https://letsencrypt-for-cpanel.com/) is a natural fit for CPanel/WHM server administrators to make HTTPS sites easy to set up.</p><p>I’ve been converting my wordpress sites to use HTTPS (https://wordpress.org/plugins/really-simple-ssl/) and everything was fine until I tried pulling up the site in Firefox which showed this error.</p><blockquote>“Secure Connection Failed</blockquote><blockquote>An error occurred during a connection to thewebsite.com. The OCSP server suggests trying again later. (Error code: sec_error_ocsp_try_server_later)</blockquote><blockquote>The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.<br>Please contact the website owners to inform them of this problem.”</blockquote><p>Adding the following entry to the “Pre VirtualHost Include” Apache configuration in my WHM control panel resolved the issue.</p><p>SSLStaplingFakeTryLater off</p><p>The “Pre VirtualHost Include” configuration can be found at WHM Home » Service Configuration » Apache Configuration » Include Editor</p><p>After adding the entry, restart apache web server</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23c0b853ac03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating RunDeck and LDAP/ActiveDirectory for Authentication]]></title>
            <link>https://medium.com/@eric.rodriguez/integrating-rundeck-and-ldap-activedirectory-for-authentication-2203e5ce06fa?source=rss-eb9373536e5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2203e5ce06fa</guid>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[jaas-activedirectory]]></category>
            <category><![CDATA[rundeck]]></category>
            <category><![CDATA[ldaploginmodule]]></category>
            <category><![CDATA[ldap]]></category>
            <dc:creator><![CDATA[Eric Rodriguez]]></dc:creator>
            <pubDate>Wed, 19 Jul 2017 02:06:54 GMT</pubDate>
            <atom:updated>2017-07-19T02:06:54.815Z</atom:updated>
            <content:encoded><![CDATA[<p>RunDeck is a great for job automating and scheduling job workflows in Linux evironments. Out of the box it supports local authentication however for any organization that has more than a handful of employees it is easier to use an existing LDAP or ActiveDirectory (AD) if that is something your organization already has in place. The RunDeck documentation can be dense to follow and covers a variety of different authentication methods. Below are the steps I found to work for basic ActiveDirectory authentication. Our networks are finely separated so these steps are for LDAP and not LDAPS (ssl).</p><h3>Errors Encountered</h3><p>Some of the various errors I encountered while trying to get AD authentication working and following other guides found on the internet. The steps outlined in this guide helped me finally resolve these errors.</p><blockquote>2017–03–07 22:22:11.788:WARN:cdrjj.JettyCachingLdapLoginModule:qtp880282638–17:<br>javax.naming.CommunicationException: server.ad.example.com:389 [Root exception is java.net.UnknownHostException: server.ad.example.com]</blockquote><blockquote>2017–03–07 22:22:11.788:WARN:cdrjj.JettyCachingLdapLoginModule:qtp880282638–17:<br>javax.naming.CommunicationException: server.ad.example.com:389 [Root exception is java.net.UnknownHostException: server.ad.example.com]</blockquote><blockquote>HTTP ERROR 403 Problem accessing / Reason: !roleEnvironment</blockquote><h3>Environment</h3><ul><li>Server 2016 Active Directory</li><li>Amazon Linux AMI release 2016.09</li><li>Rundeck 2.7.2–1</li></ul><h3>Add an AD group for “rundeckusers”</h3><p>Create a security group in your AD directory called rundeckusers. Add the appropriate users into this group before proceeding.</p><h3>Create jaas-activedirectory.conf file</h3><p>touch /etc/rundeck/jaas-activedirectory.conf<br>chown rundeck:rundeck /etc/rundeck/jaas-activedirectory.conf</p><p>Edit the jaas-activedirectory.conf</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f4cb13a38760bdf7a84e46064e9c64f8/href">https://medium.com/media/f4cb13a38760bdf7a84e46064e9c64f8/href</a></iframe><h3>Edit /etc/rundeck/profile</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d11bd876830ccf7b0a9b3d3753ba7eb1/href">https://medium.com/media/d11bd876830ccf7b0a9b3d3753ba7eb1/href</a></iframe><h3>Create and Edit /etc/rundeck/rundeckusers.aclpolicy</h3><p>In the ACL policy below, the group field should be the Active Directory user group <strong>rundeckusers</strong>. All users in this AD group will have admin access in rundeck.</p><p>touch /etc/rundeck/rundeckusers.aclpolicy<br>chown rundeck:rundeck /etc/rundeck/rundeckusers.aclpolicy</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f9b840e2e2a61ccb76674e913fb9821/href">https://medium.com/media/2f9b840e2e2a61ccb76674e913fb9821/href</a></iframe><h3>Edit /var/lib/rundeck/exp/webapp/WEB-INF/web.xml</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1655e076b13deb57962f768441782202/href">https://medium.com/media/1655e076b13deb57962f768441782202/href</a></iframe><h3>Restart services</h3><p>service rundeckd restart</p><p>Check the service log for any errors when you try to authenticate at the RunDeck login page.</p><p>tail -n 300 /var/log/rundeck/service.log</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2203e5ce06fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Schlage SmartCode: Handing/Orienting The Lock]]></title>
            <link>https://medium.com/@eric.rodriguez/schlage-smartcode-handing-orienting-the-lock-8fb740140b42?source=rss-eb9373536e5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fb740140b42</guid>
            <category><![CDATA[click]]></category>
            <category><![CDATA[smart-code]]></category>
            <category><![CDATA[locks]]></category>
            <category><![CDATA[grind]]></category>
            <category><![CDATA[schlage]]></category>
            <dc:creator><![CDATA[Eric Rodriguez]]></dc:creator>
            <pubDate>Wed, 19 Jul 2017 01:44:22 GMT</pubDate>
            <atom:updated>2017-07-19T01:44:42.097Z</atom:updated>
            <content:encoded><![CDATA[<p>I have installed SmartCode locks in my own home twice with the lock being on the right hand side of the door. Today I ran into issues trying to install this lock on the left side of the door. After hours of frustration this fix below was the solution that saved the day. There was absolutely no mention of this in the directions and only found these steps after some thorough research on the web.</p><p>If your Schlage SmartCode won’t lock and is making a clicking, snapping, grinding noise when trying to lock do the below steps to auto-adjust locks directionality so it has the right gearing and direction.</p><ol><li>Remove the battery pack.</li><li>Keep the door open.</li><li>Hold down the “Lock” button on the exterior keypad and at the same time, insert the battery pack into the interior assembly.</li><li>Keep holding down the lock button until you hear two beeps, which will take approximately 30 seconds. During that time, the Smartcode mechanism will automatically drive in and out several times to determine proper handing.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fb740140b42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft.Web.Deployment : An existing connection was forcibly closed by the remote host.]]></title>
            <link>https://medium.com/@eric.rodriguez/microsoft-web-deployment-an-existing-connection-was-forcibly-closed-by-the-remote-host-fe365980af77?source=rss-eb9373536e5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe365980af77</guid>
            <category><![CDATA[msdeploy]]></category>
            <category><![CDATA[teamcity]]></category>
            <category><![CDATA[forcibly]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[unexpected]]></category>
            <dc:creator><![CDATA[Eric Rodriguez]]></dc:creator>
            <pubDate>Wed, 19 Jul 2017 01:39:58 GMT</pubDate>
            <atom:updated>2017-07-19T01:39:58.233Z</atom:updated>
            <content:encoded><![CDATA[<p>Microsoft.Web.Deployment.DeploymentAgentUnavailableException: <br>Could not complete the request to remote agent URL ‘<a href="https://xxxx:8172/msdeploy.axd?site=websitename&#39;">https://XXXX:8172/msdeploy.axd?site=websitename&#39;</a>. <br>The underlying connection was closed: An unexpected error occured on a send.<br>Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.</p><p>Recently I ran across an issue where TeamCity which was calling MS WebDeploy in the backend started throwing an error similar to the above error message. After a while of troubleshooting I figured out this was due to another change to the webservers I made a month earlier where I disabled TLS 1.0 using a software called IIS Crypto.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*8f50MKW7b8XEKDE9MmPp0w.png" /></figure><p>The issue actually lies with the client doing the deploying, in my case the TeamCity server, and the default .net SSL settings it use. As a default .Net uses a setting called “useStrongCrypto” that allows the server to use TLS 1.1 and higher.</p><p>To enable the server to use TLS 1.1 and higher (strongcrypto) you need to edit the following registry settings:</p><p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SchUseStrongCrypto = 00000001<br>HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\SchUseStrongCrypto = 00000001</p><p>I store this registry fix in a file that I can run on other servers. You can copy paste these lines into a .reg file and run it which accomplishes the same as tracing down the entries via regedit and editing manually. Restart the server after applying registry fixes.</p><p>Windows Registry Editor Version 5.00<br> <br>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]<br>“SchUseStrongCrypto”=dword:00000001<br> <br>[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]<br>“SchUseStrongCrypto”=dword:00000001</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe365980af77" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>