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

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

Related

how do I delete weblogic portal domain directory

I am working on setup scripts for a weblogic portal domain. This requires me to create the domain / delete / try again many times. However I have found that when I start the server and kill it I can not delete the folder where the domain is saved (C:\portal-10.3.7\user_projects\domains\myDomain). There are some .DAT files which are used as part of some persistent file store and they keep getting created even when I kill the servers (C:\portal-10.3.7\user_projects\domains\myDomain\servers\AdminServer\data\store). Only way I can delete them is if I restart my computer. Ive tried killing processes from task manager and shutting down services but I cant seem to figure out what keeps generating these files. Other developers using the domain setup scripts have the same complaint.
Edit:
I found using a tool called "Process Explorer" that there is a process that is holding the file.
Process explorer mentions that PID #4 is using the file
When I run tasklist I can see that PID #4 has:
Image Name=System
Session=Services
I looked around and found this PID #4 is 'NT Kernel & system' so I cant kill it or the whole system will go down. Not sure if there is a specific dll I can kill or find which dll holds the file and just shut that down
I went so far as to download systinternals handle tool (microsofts own tool). Able to find the handle identifier but microsofts own tool is not able to release the handle. Infuriating how much time I have wasted.
edit ...
Last thing to mention and I officially give up. When I start the server I can see the servers java process owns the handle. When I shut down the server (using either the shutdown script or by killing the java process) I can see the system processes with PID 4 takes over the handle to the file.

Accessing streamsets web UI on another node in a cluster than where installed, which file system does it 'look in'?

I have a cluster of machines hosting hadoop (MapR) and have install streamsets on one of the nodes (say node002) following the RPM documentation. However, I am accessing the web UI for the data collector from another node, node001.
My question is, when I specify files paths (eg. an origin directory), which file system is the web UI going to be referring to? Eg. if I put an origin directory as /home/myuser/mydata, will the pipeline created in the web UI be looking for that directory in node001 or node002? New to using streamsets, so a more detailed answer would be appreciated. Thanks.
** Ultimately I am asking this because I am currently getting "FileNotFound" and "permission denied" errors while trying to follow the documentation's tutorial and am trying to debug the situation.
From the streamsets community forums: It will be the path to the local file on the machine running that particular SDC instance.
The FileNotFound and permission errors have to do with the fact that the default user for the sdc service is a user called sdc. Still working on how to fix this part, but can produce a workable prototype by setting the read and write access for the directories in question to allow public access (still need to work on this part, but this answers the posted question).

Bluemix task runner service capable of PHP

I have a PHP web application which needs to process a lot of data which may take some minutes or more. I want to be able to start a background task which would do the processing and poll for the progress from the web-app.
On the normal hosting I would run a permanent process with
> nohup php runner.php &
I can not do this with IBM CF. I suppose there must be another Bluemix service which I can delegate long running tasks to. Is there?
To run runner.php instead of apache, try creating a file .bp-config/options.json and setting these values:
"WEB_SERVER" : "none"
"APP_START_CMD" : "php runner.php"
This is the default options.json file: https://github.com/cloudfoundry/php-buildpack/blob/master/defaults/options.json
More info: https://docs.cloudfoundry.org/buildpacks/php/gsg-php-config.html

Error attempting to view files and logs for Bluemix app

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>

Firebase deploy fails with different errors

I get different error messages every time I try to deploy my ~700MB angular app to firebase hosting with firebase-tools.
It progresses something between 10-30% and comes up randomly with different errors like:
Deploy Error - Storage error
Deploy Error - Request timed out
Deploy Error - Socket hang up
I've got node 0.10+, tried with two machines (both Windows 7, using cmder shell). Tried both "firebase init" to an existing directory and "firebase bootstrap" to an empty one and copied my files over but issues persist.
I've also made sure there are no href or src attributes with expressions in them as some other guy had issues with those.
Am I doing something wrong and is there some more enlightening log-file to read to understand what actually fails?