No input file specified error

When going on some link you can get “No input file specified” error in your browser.

To resolve this error, check that in the file .htaccess there was no line:

Continue reading

RPC failed; curl 18 transfer closed with outstanding read data remaining

When I tried to clone a decently-huge git repository I got the error below. The most common issue is that the connection closes and the whole clone is cancelled.

After a lot of trial and errors and a lot of “remote end hung up unexpectedly” I have a way that works for me. Continue reading

How to copy directory with SCP

The Unix command scp (which stands for “secure copy protocol”) is a simple tool for uploading or downloading files (or directories) to/from a remote machine. The transfer is done on top of SSH, which is how it maintains its familiar options (like for specifying identities and credentials) and ensures a secure connection. It’s really helpful to be able to move around files between any machine that supports SSH.

When trying to copy directory like you usually copy a file with scp you may encounter the following scp error:
folder_name: not a regular file Continue reading

How to set custom background in MS Teams

Custom-background-microsoft-teams-before-callMS Teams desktop client has around ten predefined background images and you can upload your own and choose it for your next call.

You can set custom background in Teams client as follows: Continue reading

Reporting Services error 503: Error creating HTTP endpoint – Access is Denied

We had a case come in where they were seeing a blank page when they went to Report Manager for Reporting Services.  You may also see an HTTP 503 error.  This just means that the service had a problem and there was probably an exception that occurred under the hoods.

In this case, the issue was with SQL 2008 R2.  When looking at the Reporting Services Logs, we can see the following exception when the service starts.

rshost!rshost!1380!03/13/2015-14:52:11:: e ERROR: Failed to register url=http://+:80/ReportServer_RS2008R2/ for endpoint 2, error=5. <—5 = Access Denied
rshost!rshost!1380!03/13/2015-14:52:11:: w WARN: Endpoint 2 is enabled but no url is registered for vdir=/ReportServer_RS2008R2, pdir=C:\Program Files\Microsoft SQL Server\MSRS10_50.RS2008R2\Reporting Services\ReportServer.
servicecontroller!DefaultDomain!1a20!03/13/2015-14:52:11:: e ERROR: Error creating HTTP endpoint. System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at Microsoft.ReportingServices.HostingInterfaces.IRsUnmanagedCallback.CreateHttpEndpoint(RsAppDomainType application, String[] urlPrefixes, Int32 cPrefixes, String[] hosts, Int32 cHosts, Boolean wildCardPresent, String virtualDirectory, String filePath, Int32 authType, Int32 logonMethod, String authDomain, String authRealm, Boolean authPersist, Int32 extendedProtectionLevel, Int32 extendedProtectionScenario, Boolean enabled)
at Microsoft.ReportingServices.Library.ServiceAppDomainController.SetWebConfiguration(RunningApplication rsApplication, Boolean enabled, String folder)


You can find log files here:

In SQL Server Reporting Services 2016 or earlier: C:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\LogFiles

In SQL Server Reporting Services 2017: C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\LogFiles

This comes down to understanding URL Reservations and Reporting Services starting with RS 2008 and later.

About URL Reservations and Registration

What is happening here is that the Service Account was changed outside of Reporting Services Configuration Manager.  On my system, if we look, we see that the service is currently set to my RSService account.

thumbnail image 1 of blog post titled Reporting Services: Error creating HTTP endpoint - Access is Denied

However, if we look at the URL Reservations that are currently registered we will see that they are configured for the Network Service account.  You can see this by running the following command from an Admin Command Prompt.

thumbnail image 2 of blog post titled Reporting Services: Error creating HTTP endpoint - Access is Denied

The problem here is that the service account was changed within the Services area and not from within Reporting Services Configuration Manager.  As a result the URL Reservation permissions were not updated to the new service account.  So, when we try to use the reservation, we get an Access Denied because the RSService account doesn’t have permissions.  The Network Service Account does.

You could also encounter other issues by doing this.  For example, you would probably not have had the Encryption Key, so if you had Data Sources and what not present, you wouldn’t be able to use the encrypted content.

How to fix SSRS 503 error?

We can go back to the services area, and change the account back to what it was before.  If Network Services doesn’t work, you can use the netsh command above to see what account is actually listed and change it back to that account.

Once the account is back, you can then go into Reporting Services Configuration Manager and change the account on the Service Account Tab to the one you want.  This will also prompt you to make a backup of the Encryption key.

thumbnail image 3 of blog post titled Reporting Services: Error creating HTTP endpoint - Access is Denied

You will also see, when you do it this way, that it will remove the reservations and re-add them.

thumbnail image 4 of blog post titled Reporting Services: Error creating HTTP endpoint - Access is Denied

Running the netsh command, we can also see the correct service account is applied.

thumbnail image 5 of blog post titled Reporting Services: Error creating HTTP endpoint - Access is Denied

NOTE: Changing the service account from Network Service to a domain user account will add the RSWindowsNegotiate tab into the authentication types within the rsreportserver.config.  So, if you don’t have Kerberos configured, you may get prompted 3 times followed by a 401 error when you go to Report Manager.

Good luck!

SSH authentication refused bad ownership or modes for file

SSH keys authentication scheme

So you created SSH keypair, installed public key on the server you want to connect to but, probably, made this not as described in this article: How To Set Up SSH Keys and now the server refuses your key and in /var/log/secure we can see message like this:

Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys


Authentication refused: bad ownership or modes for directory /home/user/.ssh
Continue reading

FOP2 and HTTPS cannot connect

FOP2-one-moment-pleaseI recently converted my FreePBX from a HTTP to HTTPS instance. On the same instance, I have FOP2 running on there. Prior to the change, FOP2 login screen or the /fop2 user console would popup rather quickly. After HTTPS was added, I’ve noticed that the login screen doesn’t popup for a little bit. I see the timer counting up to about 8 before any login box pops up. So FOP2 with HTTPS does not work and you can see “Connecting to server, attempt number ” message Continue reading

Linux shell modes and Capistrano

This is possibly one of the most complicated support questions that can be asked, the only real answer is it depends.

It’s really a question of which kind of shell Capistrano is using, it’s a matrix of possibilities concerning loginnon-logininteractive, or non-interactive.

By default Capistrano always assigns a non-loginnon-interactive shell. Continue reading

Uptime Percentage Chart

Uptime percentage chart shows how much downtime is allowed per year, month, week and day to correspond to a certain SLA level. Availability is usually expressed as a percentage of uptime in a given year. Continue reading

How to limit the number of simultaneous calls in Asterisk PJSIP

In order to limit the number of simultaneous calls in Asterisk PJSIP, use the GROUP and GROUP_COUNT functions. Below is an example of Asterisk dialplan, where the quantity of simultaneous calls is limited to 1. Continue reading

Load more