1 Rookie
•
32 Posts
0
108
December 8th, 2024 10:25
SCv3020 centOS root password / apache subsystem access
Hi,
After putting the wrong config regarding SSL certificate now the apache subsystem will not start.
In the logs it says:
"There was a problem veryfing the Apache config: AH00526: Syntax error on line 1 of /usr/local/etc/apache24/Inclues/ssl-hostnames.conf"
I am connected to my SC through USB<->mUSB cable, but in the compellent UI I cannot find a command how to access this file.
I can open the centos which the compellent is running, but none of the passwords I know, or have used, work. It seems that it is set to something else.
My main goal is: access /usr/local/etc/apache24/Inclues/ssl-hostnames.conf so I can edit it and fix it. Then
To achieve this I'd like to know how to get to this file and/or the user/root password for the centOS.
nikog
1 Rookie
•
32 Posts
0
December 11th, 2024 08:45
@Origin3k thanks for the command, that definitely helped.
I was able to use `mc newcert` which created new certificates and overwrote the old ones. That made apache in a good state and it would start normally after a controller restart.
I can now access both the UI and the Dell storage manager.
Thank you both @Origin3k and @DELL-Joey C for the help
Origin3k
4 Operator
•
2.2K Posts
1
December 8th, 2024 15:15
Hello,
the SCOS is based on FreeBSD rather than CentOS. I never worked with the DSM GUI trough a USB connection... i have my doubt how this could ever work. The USB Mini is a serial port. So you connect through a terminal like putty with 115200/8/1/N baud settings.
You can bypass the missing password with a propper USB Stick which needs to be plug into the Leading controller. Google for "Dell Compellent unlock.py" there is a Dell KB about. The default User is "Admin" with a capital letter A. You can login with any password except an empty string.
There is a shell developer acesss command. But i never realize if there is access to the filesystem. In the past it was needed when you setup a SC and today its for trouble shooting.
A SCv3020, 5020 and so on have a iDRAC and its possible to boot a Linux Live CD. Maybe you can get access to the local filesystem.
If you have Support just call them!
Regards,
Joerg
nikog
1 Rookie
•
32 Posts
0
December 8th, 2024 15:59
@Origin3k thanks for the reply.
I am already connected through the mini USB <-> USB console connection. I can successfully login, but I do not see a shell or way to access the filesystem.
I also have iDRAC to which I can login. However, when I use the virtual console, it shows me that it's using centOS 7 and requires username & password which I do not have and have not setup. I suspect it is a Dell username&password which is not available on the free.
I will try the live CD and see if I can do it from there. Thanks for the tip.
Unfortunately I do not have support available.
Is there a way to factory reset the UI/management, without resetting the configuration such as volumes and other configuration? Like a soft reset?
DELL-Joey C
Moderator
•
3.9K Posts
1
December 9th, 2024 09:08
Hi,
There a very few article databases on Compellent that I can refer on helping you on this issue, most likely at end, if we are not able to gain access to SSH, you may need to raise a case with support.
You do have access to the compellent UI, there is an option to enable Enable Secure Console Access. Once you have enabled secure access, you will need to restart services at side menu Secure Console page.
Once you have console access, can you try SSH?
Most likely you can either use sudo vi or sudo nano to edit the ssl-hostnames.conf.
nikog
1 Rookie
•
32 Posts
0
December 9th, 2024 09:14
@DELL-Joey C
Currently I can access:
- iDRAC
- iDRAC Virtual Console
- SCOS console
Currently I cannot access due to apache being down:
- Web UI
- Dell Storage Manager Client
When I run `mc ssh show` I can see the AdminStatus for both controllers are `(2) Disable`.
However, I am not sure how I can enable SSH access from the console cable? When I try to SSH into the SAN I get connection refused (since SSH is disabled).
DELL-Joey C
Moderator
•
3.9K Posts
1
December 9th, 2024 09:47
Hi,
I can't recall if the storage HSN is displayed on the storage physically. If you have the HSN, maybe you can try. This will manually enable SSH on the targeted controller.
mc ssh set <HSN> adminstatus enable
nikog
1 Rookie
•
32 Posts
0
December 9th, 2024 09:55
Hi,
I have the HSN of my storage (also found by `controller version`).
When I run: `mc ssh set <HSN> adminstatus enable`
It tells me `Cannot find command: set`
I have 2 users: Admin & user1 which both have UserPrivileges set to `(5) Admin`. None of them has/can execute a `set` command.
In general there are not `set` commands in the command list when I run `utility shell tree` which shows all the commands
Origin3k
4 Operator
•
2.2K Posts
1
December 9th, 2024 09:59
Try a "shellaccess developer" first. Than the "mc ssh" gets more available properties.
Regards,
Joerg