Shell Server Turn Down

Advanced feature discussion, beta programs and unsupported "Labs" features.
96 posts Page 9 of 10
by joemuller » Wed Jul 03, 2024 1:05 pm
mikefr wrote: Wed Jul 03, 2024 7:38 am
joemuller wrote:
mikefr wrote: This leaves the question of how can I access my web site logs, which I was able to do when I connected via sftp.

Any ideas?
The logs should be showing up at /logs/by_user/ (or 'logs' if you have a symlink set up to point there), but it looks like that's not working at the moment. I've reported the bug and am currently working on fixing it - hopefully it's just a configuration option we missed during the recent upgrade of the server.

-- Joe M
Joe,

I see that /logs now appears (it wasn't there yesterday), however the directory is empty. Can I assume this is only because you still haven't completed the fix?

Mike
This is mostly fixed now - that directory has one folder for each user, which are all hidden by default. Obviously you can't read somebody else's logs unless you are logged in as them, but there's an issue where even one's own log directory is hidden.

So, as of right now, you can access your logs by navigating to /var/log/httpd/USERNAME/ where 'USERNAME' is your login. This also exists at /logs/by_user/USERNAME/ in case anyone has scripts expecting logs to live there from shell.sonic.net.

-- Joe M
I'm a proud employee of Sonic.net! :-)
by mikefr » Wed Jul 03, 2024 3:44 pm
joemuller wrote: Wed Jul 03, 2024 1:05 pm
This is mostly fixed now - that directory has one folder for each user, which are all hidden by default. Obviously you can't read somebody else's logs unless you are logged in as them, but there's an issue where even one's own log directory is hidden.

So, as of right now, you can access your logs by navigating to /var/log/httpd/USERNAME/ where 'USERNAME' is your login. This also exists at /logs/by_user/USERNAME/ in case anyone has scripts expecting logs to live there from shell.sonic.net.

-- Joe M
Joe,

Unfortunately, when I try to read /logs/by_user, or /var/log/httpd, I get "permission denied".

Mike
by joemuller » Wed Jul 03, 2024 4:26 pm
mikefr wrote: Wed Jul 03, 2024 3:44 pm Unfortunately, when I try to read /logs/by_user, or /var/log/httpd, I get "permission denied".
As I said above, you need to add your username ('mikefr') onto that path, so for your account, it would be:

/var/log/httpd/mikefr/

or

/logs/by_user/mikefr/

These are the exact same places it would have been on the shell server - the only difference is that you are accessing it with an FTP program instead of with a shell.

-- Joe M
I'm a proud employee of Sonic.net! :-)
by mikefr » Wed Jul 03, 2024 5:25 pm
joemuller wrote: Wed Jul 03, 2024 4:26 pm
As I said above, you need to add your username ('mikefr') onto that path, so for your account, it would be:

/var/log/httpd/mikefr/

or

/logs/by_user/mikefr/

These are the exact same places it would have been on the shell server - the only difference is that you are accessing it with an FTP program instead of with a shell.

-- Joe M
Joe,

How do I modify the file path within WinSCP? I thought I could only select files and folders that already appear in the menu. Clearly I'm overlooking something basic about using WinSCP.

Mike
by mikefr » Wed Jul 03, 2024 5:46 pm
mikefr wrote: Wed Jul 03, 2024 5:25 pm
Joe,

How do I modify the file path within WinSCP? I thought I could only select files and folders that already appear in the menu. Clearly I'm overlooking something basic about using WinSCP.

Mike
Joe,

Never mind. I figured out a way to do it (using the search facility).

Mike
by joemuller » Wed Jul 03, 2024 5:58 pm
For anyone using WinSCP to connect to ftp.sonic.net, you can change the directory like this:

On the right-hand list of files, there should be a directory path listed, just above the Name, Size, Changed, etc columns -- if you double-click that, a pop-up dialog will open that lets you specify the path. If you type in the path to your logs (/logs/by_user/USERNAME/ where 'USERNAME' is your login name) and click OK, that will navigate directly to your logs directory.

Image

Image

The official user guide for WinSCP also has screenshots and additional information:
https://winscp.net/eng/docs/ui_opendir

-- Joe M
I'm a proud employee of Sonic.net! :-)
by sjs » Thu Jul 04, 2024 3:02 pm
And I just installed a patch for regreSSHion on my system... wow,
by mly » Sat Jul 06, 2024 1:29 pm
joemuller wrote: Wed Jul 03, 2024 1:05 pm
This is mostly fixed now - that directory has one folder for each user, which are all hidden by default. Obviously you can't read somebody else's logs unless you are logged in as them, but there's an issue where even one's own log directory is hidden.

So, as of right now, you can access your logs by navigating to /var/log/httpd/USERNAME/ where 'USERNAME' is your login. This also exists at /logs/by_user/USERNAME/ in case anyone has scripts expecting logs to live there from shell.sonic.net.

-- Joe M
Thanks for making the effort to keep the web access logging stuff creaking along.
by cstan » Fri Jul 12, 2024 3:42 pm
I didn't use the shell server a ton, but it was super useful in debugging network/acl issues at various work sites. Pretty bummed it got cancelled, seems like something sonic could've continued supporting without much issue. sigh....
by sjs » Fri Jul 12, 2024 3:54 pm
Likewise. Yesterday I added a simple HTML link and where I would have scp'ed a tar and untared it, now I made a directory, ftp'ed the index, made another directory and mftp'ed the images.
Is there an easier way using ftp to unzip/untar files?
96 posts Page 9 of 10