Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 11 20:52
    @RubenVerborgh banned @mikeadams1
Jeff Zucker
@jeff-zucker
I can submit a PR to remove that from the CSS mashlib recipe when the new mashlib is ready
Matthias Evering
@ewingson
and that line would open a popup which is done otherwise with an redirect through the new authn-upgrade ? that direction ?
Jeff Zucker
@jeff-zucker
No, that line does not do anything but give the location of solid-auth-client so that if some app imports it, it will find it; Yes the new mashlib will handle authn via a redirect, not a popup.
ch1ch0gz
@ch1ch0gz
Hi, not sure if someone has already asked this here, so apologies in advance, just joined this chat.
I am trying to check out the new CSS on my own server. I can run it locally but not on a specific URL. I could not find in README how to do it? I already tried --baseUrl. -b parameter.
Are there any extra steps?I get a :
image.png
11 replies
ch1ch0gz
@ch1ch0gz
When you install the CSS in your server, where are the created pods stored? I memory? I do not seem to find them.
Jeff Zucker
@jeff-zucker
@ch1ch0gz if you start the server without specifying one of the configs, it is all in-memory; use -c @css:config/file.json -f rootFilePath when you start. The -c tells CSS to store in files, the -f tells it where to store those files
ch1ch0gz
@ch1ch0gz
I will try that, thanks!
Matthias Evering
@ewingson
am I right, when in production to use -b flag instead of -f ?
Jeff Zucker
@jeff-zucker
@ewingson AFAIK -b should be used in addition to, not instead of -f. The baseUrl (-b) is the URL that outside clients will contact. The rootFilePath (-f) is the path on the server where files will be stored.
Jeff Zucker
@jeff-zucker
^^ -f assumes you want to store data in files, there are other options
Matthias Evering
@ewingson
I guess that would be the -f webroot then ?
Jeff Zucker
@jeff-zucker
If webroot is the container on your server where data is stored, yes
ch1ch0gz
@ch1ch0gz
When using Penny I seem to have access to the pod root directory...which allows me to see all the pods available in my CSS...Is that normal? Also what are the idp and locks folders?
ch1ch0gz
@ch1ch0gz
Additionally, how can I enable and send a query using the sparql endpoint in CSS?
Joachim Van Herwegen
@joachimvh
@ch1ch0gz the /index.html in the root container contains some more information, by default the root /.acl allows access to everyone so that needs to be changed if you don't want that
the idp and locks folders are for internal data, we're looking into making sure those are hidden in the future
CSS itself does not provide support (yet?) for sending SPARQL queries. It simply allows you to use a sparql endpoint for storing the Solid data. If you want to send queries you'll have to send them to the endpoint directly
Ruben Verborgh
@RubenVerborgh
@ch1ch0gz Plus, if the folder you start the server from contains an .acl file, or if you would edit the created .acl, then you can set permissions any way you want (even before starting the server)
ch1ch0gz
@ch1ch0gz
@RubenVerborgh @joachimvh . Thanks for the answers.
ch1ch0gz
@ch1ch0gz
@joachimvh I have been trying to run the CSS as per your solution https://gist.github.com/joachimvh/da75e1239fb026db0b3375ded505b21f
community-solid-server --baseUrl https://dev.ideniox.com -c @css:config/sparql-endpoint.json -f /var/www/css -s http://dev.ideniox.com:8890/sparql
But it seems that if add the sparwl-endpoint.json, then -f /var/www/css is completely ignored...
ch1ch0gz
@ch1ch0gz
To make it clearer I want to be able to store data either on the file system and or on the backend.
ch1ch0gz
@ch1ch0gz
currently I get a "No ACL document found for root container" when trying to log in...
Jeff Zucker
@jeff-zucker
does /var/www/css/.acl exist? If not, copy one there from the templates/root folder of CSS
ch1ch0gz
@ch1ch0gz
it does exists and I also tried copying from the template
Joachim Van Herwegen
@joachimvh
@ch1ch0gz did you use the config from the first comment or the third comment in the gist? Because there was an issue with the one in the first comment (that causes that specific error)
the way that config is written the acl resources would be stored in the sparql endpoint, not the file system. The file system is only used for some internal data management of the server
13 replies
Matthias Evering
@ewingson
@joachimvh can you have a look at https://gist.github.com/ewingson/ec12d9a85744428d8d68816408287ae3 (the CSS config section) ? in particular if a config location starts with / ? is that seen from the CSS directory or the file system root ? @jeff-zucker gave me the hint to store the config outside of the CSS location, because otherwise it wouldn't survive a potential update... do you think that config would work ? (will go into production when we have production mashlib) .... thanx
7 replies
Theo
@joeitu

Hello,

As part of my CS master thesis, I will work on the deployment of a CSS instance at CERN.

With Maria, we established two main features to work on: the integration of a UI and the integration of an SSO login.

To make my thesis valid toward my university, I must: ① "make something new" like writing a new piece of software ② be able to measure its success ( for eg. through tests or interviews)

I would like to ask the CSS developers two things: First, do you have some pointers on what I could work on regrading the UI and/or the SSO integration that could meet my university requirement. Secondly, considering the 3.5 month timeframe that I have, do you believe both (SSO and UI) are doable or should I focus only on one of them ?

6 replies
Ángel Araya
@angel.araya:matrix.org
[m]

