Customizing Files app favorites OOD 2.0.29

In my /etc/ood/config/apps/dashboard/initializers/ood.rb file I have:

OodFilesApp.candidate_favorite_paths.tap do |paths|
   # add scratch space directories
   paths << Pathname.new("/fs/scratch/#{User.new.name}")
end

But I don’t have access to my /scratch directory in Files:
Am I missing something?

image

Please try

paths << FavoritePath.new("/fs/scratch/#{User.new.name}")

1 Like

Still does not work:

image

image

Your scratch directory is in ‘/scratch’, not ‘/fs/scratch’. So please try

paths << FavoritePath.new("/scratch/#{User.new.name}")

I changed it and it’s still the same:

image

Be sure to restart you’re web server whenever you make changes to initializers.

That last comment seems like it should work. You don’t see any errors in /var/log/ondemand-nginx/$USER/error.log do you?

I checked further and I can mount /scratch, sorry. My problem now is that I can’t see beyond /scratch. It looks like /scratch is not mounted on my OOD

image

Has the initializer changed at all between when scratch was there and wasn’t, or was that mounted and now it is visible?

If it was just mounted but now nothing under it is showing up, can you check the permissions on those files to ensure they are correct for you to view first?

First I got confused with the settings and could not show any path on the dashboard. I finally managed to show /opt when I tested it with @ping.luo’s guidance
So I went to configure my /scratch and realized that I needed to mount my nfs in fstab. Now all gold!

And thanks @jeff.ohrstrom

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.