Error attempting to view files and logs for Bluemix app - ibm-cloud

I want to view the Files and Logs for my Bluemix application, but when I select this from the Overview page for my app, it just shows the message:
BXNUI0045E: Could not retrieve files or logs for the 'XXX' application using instance '0'. See the Troubleshooting topics in the IBM Bluemix Documentation to check service status, review troubleshooting information, or for information about getting help.
I looked at the Troubleshooting topics but found nothing helpful. What is this message trying to tell me, and how can I fix this problem so that I can see Files and Logs for my app?

If your application failed to start or crashed, the Bluemix UI can not be used to retrieve the files and logs. I recommend you use the command line tool.
If the application failed to start or crashed, you can get logs by:
cf logs <appname> --recent
If the application started and running properly, you can view the files (including any logs the server or application writes) by:
cf files <appname>
cf files <appname> <path>

Related

Deployment to Websphere (WAS) - application has status 'unknown' after start

I am currently trying to get an application running on a Websphere Application Server [1] (commonly shortened to 'WAS') Docker image [2].
I can connect to the websphere online console (wsadmin) and use it to create a new Enterprise application based on a .war file. I created an application, decided not to run it in distributed mode, but kept the other settings to their default values. The application has been created successfully, I can see it under Applications > Websphere Enterprise Applications.
-But it has the application status 'unknown', which does not change if I start or stop it (neither starting nor stopping generates an error message in the online console).
So without any feedback and as a complete newby to WAS, I have no idea how to further deploy this application.
How can I get an application status, start the application or get at least an error message to make some progress?
EDIT 1
The log directory /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1 contains (_only) the following log files:
logdata
(multiple logs in the form) {id like 1628494344657_368}_server1
tracedata
1628494344624_368-server1.lock
List item
(multiple logs in the form) TextLog_{YY}.{MM}.{DD}_{hh}.{mm}.{ss}_server1.log
hpelRepository.owner
logViewer.pos
native_stderr.log
native_stdout.log
server1.pid
startServer.log
(multiple logs in the form) verbosegc.{index starting at 001}.log
Since I haven't found something like systemErr/Out.log, I have looked into most of the files. I didn't find an obvious error message at the end of these files (- the ones dated for today seemed to contain more useful information, like documents being created during deployment of my example application, I can add them if someone needs them to help me).
[1] Server Version: 9.0.5
[2] Docker image used: ibmcom/websphere-traditional#sha256:334dede7396a7ff372b048a974f676969e0d847ceba30b3e81b255a86bc42500

dashDB Launch Server Error

I have added a dashDB to my app and restaged as required. Unfortunately, when I select the Launch button I get a Server Error 500 page. In the Details I get the following:
The website encountered an error while retrieving https://login.ng.bluemix.net/UAALoginServerWAR/oauth/authorize?response_type=code&state=c0241f7f-cf7a-4463-9c29-502c5b4f5efb&scope=openid&client_id=mccpserviceadmin&redirect_uri=https%3A%2F%2Fmccp.ng.bluemix.net%2Flogin%2Fcallback%2Fbmmccp.eyJ0eXBlIjoiY29udHJvbCIsInJlZ2lvbiI6ImlibTp5cDp1cy1zb3V0aCIsImNvbnRyb2wiOnsiY2xpZW50X2lkIjoiZHN3Y0NsaWVudCIsInNjb3BlcyI6WyJvcGVuaWQiXSwicmVkaXJlY3RfdXJpIjoiaHR0cHM6Ly9kYXNoZGItZW50cnkteXAtZGFsMDktMDcuc2VydmljZXMuZGFsLmJsdWVtaXgubmV0Ojg0NDMvY29uc29sZS9pYm1ibHUvaW5kZXhfQ3VzdG9tZXIuanNwP3NwYWNlX2lkPTcxMjQ0ZGMzLTU5YzAtNDM5Mi1hYzYzLTIyM2UxMDA4N2ZhOCZyZWdpb249dXMtc291dGgmdWFhLXJvdXRlPWJtbWNjcC5leUowZVhCbElqb2lkV0ZoTFhKdmRYUmxJaXdpY21WbmFXOXVJam9pYVdKdE9ubHdPblZ6TFhOdmRYUm9JaXdpYjNKblgyZDFhV1FpT2lJMlpHSm1OV1UxTWkweU5XVTBMVFE0T0dVdFlqSmpZaTFqWW1Oak56VmhOR1ZsTTJNaUxDSnpjR0ZqWlY5bmRXbGtJam9pTnpFeU5EUmtZek10TlRsak1DMDBNemt5TFdGak5qTXRNakl6WlRFd01EZzNabUU0SW4wLnA3Y3FiUDJoZjA2Q0lsYjdRVVRmOTV1N0ljQVExdUV1aVczWVM4ZVp4NHl5TWN2TjVZSEsxUWdCZk1URkktZEJxbTIyLUEySWlGVmY0dTY5TzhHNmhBRmx2eHY2dXBOWnhDbVZmWG9URE5TMkdOcGRqS0NFQWlOOTlDVkRuSzFxSDZrRWJvTXY2RkRoTW9vN3JFeGsxWW1ELWo1dGlJN3lobmtEV3R6QTFoWkRtZmxESXBnUFltZ1NfcjNaemljTFFNM1U1YVdCNzBGYVJtdmFlLWpLOV9aN2ZpSzNPbE1uSVBUeFk4QWdMSl9tU3hIRXh5SnBObFo4akxCX0dIQWcxZ0ctTmxYVWgxWXZhd2VEb2dfMVg0SVJZd0ZjZFk1ZzJRLVAtWnhaUzNDdGVYcHBHSTJ0RVg0VjhkbkNrVlVDYkhoNDBvc3R1TzQzTGhTY2JWWUFVUSZhdXRob3JpemF0aW9uLWVuZHBvaW50PWh0dHBzOi8vbWNjcC5uZy5ibHVlbWl4Lm5ldC9sb2dpbiZhdXRob3JpemF0aW9uLWVuZHBvaW50LXF1ZXJ5PXB1YmxpYz10cnVlIn19.N1XmBAm3ZJQExj1FD18JFLPFkECuizGJJVrT0dTrUeZPeH2gIj6nqk6tGlChoSWMHrxdhnH59d0272OkBiT-AaDasYQsGufXwZkmqSJ72fxbwLBefKgu_fgi1rxylhNM0rs5k-YNDk6SW69vwNWI-Np3ywGW8wTRHx26tXQ8_lFzeGP6K0Mke-cQT-u-HXU6c28E6R9XHGuiahRyKHV6eY_Ohvp5I_UE2E3JOUoXVpnj-F34JsmeW6mnUalmJDVJrzVfUJ0MVb9Kyej0eZDnQOV2cnm_auoTR2U_JoIoaZb6ESfoN6nt_Z7ALPZ0txXsVGyHzWf95enwVAPstfLCpw. It may be down for maintenance or configured incorrectly.
Which I can't decipher.
I read in this forum where one can login using the details from the VCAP_VARIABLES which I was able to do successfully. Interestingly I have annother app on bluemix that also has a dashdb that was accessible but now isn't.
I have dropped the dashDB a couple of times and also created it but left it unbound all for no joy.
Any thoughts will be appreciated.
It looks like a bluemix problem as the dashdb is working fine from the Launch button and I can see the data I loaded when I logged in via the vcap variables.