Hi! While writing a custom configuration I'm getting this:

ErrorResourcesContext: Could not find (valid) component types for config "urn:solid-server:default:ResourceStore" among its types, or a requireName

In my config I have this:

    {
      "@id": "urn:solid-server:default:ResourceStore",
      "@type": "DataAccessorBasedStore",
      "DataAccessorBasedStore:_accessor": {
        "@id": "urn:solid-server:default:SqlDataAccessor"
      },
      "DataAccessorBasedStore:_identifierStrategy": {
        "@id": "urn:solid-server:default:IdentifierStrategy"
      },
      "DataAccessorBasedStore:_auxiliaryStrategy": {
        "@id": "urn:solid-server:default:AuxiliaryStrategy"
      }
    },
    {
      "@id": "urn:solid-server:default:SqlDataAccessor",
      "@type": "SqlDataAccessor",
      "SqlDataAccessor:_identifierStrategy": {
        "@id": "urn:solid-server:default:IdentifierStrategy"
      },
      "SqlDataAccessor:_database": {
        "@id": "urn:solid-server:default:Database"
      },
      "SqlDataAccessor:_schema": "public"
    },

The IdentifierStrategy and AuxiliaryStrategy are the default ones. Any ideas? To me it looks like it has all that's needed to create a ResourceStore.

Joachim Van Herwegen
@joachimvh
looks fine at a first glance
maybe this config file isn't being imported in the main config?
Ángel Araya
@angel.araya:matrix.org
[m]
It's actually in the main config file. Another thing to I should mention is that this project has CSS as a dependency and imports the default configuration files from node_modules/@solid/community-server/config. I defined my project as a module following the documentation for componentsjs.
Joachim Van Herwegen
@joachimvh
@angel.araya:matrix.org It's hard to tell from just the example above, but the Components.js error seems to indicate that it's not finding your resource store. Perhaps this can help, it's another project that has a configuration that uses CSS as a dependency and also has a config with custom stores: https://github.com/KNowledgeOnWebScale/solid-calendar-store/
1 reply
Theo
@joeitu

Hello @RubenVerborgh @joachimvh

As said earlier I'm doing a Computer Science master thesis on the integration of CSS at CERN. Especially, I'll be working on the integration of CERN's SSO with CSS.

For that purpose, and as Ruben informed me, I'll have to implement a new identification interaction. If I understand well, the email identification interaction is the only one that exists for now, and to be able to login with CERN SSO, an OpenID interaction needs to be implemented.
This would suit me well as it would fulfill one of my thesis requirements: code something new.

Could you confirm that this is not implemented in the current CSS yet?

2 replies
Matthias Evering
@ewingson

in NSS we have /var/www/servername/data/user/index.html for pod root

and /var/www/servername/index.html for server root.

in CSS we have /usr/lib/node_modules/@solid/community-server/templates/root/index.html

that generates the server root in /var/www/servername/index.html

where is the template for the user pod root in CSS ?
will changes only apply for new users ?
will we take the new authN for both servers ?
things to keep an eye on...

is it the goal to make SolidOS standard on both ?

5 replies
sorry for the poor markdown
Ruben Verborgh
@RubenVerborgh
There will be no standard UI; instead, people can choose the UI to start the server with
Examples of such choices here: https://github.com/solid/community-server-recipes
Jeff Zucker
@jeff-zucker
After git clone of 1.1.0 main, npm ci produces :
error TS2688: Cannot find type definition file for 'node-fetch'.
The file is in the program because:
 Entry point for implicit type library 'node-fetch'
Jeff Zucker
@jeff-zucker
^^ Submitted an issue solid/community-server#979
Jeff Zucker
@jeff-zucker
If anyone would like to try the beta of the mashlib against CSS, get an account on solidweb.me and then go to the address below and use its go bar to go to your solidweb account and login. https://jeff-zucker.solidcommunity.net:8443/browse.html
aveltens
@aveltens:matrix.org
[m]
works! great!
jaxoncreed
@jaxoncreed
Quick question: Is there any way to create new classes to plug into CSS without forking the library and adding them there? I see in https://github.com/solid/community-server-recipes that its posible to set up new configurations without modifying the main repo, but these examples don’t show using classes outside of the main library. Is there a way to do this? If so, where can I find an example?
Justin Bingham
@justinwb
@jaxoncreed we just went through the same thing - if you ping @angel.araya:matrix.org he can show you how we went about it
jaxoncreed
@jaxoncreed
Thanks
Ángel Araya
@angel.araya:matrix.org
[m]

@angel.araya:matrix.org It's hard to tell from just the example above, but the Components.js error seems to indicate that it's not finding your resource store. Perhaps this can help, it's another project that has a configuration that uses CSS as a dependency and also has a config with custom stores: https://github.com/KNowledgeOnWebScale/solid-calendar-store/

jaxoncreed (jaxoncreed) I based most of my work in this working example. But let me know if your get stuck anywhere, it might be something I also ran into.

Ruben Verborgh
@RubenVerborgh
@jaxoncreed Also an example in https://github.com/RubenVerborgh/solid-hue
Ruben Verborgh
@RubenVerborgh
Enjoy v2.0.0 of the Community Solid Server — https://github.com/solid/community-server/releases/tag/v2.0.0