<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:15:35 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Jira</title>
    <link>https://jira.astppbilling.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.13.3</version>
        <build-number>813003</build-number>
        <build-date>14-01-2021</build-date>
    </build-info>


<item>
            <title>[ASTPPCOM-261] Crontab entries missing user which makes cron stop working entirely</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-261</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;The crontab entries are added without a user name which causes&lt;br/&gt;
cron&lt;span class=&quot;error&quot;&gt;&amp;#91;510&amp;#93;&lt;/span&gt;: Error: bad username; while reading /etc/crontab&lt;br/&gt;
cron&lt;span class=&quot;error&quot;&gt;&amp;#91;510&amp;#93;&lt;/span&gt;: (&lt;em&gt;system&lt;/em&gt;) ERROR (Syntax error, this crontab file will be ignored)&lt;br/&gt;
in syslog.  This explains why my cron.hourly hasn&apos;t been running.&lt;/p&gt;

&lt;p&gt;Inserting a valid user (like root - NOT recommended for production) between the &lt;tt&gt;_ _ *&lt;/tt&gt; and the &lt;tt&gt;cd&lt;/tt&gt; makes it work&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-bash&quot;&gt;
&lt;span class=&quot;code-comment&quot;&gt;# Generate Invoice
&lt;/span&gt;0 1 * * * root cd /var/www/html/astpp/cron/ &amp;amp;&amp;amp; php cron.php GenerateInvoice
&lt;span class=&quot;code-comment&quot;&gt;# Low balance notification
&lt;/span&gt;0 1 * * * root cd /var/www/html/astpp/cron/ &amp;amp;&amp;amp; php cron.php UpdateBalance
&lt;span class=&quot;code-comment&quot;&gt;# Low balance notification
&lt;/span&gt;0 0 * * * root cd /var/www/html/astpp/cron/ &amp;amp;&amp;amp; php cron.php LowBalance
&lt;span class=&quot;code-comment&quot;&gt;# Update currency rate
&lt;/span&gt;0 0 * * * root cd /var/www/html/astpp/cron/ &amp;amp;&amp;amp; php cron.php CurrencyUpdate
&lt;span class=&quot;code-comment&quot;&gt;# Email Broadcasting
&lt;/span&gt;0 0 * * * root cd /var/www/html/astpp/cron/ &amp;amp;&amp;amp; php cron.php BroadcastEmail
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="12081">ASTPPCOM-261</key>
            <summary>Crontab entries missing user which makes cron stop working entirely</summary>
                <type id="10201" iconUrl="https://jira.astppbilling.org/secure/viewavatar?size=xsmall&amp;avatarId=10700&amp;avatarType=issuetype">New Feature</type>
                                                <status id="10001" iconUrl="https://jira.astppbilling.org/images/icons/status_generic.gif" description="">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="samir.doshi">Samir Doshi</assignee>
                                    <reporter username="alexheylin">alexheylin</reporter>
                        <labels>
                    </labels>
                <created>Sat, 11 Nov 2017 09:52:31 +0530</created>
                <updated>Thu, 1 Apr 2021 19:01:00 +0530</updated>
                            <resolved>Thu, 1 Apr 2021 19:01:00 +0530</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="13066" author="ketan-kothari" created="Thu, 28 Dec 2017 15:02:50 +0530"  >&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;~AlexHeylin&amp;#93;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;You can setup astpp script in cron like below which is already in installation script. Also that is working fine on centos/debian.&lt;/p&gt;

&lt;p&gt;setup_cron()&lt;br/&gt;
{&lt;br/&gt;
		if [ ${DIST} = &quot;DEBIAN&quot; ]; then&lt;br/&gt;
			CRONPATH=&apos;/var/spool/cron/crontabs/astpp&apos;&lt;br/&gt;
		elif [ ${DIST} = &quot;CENTOS&quot; ]; then&lt;br/&gt;
			CRONPATH=&apos;/var/spool/cron/astpp&apos;&lt;br/&gt;
		fi&lt;br/&gt;
		echo &quot;# Generate Invoice   &lt;br/&gt;
		0 1 _ _ * cd /var/www/html/astpp/cron/ &amp;amp;&amp;amp; php cron.php GenerateInvoice&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Low balance notification&lt;br/&gt;
		0 1 _ _ * cd /var/www/html/astpp/cron/ &amp;amp;&amp;amp; php cron.php UpdateBalance&lt;/li&gt;
	&lt;li&gt;Low balance notification&lt;br/&gt;
		0 0 _ _ * cd /var/www/html/astpp/cron/ &amp;amp;&amp;amp; php cron.php LowBalance		&lt;/li&gt;
	&lt;li&gt;Update currency rate&lt;br/&gt;
		0 0 _ _ * cd /var/www/html/astpp/cron/ &amp;amp;&amp;amp; php cron.php CurrencyUpdate&lt;/li&gt;
	&lt;li&gt;Email Broadcasting&lt;br/&gt;
		_ _ _ _ * cd /var/www/html/astpp/cron/ &amp;amp;&amp;amp; php cron.php BroadcastEmail&lt;br/&gt;
		&quot; &amp;gt; $CRONPATH&lt;br/&gt;
		chmod 600 $CRONPATH&lt;br/&gt;
		crontab $CRONPATH&lt;br/&gt;
}&lt;br/&gt;
Still if you are getting any issue then you need to look in cron configuration on your server.&lt;/li&gt;
&lt;/ol&gt;
</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10703" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>261</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10006" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i00a8v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>