Monitor console activities of RedHat IDM

I want to monitor the console activities such as who login, Any new users got created and new hosts got added for my PCI Activity.
Unable to figure out in which logs the above mentioned info is present
I have looked into /var/log/ipaserver-install.log but this log does not give me the required information.
Please help.
All operations over IPA framework are visible in /var/log/httpd/error_log on each IPA master. This includes adding users, removing them, etc.
There is a prototyped demo on gathering all logs together and visualizing different flows available at https://www.freeipa.org/page/Centralized_Logging. It is not a complete solution but rather a sketch on how it would look like and it has a detailed description on which logs need to be gathered and how to configure a log forwarding specific to IPA on RHEL 7/CentOS 7: https://github.com/pschiffe/ipa-log-config

Is there a recommended 3rd party solution to managing logs on Bluemix?

We have a handful of Ruby (Rails/Sinatra) apps and are looking for an easy means of managing retention, search and analysis of our logs for these applications.
The initial problem was that every time we'd push a new version of our apps the logs would disappear.
We then started streaming our logs to a file via a terminal using:
cf logs AppName
however the logfiles get very big, very fast and quickly become a problem.
We know that the Bluemix Monitoring and Analytics service provides a lot of the function we need. We're looking that over but want to know if there are other recomended/proven options.
Thanks
We found several 3rd party apps that provide the functions we need.
To use any of these we first had to configure third party logging on Bluemix and used the steps below.
Any 3rd party logger that supports the syslog protocol can be used. The initial setup, registration and configuration of the log manegement service, is well covered at Configuring Selected Third-Party Log Management Services.
What will come out of the configuration step is a syslog URL which will be the destination for your logs.
Once the logging service is configured a user-provided service instance needs to be created to stream the logs to the logging service. We did this using:
cf create-user-provided-service <user-provided-service_name> -l <syslog_URL>
Last step is to bind the service instance to our Ruby apps.
cf bind-service AppName <user-provided-service_name>
For the changes to take effcet, we then had to restage our ruby apps:
cf restage AppName
There was a brief delay between when we'd see the logs generated and when they'd show up in the logger service but overall this is working out ok for us so far.

Swiftstack web console is not comming up

I have created swiftstack cluster using swiftstack guidelines. Everything went perfect. i got a web console link after "Job Finished Config Deploy finished successfully." But, I am not able to get the web console, getting "This webpage is not available". Is this because of firewall or any configuration issue?
Please help!
You should email support#swiftstack.com directly for these issues, this forum isn't frequented by our support team.
My hunch is that you need to change from using the SwiftStack Load Balancer to No Load Balancer on the cluster configuration page, and redeploy. Please follow up any inquiries at the email above.