LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2023, 08:01 PM   #1
Sniper_X
LQ Newbie
 
Registered: Oct 2023
Posts: 2

Rep: Reputation: 0
How do I find out what is broken on this Web app Service?


I have a web-based service that uses Python & a command line tool that gets called by a wrapper (of some sort).

This is what the service SHOULD look like when the status is checked:

Code:
# systemctl status usmd
usmd.service - Western Digital Resource Manager Web Application HTTP server
  Loaded: loaded (/etc/systemd/system/usmd.service; static; vendor preset:
 enabled)
  Active: active (running) since Thu 2020-12-31 11:28:26 IST; 1h 18min ago
Main PID: 35459 (python3)
   Tasks: 7 (limit: 7372)
  CGroup: /system.slice/usmd.service
          |-- 2650 /bin/sh -c wdds /dev/sg2 show handles
          |-- 2651 wddcs /dev/sg2 show handles
          |--19819 /usr/bin/python3 /opt/usm/inbandmgmt/middleware/main.py


This is what the service looks like when I install it:

Code:
# systemctl status usmd
● usmd.service - Western Digital Resource Manager Web Application HTTP server.
     Loaded: loaded (/etc/systemd/system/usmd.service; enabled; preset: enabled)
     Active: active (running) since Wed 2023-10-11 13:03:10 EDT; 7h ago
   Main PID: 1002 (python3)
      Tasks: 25 (limit: 38356)
     Memory: 172.5M
        CPU: 2h 37min 23.653s
     CGroup: /system.slice/usmd.service
             └─1002 /usr/bin/python3 /opt/usm/inbandmgmt/middleware/main.py

Oct 11 18:46:05 GA01WDRM-TST-SRV01 python3[1002]:     drive_handles = WDDCS.get_handles(serial, hba_index,True)
Oct 11 18:46:05 GA01WDRM-TST-SRV01 python3[1002]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 11 18:46:05 GA01WDRM-TST-SRV01 python3[1002]:   File "/opt/usm/inbandmgmt/app/services/hal/wddcs_wrapper.py", line 557, in get_handles
Oct 11 18:46:05 GA01WDRM-TST-SRV01 python3[1002]:     slot_map = (list(map(get_slot_map,output)))
Oct 11 18:46:05 GA01WDRM-TST-SRV01 python3[1002]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 11 18:46:05 GA01WDRM-TST-SRV01 python3[1002]:   File "/opt/usm/inbandmgmt/app/services/hal/wddcs_wrapper.py", line 447, in get_slot_map
Oct 11 18:46:05 GA01WDRM-TST-SRV01 python3[1002]:     if items[dev_index].startswith("/dev/") or items[dev_index].startswith("PD"):
Oct 11 18:46:05 GA01WDRM-TST-SRV01 python3[1002]:        ~~~~~^^^^^^^^^^^
Oct 11 18:46:05 GA01WDRM-TST-SRV01 python3[1002]: IndexError: list index out of range
Oct 11 18:46:05 GA01WDRM-TST-SRV01 python3[1002]: 10.168.101.99 - - [11/Oct/2023:18:46:04 -0400] "POST /storage/driveinfo?hba_index=1&serial=USWSJ01219EZ0023 HTTP/1.1" 500 265 "https://10.168.101.129/" "Mozilla/5.0 (Windows NT 10.0; W>
I'm mainly concerned with the tree at the bottom showing what processes should be running, but mine error out.

How do I diagnose this?

I can run these commands manually, but the service seems to not be able to.

This is what I'm trying to install:
Western Digital Resource Manager - This will take you to the LINUX install section:
Installing Resource Manager Standard Edition for Linux
 
Old 10-19-2023, 02:05 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
I guess you need to contact the official support, we can't fix wd software.
 
Old 10-19-2023, 06:59 AM   #3
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,627

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
Quote:
Originally Posted by Sniper_X View Post
How do I diagnose this?
You don't, you contact Western Digital Support, and tell them they have a bug in their software.

Any attempts to resolve this by someone not familiar with Western Digital code has potential to make matters worse, and possibly void the warranty.

 
Old 10-19-2023, 08:46 AM   #4
Sniper_X
LQ Newbie
 
Registered: Oct 2023
Posts: 2

Original Poster
Rep: Reputation: 0
This isn't really about the WD software as much as it is about the installation I performed.
This management platform is used all over the place and I seem to be the only one with a problem of how it's executing.

I'm not a linux user typically, at least no to this level of diagnosis), so I posted this to determine where I may have gone wrong.
Others I have shown this to seem to feel its a permissions issue.

I was root the whole time I was installing this, but I'm reading that the user context Apache runs this under might be different?

So there are no thoughts along those lines?
 
Old 10-19-2023, 09:33 AM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,627

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556

There is a bug in the WD software. Whether that bug is uncovered through improper installation doesn't change that there is a bug. We've no information to confirm what is causing the bug.

It's impossible to say where you may have gone wrong because your post doesn't contain any information on what you did. (I am not downloading a 16MB PDF which may or not match what you did.)

Quote:
Others I have shown this to seem to feel its a permissions issue.
It's rude to cross-post the same thing in multiple places without linking to those other places.

This appears to be what you're referring to: //stackoverflow.com/questions/77277055/how-do-i-find-out-what-is-broken-on-this-service-in-debian

The reason a PHP developer on StackOverflow guessed "probably a permissions error" is because permissions are a common cause of problems, not because they have any insight into why the Python code is erroring.

Whether there is a permissions error caused by improper installation or whether there is a different cause to the error doesn't change that there is a bug in the Western Digital code, and the only people that can fix that bug are those with access to the Western Digital code.

There are various methods for running Apache, people here or on SO can only guess (and potentially make things worse).

The best thing to do is ask the people who know more about anyone else about how Western Digital Resource Manager expects Apache to be setup...

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Web App Vs. Progressive Web App: How Are They Different? LXer Syndicated Linux News 0 06-23-2022 04:45 AM
systemctl status postgresql-tst.service starts the service if service is stopped MarianForums Linux - Newbie 7 11-03-2018 03:02 PM
LXer: Anatine (Pristine Twitter App) – Mobile web version of Twitter App for Linux Desktop LXer Syndicated Linux News 0 08-11-2016 07:00 AM
LXer: Java, Web Service, and database apps with Rational App. Developer v7 LXer Syndicated Linux News 0 03-10-2008 12:00 PM
LXer: Creating a Web service app object using WebSphere Portal V6 LXer Syndicated Linux News 0 02-24-2007 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration