#8204 Create new neighbourhood

unreleased
open
nobody
None
General
nobody
7 days ago
2018-06-08
Vrinda
No

Hello,

I understand neighbourhoods can be used for grouping similar projects. By default I can see 3 neighbourhoods created by default : Adobe, Projects and Users.
Is it possible to create new neighbourhood?

Regards,
Vrinda.

Discussion

  • Vrinda

    Vrinda - 2018-06-08

    Also, I see Clustering, Communications and Database tabs on the left of the home page which are empty. Are these similar to neighbourhoods? If so, can I create new ones here?

     
  • Vrinda

    Vrinda - 2018-06-08

    When I tried an 'Evict' of a project from a neighbourhood, it gives the error 'AttributeError: 'NoneType' object has no attribute '_id''

     
  • Dave Brondsema

    Dave Brondsema - 2018-06-08

    Yes, you can create more neighborhoods with the create-neighborhood command. https://forge-allura.apache.org/docs/getting_started/administration.html

    The Clustering, etc categories on the home page are not used by anything any more, and are due for removal. Most Allura instances customize their index page.

    The Evict option under neighborhood moderation is not a commonly used feature, but I tested it just now and it worked fine. If you still get that error, can you provide more details about the steps you took, which project and neighborhood, etc?

     
  • Vrinda

    Vrinda - 2018-06-11

    I could create new neighborhoods using the pastor command. Thanks :)
    Is it possible to delete existing neighborhoods and projects? I did not see any commands for that..

    You mentioned customizing the index page, how can I do that?

    After I restarted the server, the Evict seems to be working fine, so I do not know what was the issue earlier. Whenever I Evict, the project gets evicted to the 'Projects' neighborhood. Is this the expected behavior?

     
  • Vrinda

    Vrinda - 2018-06-13

    Thanks :)
    I am now trying to setup git connection for a project. I created a dummy project and want to try adding a sample code file to it. I followed the steps mentioned in 'First time using Git'. If you look at the attachment, you'll see that the status says 'Repo status: initializing...'. What do I need to do to see the file in repo?

     
  • Vrinda

    Vrinda - 2018-06-14

    Yes. taskd had been running. I checked the taskd.log and see a 'Permission denied' error. Could this be the problem? Taskd log attached here.


    08:24:49,480 ERROR [allura.model.monq_model] Error "[Errno 13] Permission denied: '/srv/git/USS/artodbc/code.git'" on job <MonQTask 5b21d8f82fcfd70add915c24="" (busy)="" P:10="" allura.tasks.repo_tasks.init="" BMH1104243="" pid="" 2747="" project:="" USS="" artodbc="" app:code="" user:admin1="">
    Traceback (most recent call last):
    . . .
    . . .

    OSError: [Errno 13] Permission denied: '/srv/git/USS/artodbc/code.git'

    When I had to run the git commands via terminal to add and push files into the repository, I had to use sudo always.

     
    Last edit: Vrinda 2018-06-14
    • Dave Brondsema

      Dave Brondsema - 2018-06-14

      Yep, that is the error. You will need to set permissions so the allura webapp and taskd processes can read & write to that directory. Or change that directory with the scm.repos.root setting and scm.host.file.git setting in the .ini config file (and restart services).

      You'll probably want to make a new code repo after that, to make sure it gets initialized correctly.

      And then you should do a checkout of the repo, not commit directly in the /srv/git path.

       
  • Vrinda

    Vrinda - 2018-06-15

    I set read/write permissions to /srv/git folder and created new code repo. Now I am able to see the repo file in the browser. Thanks :)

    What is the command to restart the services - without losing the neighborhood and projects created?

     
    • Dave Brondsema

      Dave Brondsema - 2018-06-15

      Everything is saved to mongodb, so restarts wont' lose anything. With the docker setup, you can restart with: docker-compose restart taskd and docker-compose restart web

      With step-by-step installation you basically just stop the process and then start it again. (In a production-ready setup you'd want to create a service to manage it). So something like:

      • pkill -f gunicorn and then gunicorn --reload --paste development.ini again
      • pkill "^taskd"; and then nohup paster taskd development.ini >> /var/log/allura/taskd.log 2>&1 & again
       
  • Vrinda

    Vrinda - 7 days ago

    I was also running the command
    ALLURA_TEST_DATA=False paster setup-app development.ini
    This was recreating the mongodb maybe?

    Without this, after the restart I can see the projects persisted.

     

Log in to post a comment.