Mantis: tracker goes offline and Source Integration misses commits
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: Mantis: tracker goes offline and Source Integration misses commits
An aside: both Mantis and SI need updates:
https://mantisbt.org/blog/archives/mantisbt/658
https://github.com/mantisbt-plugins/sou ... tag/v2.3.1
https://mantisbt.org/blog/archives/mantisbt/658
https://github.com/mantisbt-plugins/sou ... tag/v2.3.1
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
- kkremitzki
- Veteran
- Posts: 2517
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: Mantis: tracker goes offline and Source Integration misses commits
Would you be interested in me teaching you how to maintain Mantis? Now that it's on Digital Ocean we have a better automatic backup situation and more granular access control options.
Re: Mantis: tracker goes offline and Source Integration misses commits
Sure, that would be OK with me
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
- kkremitzki
- Veteran
- Posts: 2517
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: Mantis: tracker goes offline and Source Integration misses commits
Just for starters here's the admin manual reference on the process for updates:
https://mantisbt.org/docs/master/en-US/ ... ll.upgrade
https://mantisbt.org/docs/master/en-US/ ... ll.upgrade
- kkremitzki
- Veteran
- Posts: 2517
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: Mantis: tracker goes offline and Source Integration misses commits
You should now be able to SSH in to the machine running the tracker with ssh vagrant@tracker.lxd after SSHing into the server. Please feel free to attempt the upgrade and other maintenance and just announce things in advance.
Also, once you are in the tracker machine, if you do sudo -i to get a root shell and then ctrl-R to search through the history, then type sudo -u www-data you will find the command used to the source integration import. It needs to be ran in /var/www/tracker, so you can use that to add a cronjob to fix the issue with missing imports.
Also, once you are in the tracker machine, if you do sudo -i to get a root shell and then ctrl-R to search through the history, then type sudo -u www-data you will find the command used to the source integration import. It needs to be ran in /var/www/tracker, so you can use that to add a cronjob to fix the issue with missing imports.
Re: Mantis: tracker goes offline and Source Integration misses commits
Sorry for the delay, I have a moment to do this and am attempting nowkkremitzki wrote: ↑Sat May 09, 2020 10:43 pm You should now be able to SSH in to the machine running the tracker
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Mantis: tracker goes offline and Source Integration misses commits
JFYI, it seems Source Integration is totally at lost ATM. No commit has been correctly caught for weeks.
Re: Mantis: tracker goes offline and Source Integration misses commits
Check again. Looks like @kkremitzki's instructions worked
Question though, can I use sudo in a bash 1 liner and run from cron ?
Also why does source integration need to be 'rebooted' ? Is there something we can do to avoid a cron script ? Also can i create a script that uses a conditional to check if Source Integration is down to 'reboot' it?
I'll ask on https://gitter.im/mantisbt-plugins/source-integration
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Mantis: tracker goes offline and Source Integration misses commits
I saw one manually ran an update at 15:23 UTC. It added a big bunch of changes in the activity stack.
But this isn't a good way I guess if someone has to do it every hour.
You can chain some sudos using '&&' and eventually run this with cron.
But so it is not killed with your session, you have to run it with 'nohup' or inside a 'screen'. You can also create a cronjob (if server allows) which is probably the cleanest way.
Do you have a pointer to the commands you're using?
Re: Mantis: tracker goes offline and Source Integration misses commits
Code: Select all
sudo -i
cd /var/www/tracker
sudo -u www-data php-cgi -f plugin.php page=Source/import id=all api_key=alphanumerickey
Code: Select all
* */2 * * * sudo -i && cd /var/www/tracker && sudo -u www-data php-cgi -f plugin.php page=Source/import id=all api_key=alphanumerickey
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs