Skip to content

Commit

Permalink
Merge pull request #4144 from AllskyTeam/4104-script-to-create-info-t…
Browse files Browse the repository at this point in the history
…o-assist-in-supporting-users

4104 script to create info to assist in supporting users
  • Loading branch information
EricClaeys authored Dec 31, 2024
2 parents 25b1324 + c6139f1 commit 52cc2a4
Show file tree
Hide file tree
Showing 19 changed files with 1,337 additions and 135 deletions.
7 changes: 7 additions & 0 deletions config_repo/sudoers.repo
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ www-data ALL=(ALL) NOPASSWD:XX_ALLSKY_SCRIPTS_XX/checkAllsky.sh
www-data ALL=(ALL) NOPASSWD:XX_ALLSKY_UTILITIES_XX/execute.sh
www-data ALL=(ALL) NOPASSWD:/usr/bin/date
www-data ALL=(ALL) NOPASSWD:/usr/bin/touch
www-data ALL=(ALL) NOPASSWD:/usr/bin/dpkg-query
www-data ALL=(ALL) NOPASSWD:/usr/bin/libcamera-still
www-data ALL=(ALL) NOPASSWD:/usr/bin/rpicam-still
www-data ALL=(ALL) NOPASSWD:/usr/bin/lsusb
www-data ALL=(ALL) NOPASSWD:/usr/bin/ls
www-data ALL=(ALL) NOPASSWD:/usr/sbin/i2cdetect
www-data ALL=(ALL) NOPASSWD:/usr/bin/raspi-config
6 changes: 6 additions & 0 deletions html/documentation/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,12 @@ input[type="text"].has-error {
.dark .btn-delete {
color: black;
}
.btn-fake { /* Looks like a button but isn't one - used in documentation */
pointer-events: none;
font-size: 80%;
padding: 3px 6px;
}


.btn.focus.navbar-btn,
.btn:focus.navbar-btn,
Expand Down
2 changes: 1 addition & 1 deletion html/documentation/css/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--color-attention-emphasis: #bf8700;
--color-attention-muted: rgba(212,167,44,0.4);
--color-attention-subtle: #fff8c5;
--color-attention-verysubtle: #fff8c555;
--color-attention-verysubtle: #fffbdf;
--color-success-fg: #1a7f37;
--color-success-emphasis: #2da44e;
--color-success-muted: rgba(74,194,107,0.4);
Expand Down
2 changes: 1 addition & 1 deletion html/documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h1>Issues</h1>
If you can't find a similar problem look in the
<span class="gitHubLink">Discussions</span> (it may be a closed discussion).
If you still can't find your problem, read the
<a allsky="true" href="troubleshooting/reportingIssues.html">Reporting Issues</a>
<a allsky="true" href="troubleshooting/reportingProblems.html">Reporting Problems</a>
page and then create a new <span class="gitHubLink">Issue</span>.

<br><br>
Expand Down
4 changes: 2 additions & 2 deletions html/documentation/miscellaneous/FAQ.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ <h2>After starting Allsky, all I get is "Allsky software is starting up"</h2>
and it may take several exposures for the software to find the best exposure.
While it's doing that, you'll see the "Allsky software is starting up" message. This is normal.
However, if the message remains after several minutes follow the instructions
<a allsky="true" href="/documentation/troublehsooting/reportingIssues.html">here</a>
and submit the log file.
<a allsky="true" href="/documentation/troublehsooting/reportingProblems.html">here</a>
to report the problem.
</p>
<p>
You can also temporarily set the
Expand Down
2 changes: 1 addition & 1 deletion html/documentation/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</ol>
<li>Troubleshooting:
<ol type="i">
<li><a allsky="true" href="/documentation/troubleshooting/reportingIssues.html"><b>Reporting Issues</b></a>
<li><a allsky="true" href="/documentation/troubleshooting/reportingProblems.html"><b>Reporting Problems</b></a>
<li><a allsky="true" href="/documentation/troubleshooting/uploads.html">Uploads (FTP, scp, etc.)</a>
<li><a allsky="true" href="/documentation/troubleshooting/timelapse.html">Timelapse</a>
<li><a allsky="true" href="/documentation/troubleshooting/image-flicker.html">Image flicker</a>
Expand Down
2 changes: 1 addition & 1 deletion html/documentation/troubleshooting/AllskyWebsite.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h2>After changing the <span class="WebUISetting">Filename</span> in the WebUI y
the <span class="fileName">configuration.json</span> file (local and/or remote)
via the WebUI's <span class="WebUILink">Editor</span> page.
If that solved your problem, please follow
<a allsky="true" href="reportingIssues.html">these instructions</a> to report a problem.
<a allsky="true" href="reportingProblems.html">these instructions</a> to report a problem.
</p>


Expand Down
2 changes: 1 addition & 1 deletion html/documentation/troubleshooting/ZWOCameras.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h2>ASI_ERROR_TIMEOUT and other 'strange' errors</h2>
If it does, it's likely a hardware issue.
<li>The above changes work for almost everyone.
If they don't work for you, follow the instructions on the
<a allsky="true" external="true" href="reportingIssues.html">Reporting Issues</a>
<a allsky="true" external="true" href="reportingProblems.html">Reporting Problems</a>
page to report the problem.
</ol>

Expand Down
2 changes: 1 addition & 1 deletion html/documentation/troubleshooting/image-flicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2>Daytime only flicker (ZWO cameras)</h2>
<p>
If you are STILL having flicker issues after doing the above,
please follow the instructions on the
<a allsky="true" external="true" href="reportingIssues.html">Reporting Issues</a> page.
<a allsky="true" external="true" href="reportingProblems.html">Reporting Problems</a> page.
</p>

<h2>Nighttime only flicker (ZWO cameras)</h2>
Expand Down
95 changes: 0 additions & 95 deletions html/documentation/troubleshooting/reportingIssues.html

This file was deleted.

148 changes: 148 additions & 0 deletions html/documentation/troubleshooting/reportingProblems.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="../js/documentation.js" type="application/javascript"></script>
<link href="../css/light.css" rel="stylesheet">
<link href="../bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="../bower_components/jquery/dist/jquery.min.js"></script>
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<style>
#pageTitle::before {
content: "Reporting Problems";
}
</style>
<link href="../css/documentation.css" rel="stylesheet">
<link href="../documentation-favicon.ico" rel="shortcut icon" type="image/png">
<script src="../js/all.min.js" type="application/javascript"></script>
<title>Reporting Problems</title>
</head>
<body>
<div w3-include-html="/documentation/pageHeader.html" id="pageHeader"></div>
<div class="Layout">
<div class="Layout-sidebar" w3-include-html="/documentation/sidebar.html" id="sidebar"></div>
<div class="Layout-main markdown-body" id="mainContents">

