Removing an inactive APPX session

If a client disconnects while editing a record, its APPX engine can stay alive on the server and hold the lock. Identify the server process that owns the lock before ending a session. A user waiting for the record may be the one who first reports the problem.

Identify the session holding the lock

  1. Record the server, database, file, record, affected user and approximate time. Ask who last had that record open for change and whether they still need it. Check for active updates and scheduled jobs. A long-running job or a session waiting for a reply can look idle.
  2. Read the exact wording of the APPXIO lock message. On Unix, held by process 4128 identifies an operating system PID. held by session identifies an APPX session, and a three-character user ID identifies the user. Use the client or registration display to identify and corroborate the server PID before passing it to an operating system command. The APPX Desktop Client normally shows its own server PID in the title bar. If the client has restarted, its new PID belongs to the new session. Look up the old one under System Administration > System Setup > System Registration > View Registration Usage and match the user, workstation and login time.
  3. Match the candidate PID to the running APPX engine on the correct server. Check the owner, start time and the user's work. PIDs can be reused. On a Unix APPXIO server, go to the directory containing the affected file. For example, fuser -u ORDER.dat lists processes with that file open. On Windows, the Handle utility can search for the file. Several processes can open the same file. Corroborate the record holder with the lock message or the user before ending a process. For a record stored in a relational database, ask the database administrator to identify the blocking session.

Reconnect or exit normally

If the owner can use the session, have them finish or cancel the edit and exit normally. From APPX 5.3, a Login Manager configured for pipe reconnection can keep a dropped session available for a limited time. In clients with a Reconnect Id field, enter the disconnected session's decimal PID and sign in to the same server and port.

From APPX 5.4.4, enter the login details and click Sessions on the Desktop or HTML client login screen. Select the matching row. The owner can use Attach when the session is reconnectable, then release the record normally. An APPX administrator can see other users' sessions. Other users see their own.

Active Sessions shows two sessions for one user, each with a different PID, process name and workstation ID.
The PIPE workstation can support reconnection. The second row is a terminal session for the same user. Use the PID, login time and running process to distinguish the two.

End one confirmed abandoned session

Ending a session can discard an unfinished edit or interrupt an update. Tell the owner first. Recheck the PID immediately before acting. Use one of the following methods.

APPX 5.4.4 and later

In the Sessions list, select the matching row and click Kill, then Refresh. This attempts to cancel the selected session. Host operating system permissions still apply.

Windows server

Open Task Manager on the server and select Details (Processes on older versions). Locate appx.exe with the confirmed PID and owner.

If needed, use this command in a server command prompt, replacing 4128 with the actual PID.

tasklist /v /fi "PID eq 4128"

Select that one process, click End task (or End Process), and confirm. Check that it disappears. Use an account authorized to end that user's process.

Unix or Linux server

As the session owner or an authorized administrator, run the following command, substituting the actual PID.

ps -p 4128 -o pid,user,etime,args

Check the command, owner and elapsed time against the session you identified. Run the following command with that same PID.

kill -TERM 4128

Wait briefly and repeat the ps check. If the process is still present, recheck what it is doing before considering forced termination.

Check the lock

Have the affected user reopen the same record for change. If the confirmed process has exited and the record is still locked, collect the new lock message and identify the current holder. If an old registration row has no matching engine on its original host, the row cannot hold a business record lock. Record the old PID and login time. For a readable USAGE file, let the License Server clean up the stale entry, then reopen the usage display. Older releases may need the one-time cleanup procedure.

Comments:

Read what other users have said about this page or add your own comments.


 
Topic revision: r8 - 03 Dec 2026, AdminUser - This page was cached on 03 Dec 2026 - 19:23.

Powered by Foswiki. Wiki content belongs to its contributing authors.