<p>
Regardless of what you want to ask or report,
first look at the existing GitHub
<a external="true" href="https://github.com/AllskyTeam/allsky/discussions">Discussions</a>
and
<a external="true" href="https://github.com/AllskyTeam/allsky/issues">Issues</a>.
<br>
If someone else has reported it, add to their post; do not create a new one.
</p>
<p>
A <strong>problem</strong> is something that isn't working correctly
<i>and likely is caused by the Allsky Software</i>.
<br>
Misconfigured settings and other user errors are not problems
since the Allsky Software won't need to change.
</p>
<p>
A <strong>bug</strong> is something that isn't working correctly
<i>and you are pretty sure it's caused by the Allsky Software</i>.
</p>

<h2>Reporting something that isn't a problem or bug</h2>
If you have a new item and it's:
<ul>
<li>a <strong>QUESTION</strong>,
<a external="true"
href="https://github.com/AllskyTeam/allsky/discussions/new?category=q-a">
create a GitHub Q&amp;A Discussion
</a>.
<li>a request for a <strong>NEW FEATURE</strong>,
<a external="true"
href=https://github.com/AllskyTeam/allsky/discussions/new?category=new-feature-requests">
create a GitHub feature request
</a>.
<li><strong>anything else that's not a problem or bug</strong>,
<a external="true"
href="https://github.com/AllskyTeam/allsky/discussions/new">
create a GitHub Discussion
</a>.
</ul>


<h2>Reporting problems and bugs</h2>


<h4 id="automatedMethod">The automated method</h4>
<p>
<blockquote>
This is the preferred method to report problems
and should be used if your WebUI is working.
</blockquote>
</p>

<p>Follow the instructions on the WebUI's
<span class="WebUIWebPage"><a external="true" href="/?page=support">Getting Support</a></span>
page.
</p>


<br><br>
<h4 id="manualMethod">The manual method</h4>
<blockquote class="warning">
Only use this method if you are unable to use the automated method above,
for example, if Allsky didn't install or the WebUI isn't working.
</blockquote>

<details><summary></summary>
<p>
<strong>If you can easily reproduce the problem</strong>,
even if it means waiting until tomorrow for it to occur again,
do the following:
<ol>
<li>Run the following command to make sure Allsky will produce
the necessary information to help the Allsky Team troubleshoot your problem:
<pre>allsky-config prepare_logs</pre>
If the command changed the <span class="WebUISetting">Debug Level</span>
you are told what its prior value was so you
can restore it when troubleshooting is over.
<li>Wait until the problem occurs, then follow the steps below.
</ol>
</p>

<p>
Either way:
<ol>
<li>Run the following to create a support log file in
<span class="fileName">~/allsky/html/support</span>:
<pre>cd ~/allsky; ./support.sh</pre>
<li>Create a new
<a external="true" href="https://github.com/AllskyTeam/allsky/discussions/new?category=problems">Problem Discussion</a>
in GitHub and <strong>attach</strong> the support log file to it.
<li>Attach screenshots of any error messages
or copy/paste their text and surround them with three tildas in the Discussion,
for example:
<pre>~~~
ERROR: error message line 1
error message line 2, ...
~~~</pre>
This makes the message format properly.
<li>If there are any other files you think would be helpful,
<strong>attach</strong> those as well
(<strong>do <u>not</u> copy/paste their text</strong>).
<blockquote class="warning">
GitHub only accepts certain file types.
See
<a external="true" href="https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files">this URL</a>
for a list of supported types.
If your file has an unsupported extension,
append a <span class="fileName">.txt</span> to its name, e.g.,
<span class="fileName">settings.json.txt</span>.
</blockquote>
</ol>
</p>
</details>

</div><!-- Layout-main -->
</div><!-- Layout -->
</body>
</html>
<script> includeHTML(); </script>

Loading

0 comments on commit 52cc2a4

Please sign in to comment.