Starting OfBiz at boot

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
38 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Deepak Dixit-3
I think loadAll is also not clear

In case of cleanAll it cleans miscellaneous thing that are not co-related
so it make sense.

Thanks & Regards
--
Deepak Dixit
www.hotwaxsystems.com

On Wed, Apr 19, 2017 at 12:01 PM, Pierre Smits <[hidden email]>
wrote:

> Hi Craig,
>
> You're not complete correct. The ./gradlew cleanAll loadDefault will
>
>    - through the 'cleanAll' command:
>       - delete jars, logs, the derby rdbms, Lucene indexes, etc
>    - through the 'loadDefault' command:
>       - load *all* datasets (seed, seed-extension and all demo data, from
>       all applications/components it can find.
>
> To start with a OFBiz implementation you can work with, but doesn't have
> the demo data of the OFBiz project, you will need to:
>
>    - use a different load command with one or more parameters,
>    - potentially move data from a DemoData.xml file to a SeedData.xml file
>
> See this related issue: https://issues.apache.org/jira/browse/OFBIZ-8229
>
> Best regards,
>
> Pierre Smits
>
> ORRTIZ.COM <http://www.orrtiz.com>
> OFBiz based solutions & services
>
> OFBiz Extensions Marketplace
> http://oem.ofbizci.net/oci-2/
>
> On Wed, Apr 19, 2017 at 2:40 AM, Craig Parker <[hidden email]> wrote:
>
> > ./gradlew cleanAll loadDefault will load some test data. Or is that
> wrong?
> > I'm only thinking so because I saw things in the PRODUCTS table besides
> the
> > item I started creating.
> >
> > Dropping the databases, running and firing OFBiz up again seems to have
> > rebuilt the databases (I thought I'd read somewhere that they'd get
> rebuilt
> > like that), but there's no data. This was the desired effect, but I can't
> > launch the software now. I can post the whole error, or just say that I
> see
> > a lot of "Template location is empty" messages.
> >
> > Is that the right way to start with a clean slate and I missed a step, or
> > is that totally wrong?
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Craig Parker
In reply to this post by taher
I ran ./gradlew cleanAll and dropped the three mysql databases, then
recreated blank dbs and launched with the init.d script I grabbed. Looks
like that is essentially running:

/ofbiz/gradlew ofbiz

So it looks like I missed the "enough data to run but not the sample
data" boat. I do see it in another reply to my initial question though,
just have to go read through them again.

On 04/19/2017 01:19 AM, Taher Alkhateeb wrote:

> Hi Craig,
>
> loadDefault is an alias for "ofbiz --load-data" which by default loads all
> data sets.
>
> cleanAll deletes everything including the database but only if the database
> is derby (embedded). If your database is MySQL or Postgres, then you have
> to clean it up manually.
>
> I'm not sure what command did you use to reach the point of a non-working
> system, but usually ./gradlew cleanAll loadDefault is enough to get your
> system working properly.
>
> On Wed, Apr 19, 2017 at 3:40 AM, Craig Parker <[hidden email]> wrote:
>
>> ./gradlew cleanAll loadDefault will load some test data. Or is that wrong?
>> I'm only thinking so because I saw things in the PRODUCTS table besides the
>> item I started creating.
>>
>> Dropping the databases, running and firing OFBiz up again seems to have
>> rebuilt the databases (I thought I'd read somewhere that they'd get rebuilt
>> like that), but there's no data. This was the desired effect, but I can't
>> launch the software now. I can post the whole error, or just say that I see
>> a lot of "Template location is empty" messages.
>>
>> Is that the right way to start with a clean slate and I missed a step, or
>> is that totally wrong?
>>

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Jacopo Cappellato-5
In reply to this post by Jacopo Cappellato-5
On Wed, Apr 19, 2017 at 9:35 AM, Jacopo Cappellato <
[hidden email]> wrote:

> Hi Craig,
>
> the name loadDefault may be a bit misleading: it actually loads the seed
> data but also testing and demo data (maybe loadAll may be more accurate).
> Anyway, you are probably looking for:
>
> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>
> You will find a description of the various options and their meaning in
> the README.md file section titled "Data loading tasks".
>

And there is one more task you may want to run:

./gradlew loadAdminUserLogin -PuserLoginId=MyUserName

This will create a user with id MyUserName (of course choose the name you
prefer) with password "ofbiz" (the system will ask you to change it after
the first successful login).

Jacopo
Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Jacques Le Roux
Administrator
In reply to this post by taher
Maybe loadAllData ?

And what about stop instead of shutdown. Why shutdown replaced stop?

Jacques


Le 19/04/2017 à 10:12, Taher Alkhateeb a écrit :

> I would suggest "loadData" to keep it consistent with the actual alias
> "--load-data" and in the README.md and task description describe what that
> means.
>
> On Wed, Apr 19, 2017 at 10:57 AM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> +1 for loadAll, clearer indeed
>>
>> I also got trapped by "shutdown" (for ofbizBackground), instead of "stop"
>> we had before.
>>
>> Would you agree (All) to change it too? Not too late right?
>>
>> Jacques
>>
>>
>>
>> Le 19/04/2017 à 09:35, Jacopo Cappellato a écrit :
>>
>>> Hi Craig,
>>>
>>> the name loadDefault may be a bit misleading: it actually loads the seed
>>> data but also testing and demo data (maybe loadAll may be more accurate).
>>> Anyway, you are probably looking for:
>>>
>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>>>
>>> You will find a description of the various options and their meaning in
>>> the
>>> README.md file section titled "Data loading tasks".
>>>
>>> Regards,
>>>
>>> Jacopo
>>>
>>> On Wed, Apr 19, 2017 at 2:40 AM, Craig Parker <[hidden email]>
>>> wrote:
>>>
>>> ./gradlew cleanAll loadDefault will load some test data. Or is that wrong?
>>>> I'm only thinking so because I saw things in the PRODUCTS table besides
>>>> the
>>>> item I started creating.
>>>>
>>>> Dropping the databases, running and firing OFBiz up again seems to have
>>>> rebuilt the databases (I thought I'd read somewhere that they'd get
>>>> rebuilt
>>>> like that), but there's no data. This was the desired effect, but I can't
>>>> launch the software now. I can post the whole error, or just say that I
>>>> see
>>>> a lot of "Template location is empty" messages.
>>>>
>>>> Is that the right way to start with a clean slate and I missed a step, or
>>>> is that totally wrong?
>>>>
>>>>

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Craig Parker
In reply to this post by Jacopo Cappellato-5
So, this (I tried them one at a time to see what happens -- and noticed
stopping and starting ofbiz appears to be necessary):

./gradlew "ofbiz --load-data readers=seed"
./gradlew "ofbiz --load-data readers=seed-initial"
./gradlew loadAdminUserLogin -PuserLoginId=admin

will give me an ofbiz install ready, data-wise, to start using in a
production environment? At this point I'd start keying in products,
vendors, etc ?

Will this:

./gradlew "ofbiz --load-data readers=seed,seed-initial
loadAdminUserLogin -PuserLoginId=admin"

Get it all done in one fell swoop? Readme wasn't clear, to me at least.

I'm still a ways off, and hope to be helping along with docs as I go,
but I'm just trying to find the "you are here" sign.

On 04/19/2017 03:35 AM, Jacopo Cappellato wrote:

> Hi Craig,
>
> the name loadDefault may be a bit misleading: it actually loads the seed
> data but also testing and demo data (maybe loadAll may be more accurate).
> Anyway, you are probably looking for:
>
> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>
> You will find a description of the various options and their meaning in the
> README.md file section titled "Data loading tasks".
>
> Regards,
>
> Jacopo
>
> On Wed, Apr 19, 2017 at 2:40 AM, Craig Parker <[hidden email]> wrote:
>
>> ./gradlew cleanAll loadDefault will load some test data. Or is that wrong?
>> I'm only thinking so because I saw things in the PRODUCTS table besides the
>> item I started creating.
>>
>> Dropping the databases, running and firing OFBiz up again seems to have
>> rebuilt the databases (I thought I'd read somewhere that they'd get rebuilt
>> like that), but there's no data. This was the desired effect, but I can't
>> launch the software now. I can post the whole error, or just say that I see
>> a lot of "Template location is empty" messages.
>>
>> Is that the right way to start with a clean slate and I missed a step, or
>> is that totally wrong?
>>

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

taher
Yup you got the command right

On Apr 20, 2017 5:03 AM, "Craig Parker" <[hidden email]> wrote:

> So, this (I tried them one at a time to see what happens -- and noticed
> stopping and starting ofbiz appears to be necessary):
>
> ./gradlew "ofbiz --load-data readers=seed"
> ./gradlew "ofbiz --load-data readers=seed-initial"
> ./gradlew loadAdminUserLogin -PuserLoginId=admin
>
> will give me an ofbiz install ready, data-wise, to start using in a
> production environment? At this point I'd start keying in products,
> vendors, etc ?
>
> Will this:
>
> ./gradlew "ofbiz --load-data readers=seed,seed-initial loadAdminUserLogin
> -PuserLoginId=admin"
>
> Get it all done in one fell swoop? Readme wasn't clear, to me at least.
>
> I'm still a ways off, and hope to be helping along with docs as I go, but
> I'm just trying to find the "you are here" sign.
>
> On 04/19/2017 03:35 AM, Jacopo Cappellato wrote:
>
>> Hi Craig,
>>
>> the name loadDefault may be a bit misleading: it actually loads the seed
>> data but also testing and demo data (maybe loadAll may be more accurate).
>> Anyway, you are probably looking for:
>>
>> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>>
>> You will find a description of the various options and their meaning in
>> the
>> README.md file section titled "Data loading tasks".
>>
>> Regards,
>>
>> Jacopo
>>
>> On Wed, Apr 19, 2017 at 2:40 AM, Craig Parker <[hidden email]>
>> wrote:
>>
>> ./gradlew cleanAll loadDefault will load some test data. Or is that wrong?
>>> I'm only thinking so because I saw things in the PRODUCTS table besides
>>> the
>>> item I started creating.
>>>
>>> Dropping the databases, running and firing OFBiz up again seems to have
>>> rebuilt the databases (I thought I'd read somewhere that they'd get
>>> rebuilt
>>> like that), but there's no data. This was the desired effect, but I can't
>>> launch the software now. I can post the whole error, or just say that I
>>> see
>>> a lot of "Template location is empty" messages.
>>>
>>> Is that the right way to start with a clean slate and I missed a step, or
>>> is that totally wrong?
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Jacopo Cappellato-5
In reply to this post by Craig Parker
On Thu, Apr 20, 2017 at 4:03 AM, Craig Parker <[hidden email]> wrote:

> So, this (I tried them one at a time to see what happens -- and noticed
> stopping and starting ofbiz appears to be necessary):
>
> ./gradlew "ofbiz --load-data readers=seed"
> ./gradlew "ofbiz --load-data readers=seed-initial"
> ./gradlew loadAdminUserLogin -PuserLoginId=admin
>
> will give me an ofbiz install ready, data-wise, to start using in a
> production environment? At this point I'd start keying in products,
> vendors, etc ?
>
> Will this:
>
> ./gradlew "ofbiz --load-data readers=seed,seed-initial loadAdminUserLogin
> -PuserLoginId=admin"
>

The correct command is:

./gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin
-PuserLoginId=admin

the difference with your version is that the quotes ("") should only wrap
the part:
"ofbiz --load-data readers=seed,seed-initial"


> Get it all done in one fell swoop?


Exactly.


> Readme wasn't clear, to me at least.
>
> I'm still a ways off, and hope to be helping along with docs as I go, but
> I'm just trying to find the "you are here" sign.


Thanks for your effort and feedback; it would be great to get your help
with documentation etc..

Jacopo
Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
Hi All,

Would we agree on loadAllData?

I also would like to replace shutdown by stop (we have start, so stop), agreed?

Jacques


Le 19/04/2017 à 20:49, Jacques Le Roux a écrit :

> Maybe loadAllData ?
>
> And what about stop instead of shutdown. Why shutdown replaced stop?
>
> Jacques
>
>
> Le 19/04/2017 à 10:12, Taher Alkhateeb a écrit :
>> I would suggest "loadData" to keep it consistent with the actual alias
>> "--load-data" and in the README.md and task description describe what that
>> means.
>>
>> On Wed, Apr 19, 2017 at 10:57 AM, Jacques Le Roux <
>> [hidden email]> wrote:
>>
>>> +1 for loadAll, clearer indeed
>>>
>>> I also got trapped by "shutdown" (for ofbizBackground), instead of "stop"
>>> we had before.
>>>
>>> Would you agree (All) to change it too? Not too late right?
>>>
>>> Jacques
>>>
>>>
>>>
>>> Le 19/04/2017 à 09:35, Jacopo Cappellato a écrit :
>>>
>>>> Hi Craig,
>>>>
>>>> the name loadDefault may be a bit misleading: it actually loads the seed
>>>> data but also testing and demo data (maybe loadAll may be more accurate).
>>>> Anyway, you are probably looking for:
>>>>
>>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>>>>
>>>> You will find a description of the various options and their meaning in
>>>> the
>>>> README.md file section titled "Data loading tasks".
>>>>
>>>> Regards,
>>>>
>>>> Jacopo
>>>>
>>>> On Wed, Apr 19, 2017 at 2:40 AM, Craig Parker <[hidden email]>
>>>> wrote:
>>>>
>>>> ./gradlew cleanAll loadDefault will load some test data. Or is that wrong?
>>>>> I'm only thinking so because I saw things in the PRODUCTS table besides
>>>>> the
>>>>> item I started creating.
>>>>>
>>>>> Dropping the databases, running and firing OFBiz up again seems to have
>>>>> rebuilt the databases (I thought I'd read somewhere that they'd get
>>>>> rebuilt
>>>>> like that), but there's no data. This was the desired effect, but I can't
>>>>> launch the software now. I can post the whole error, or just say that I
>>>>> see
>>>>> a lot of "Template location is empty" messages.
>>>>>
>>>>> Is that the right way to start with a clean slate and I missed a step, or
>>>>> is that totally wrong?
>>>>>
>>>>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

taher
I don't think we need to repeat ourselves. The discussion in this thread
already mentioned names to replace loadDefault

As for shutdown, this is again repeating a discussion that was had a while
ago and shows in detail why it was not _replaced_

On Mon, May 8, 2017 at 10:37 AM, Jacques Le Roux <
[hidden email]> wrote:

> Hi All,
>
> Would we agree on loadAllData?
>
> I also would like to replace shutdown by stop (we have start, so stop),
> agreed?
>
> Jacques
>
>
>
> Le 19/04/2017 à 20:49, Jacques Le Roux a écrit :
>
>> Maybe loadAllData ?
>>
>> And what about stop instead of shutdown. Why shutdown replaced stop?
>>
>> Jacques
>>
>>
>> Le 19/04/2017 à 10:12, Taher Alkhateeb a écrit :
>>
>>> I would suggest "loadData" to keep it consistent with the actual alias
>>> "--load-data" and in the README.md and task description describe what
>>> that
>>> means.
>>>
>>> On Wed, Apr 19, 2017 at 10:57 AM, Jacques Le Roux <
>>> [hidden email]> wrote:
>>>
>>> +1 for loadAll, clearer indeed
>>>>
>>>> I also got trapped by "shutdown" (for ofbizBackground), instead of
>>>> "stop"
>>>> we had before.
>>>>
>>>> Would you agree (All) to change it too? Not too late right?
>>>>
>>>> Jacques
>>>>
>>>>
>>>>
>>>> Le 19/04/2017 à 09:35, Jacopo Cappellato a écrit :
>>>>
>>>> Hi Craig,
>>>>>
>>>>> the name loadDefault may be a bit misleading: it actually loads the
>>>>> seed
>>>>> data but also testing and demo data (maybe loadAll may be more
>>>>> accurate).
>>>>> Anyway, you are probably looking for:
>>>>>
>>>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>>>>>
>>>>> You will find a description of the various options and their meaning in
>>>>> the
>>>>> README.md file section titled "Data loading tasks".
>>>>>
>>>>> Regards,
>>>>>
>>>>> Jacopo
>>>>>
>>>>> On Wed, Apr 19, 2017 at 2:40 AM, Craig Parker <[hidden email]>
>>>>> wrote:
>>>>>
>>>>> ./gradlew cleanAll loadDefault will load some test data. Or is that
>>>>> wrong?
>>>>>
>>>>>> I'm only thinking so because I saw things in the PRODUCTS table
>>>>>> besides
>>>>>> the
>>>>>> item I started creating.
>>>>>>
>>>>>> Dropping the databases, running and firing OFBiz up again seems to
>>>>>> have
>>>>>> rebuilt the databases (I thought I'd read somewhere that they'd get
>>>>>> rebuilt
>>>>>> like that), but there's no data. This was the desired effect, but I
>>>>>> can't
>>>>>> launch the software now. I can post the whole error, or just say that
>>>>>> I
>>>>>> see
>>>>>> a lot of "Template location is empty" messages.
>>>>>>
>>>>>> Is that the right way to start with a clean slate and I missed a
>>>>>> step, or
>>>>>> is that totally wrong?
>>>>>>
>>>>>>
>>>>>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Jacques Le Roux
Administrator
Le 08/05/2017 à 10:20, Taher Alkhateeb a écrit :
> I don't think we need to repeat ourselves. The discussion in this thread
> already mentioned names to replace loadDefault

So I understand that loadAllData, which is quite clear, is OK to replace loadDefault

> As for shutdown, this is again repeating a discussion that was had a while
> ago and shows in detail why it was not _replaced_
Please do you have a reference I can't find nor remember an explanation :/
Maybe few words again would be easier?

Jacques

>
> On Mon, May 8, 2017 at 10:37 AM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> Hi All,
>>
>> Would we agree on loadAllData?
>>
>> I also would like to replace shutdown by stop (we have start, so stop),
>> agreed?
>>
>> Jacques
>>
>>
>>
>> Le 19/04/2017 à 20:49, Jacques Le Roux a écrit :
>>
>>> Maybe loadAllData ?
>>>
>>> And what about stop instead of shutdown. Why shutdown replaced stop?
>>>
>>> Jacques
>>>
>>>
>>> Le 19/04/2017 à 10:12, Taher Alkhateeb a écrit :
>>>
>>>> I would suggest "loadData" to keep it consistent with the actual alias
>>>> "--load-data" and in the README.md and task description describe what
>>>> that
>>>> means.
>>>>
>>>> On Wed, Apr 19, 2017 at 10:57 AM, Jacques Le Roux <
>>>> [hidden email]> wrote:
>>>>
>>>> +1 for loadAll, clearer indeed
>>>>> I also got trapped by "shutdown" (for ofbizBackground), instead of
>>>>> "stop"
>>>>> we had before.
>>>>>
>>>>> Would you agree (All) to change it too? Not too late right?
>>>>>
>>>>> Jacques
>>>>>
>>>>>
>>>>>
>>>>> Le 19/04/2017 à 09:35, Jacopo Cappellato a écrit :
>>>>>
>>>>> Hi Craig,
>>>>>> the name loadDefault may be a bit misleading: it actually loads the
>>>>>> seed
>>>>>> data but also testing and demo data (maybe loadAll may be more
>>>>>> accurate).
>>>>>> Anyway, you are probably looking for:
>>>>>>
>>>>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>>>>>>
>>>>>> You will find a description of the various options and their meaning in
>>>>>> the
>>>>>> README.md file section titled "Data loading tasks".
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Jacopo
>>>>>>
>>>>>> On Wed, Apr 19, 2017 at 2:40 AM, Craig Parker <[hidden email]>
>>>>>> wrote:
>>>>>>
>>>>>> ./gradlew cleanAll loadDefault will load some test data. Or is that
>>>>>> wrong?
>>>>>>
>>>>>>> I'm only thinking so because I saw things in the PRODUCTS table
>>>>>>> besides
>>>>>>> the
>>>>>>> item I started creating.
>>>>>>>
>>>>>>> Dropping the databases, running and firing OFBiz up again seems to
>>>>>>> have
>>>>>>> rebuilt the databases (I thought I'd read somewhere that they'd get
>>>>>>> rebuilt
>>>>>>> like that), but there's no data. This was the desired effect, but I
>>>>>>> can't
>>>>>>> launch the software now. I can post the whole error, or just say that
>>>>>>> I
>>>>>>> see
>>>>>>> a lot of "Template location is empty" messages.
>>>>>>>
>>>>>>> Is that the right way to start with a clean slate and I missed a
>>>>>>> step, or
>>>>>>> is that totally wrong?
>>>>>>>
>>>>>>>
>>>>>>>
>>>

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

taher
inline

On Mon, May 8, 2017 at 12:42 PM, Jacques Le Roux <
[hidden email]> wrote:

> Le 08/05/2017 à 10:20, Taher Alkhateeb a écrit :
>
>> I don't think we need to repeat ourselves. The discussion in this thread
>> already mentioned names to replace loadDefault
>>
>
> So I understand that loadAllData, which is quite clear, is OK to replace
> loadDefault
>

The only one who proposed loadAllData is you


> As for shutdown, this is again repeating a discussion that was had a while
>> ago and shows in detail why it was not _replaced_
>>
> Please do you have a reference I can't find nor remember an explanation :/
> Maybe few words again would be easier?
>

"shutdown" is a server command (probably since the beginning of the
project), "stop" was an ant target. We discussed in the ML and JIRA
multiple times that we should reduce the amount of tasks to a minimum and
instead let users control the system directly by issuing server commands.
The server commands are --start --shutdown --load-data --test --portoffset
and --help

I don't have a problem in renaming --shutdown to --stop as a server
command. The problem is in adding new shortcut tasks in gradle because you
then lose the flexibility of issuing commands to OFBiz. The only shortcut
commands that exist are loadDefault and testIntegration because we have to
run them every time before making a commit "gradlew cleanAll loadDefault
testIntegration". Beyond that, we're just repeating ourselves needlessly
and confusing users. One example where we lose value is in debugging. For
example, take the following variations:

./gradlew "ofbiz --test"
./gradlew "ofbizDebug --test"
./gradlew "ofbiz --shutdown"
./gradlew "ofbizDebug --shutdown"

As you can can see, giving the user flexibility in debugging whatever
command she issues is an advantage. If users, however, are not familiar
with the server commands and they rely on the shortcut commands, then they
lose the above mentioned advantage.


>
> Jacques
>
>
>> On Mon, May 8, 2017 at 10:37 AM, Jacques Le Roux <
>> [hidden email]> wrote:
>>
>> Hi All,
>>>
>>> Would we agree on loadAllData?
>>>
>>> I also would like to replace shutdown by stop (we have start, so stop),
>>> agreed?
>>>
>>> Jacques
>>>
>>>
>>>
>>> Le 19/04/2017 à 20:49, Jacques Le Roux a écrit :
>>>
>>> Maybe loadAllData ?
>>>>
>>>> And what about stop instead of shutdown. Why shutdown replaced stop?
>>>>
>>>> Jacques
>>>>
>>>>
>>>> Le 19/04/2017 à 10:12, Taher Alkhateeb a écrit :
>>>>
>>>> I would suggest "loadData" to keep it consistent with the actual alias
>>>>> "--load-data" and in the README.md and task description describe what
>>>>> that
>>>>> means.
>>>>>
>>>>> On Wed, Apr 19, 2017 at 10:57 AM, Jacques Le Roux <
>>>>> [hidden email]> wrote:
>>>>>
>>>>> +1 for loadAll, clearer indeed
>>>>>
>>>>>> I also got trapped by "shutdown" (for ofbizBackground), instead of
>>>>>> "stop"
>>>>>> we had before.
>>>>>>
>>>>>> Would you agree (All) to change it too? Not too late right?
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>>
>>>>>>
>>>>>> Le 19/04/2017 à 09:35, Jacopo Cappellato a écrit :
>>>>>>
>>>>>> Hi Craig,
>>>>>>
>>>>>>> the name loadDefault may be a bit misleading: it actually loads the
>>>>>>> seed
>>>>>>> data but also testing and demo data (maybe loadAll may be more
>>>>>>> accurate).
>>>>>>> Anyway, you are probably looking for:
>>>>>>>
>>>>>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>>>>>>>
>>>>>>> You will find a description of the various options and their meaning
>>>>>>> in
>>>>>>> the
>>>>>>> README.md file section titled "Data loading tasks".
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Jacopo
>>>>>>>
>>>>>>> On Wed, Apr 19, 2017 at 2:40 AM, Craig Parker <[hidden email]>
>>>>>>> wrote:
>>>>>>>
>>>>>>> ./gradlew cleanAll loadDefault will load some test data. Or is that
>>>>>>> wrong?
>>>>>>>
>>>>>>> I'm only thinking so because I saw things in the PRODUCTS table
>>>>>>>> besides
>>>>>>>> the
>>>>>>>> item I started creating.
>>>>>>>>
>>>>>>>> Dropping the databases, running and firing OFBiz up again seems to
>>>>>>>> have
>>>>>>>> rebuilt the databases (I thought I'd read somewhere that they'd get
>>>>>>>> rebuilt
>>>>>>>> like that), but there's no data. This was the desired effect, but I
>>>>>>>> can't
>>>>>>>> launch the software now. I can post the whole error, or just say
>>>>>>>> that
>>>>>>>> I
>>>>>>>> see
>>>>>>>> a lot of "Template location is empty" messages.
>>>>>>>>
>>>>>>>> Is that the right way to start with a clean slate and I missed a
>>>>>>>> step, or
>>>>>>>> is that totally wrong?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Jacques Le Roux
Administrator
Le 08/05/2017 à 12:16, Taher Alkhateeb a écrit :

> inline
>
> On Mon, May 8, 2017 at 12:42 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> Le 08/05/2017 à 10:20, Taher Alkhateeb a écrit :
>>
>>> I don't think we need to repeat ourselves. The discussion in this thread
>>> already mentioned names to replace loadDefault
>>>
>> So I understand that loadAllData, which is quite clear, is OK to replace
>> loadDefault
>>
> The only one who proposed loadAllData is you

I'll propose an user vote (more a survey, it's a trivial change) on each proposed names

>
>> As for shutdown, this is again repeating a discussion that was had a while
>>> ago and shows in detail why it was not _replaced_
>>>
>> Please do you have a reference I can't find nor remember an explanation :/
>> Maybe few words again would be easier?
>>
> "shutdown" is a server command (probably since the beginning of the
> project), "stop" was an ant target. We discussed in the ML and JIRA
> multiple times that we should reduce the amount of tasks to a minimum and
> instead let users control the system directly by issuing server commands.
> The server commands are --start --shutdown --load-data --test --portoffset
> and --help
>
> I don't have a problem in renaming --shutdown to --stop as a server
> command.

That's only what I suggest

Thanks for your explanation

Jacques

> The problem is in adding new shortcut tasks in gradle because you
> then lose the flexibility of issuing commands to OFBiz. The only shortcut
> commands that exist are loadDefault and testIntegration because we have to
> run them every time before making a commit "gradlew cleanAll loadDefault
> testIntegration". Beyond that, we're just repeating ourselves needlessly
> and confusing users. One example where we lose value is in debugging. For
> example, take the following variations:
>
> ./gradlew "ofbiz --test"
> ./gradlew "ofbizDebug --test"
> ./gradlew "ofbiz --shutdown"
> ./gradlew "ofbizDebug --shutdown"
>
> As you can can see, giving the user flexibility in debugging whatever
> command she issues is an advantage. If users, however, are not familiar
> with the server commands and they rely on the shortcut commands, then they
> lose the above mentioned advantage.
>
>
>> Jacques
>>
>>
>>> On Mon, May 8, 2017 at 10:37 AM, Jacques Le Roux <
>>> [hidden email]> wrote:
>>>
>>> Hi All,
>>>> Would we agree on loadAllData?
>>>>
>>>> I also would like to replace shutdown by stop (we have start, so stop),
>>>> agreed?
>>>>
>>>> Jacques
>>>>
>>>>
>>>>
>>>> Le 19/04/2017 à 20:49, Jacques Le Roux a écrit :
>>>>
>>>> Maybe loadAllData ?
>>>>> And what about stop instead of shutdown. Why shutdown replaced stop?
>>>>>
>>>>> Jacques
>>>>>
>>>>>
>>>>> Le 19/04/2017 à 10:12, Taher Alkhateeb a écrit :
>>>>>
>>>>> I would suggest "loadData" to keep it consistent with the actual alias
>>>>>> "--load-data" and in the README.md and task description describe what
>>>>>> that
>>>>>> means.
>>>>>>
>>>>>> On Wed, Apr 19, 2017 at 10:57 AM, Jacques Le Roux <
>>>>>> [hidden email]> wrote:
>>>>>>
>>>>>> +1 for loadAll, clearer indeed
>>>>>>
>>>>>>> I also got trapped by "shutdown" (for ofbizBackground), instead of
>>>>>>> "stop"
>>>>>>> we had before.
>>>>>>>
>>>>>>> Would you agree (All) to change it too? Not too late right?
>>>>>>>
>>>>>>> Jacques
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Le 19/04/2017 à 09:35, Jacopo Cappellato a écrit :
>>>>>>>
>>>>>>> Hi Craig,
>>>>>>>
>>>>>>>> the name loadDefault may be a bit misleading: it actually loads the
>>>>>>>> seed
>>>>>>>> data but also testing and demo data (maybe loadAll may be more
>>>>>>>> accurate).
>>>>>>>> Anyway, you are probably looking for:
>>>>>>>>
>>>>>>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>>>>>>>>
>>>>>>>> You will find a description of the various options and their meaning
>>>>>>>> in
>>>>>>>> the
>>>>>>>> README.md file section titled "Data loading tasks".
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>>
>>>>>>>> Jacopo
>>>>>>>>
>>>>>>>> On Wed, Apr 19, 2017 at 2:40 AM, Craig Parker<[hidden email]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> ./gradlew cleanAll loadDefault will load some test data. Or is that
>>>>>>>> wrong?
>>>>>>>>
>>>>>>>> I'm only thinking so because I saw things in the PRODUCTS table
>>>>>>>>> besides
>>>>>>>>> the
>>>>>>>>> item I started creating.
>>>>>>>>>
>>>>>>>>> Dropping the databases, running and firing OFBiz up again seems to
>>>>>>>>> have
>>>>>>>>> rebuilt the databases (I thought I'd read somewhere that they'd get
>>>>>>>>> rebuilt
>>>>>>>>> like that), but there's no data. This was the desired effect, but I
>>>>>>>>> can't
>>>>>>>>> launch the software now. I can post the whole error, or just say
>>>>>>>>> that
>>>>>>>>> I
>>>>>>>>> see
>>>>>>>>> a lot of "Template location is empty" messages.
>>>>>>>>>
>>>>>>>>> Is that the right way to start with a clean slate and I missed a
>>>>>>>>> step, or
>>>>>>>>> is that totally wrong?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Craig Parker
In reply to this post by Jacopo Cappellato-5
Did things change in the newest release? I'm running (per the discussion
back in April):

./gradlew "ofbiz --load-data readers=seed,seed-initial"
loadAdminUserLogin -PuserLoginId=admin

and getting errors. And it's unrelated, probably, but I'm curious as to
why gradle isn't using the openjava I've got installed. All my symlinks
(/usr/bin/java*, etc) are pointing to openjava's binaries, not Oracle's.

15:17:18.024 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :ofbiz
‐‐load-data readers=seed,seed-initial FAILED
15:17:18.024 [INFO]
[org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :ofbiz
‐‐load-data readers=seed,seed-initial (Thread[main,5,main]) completed.
Took 0.268 secs.
15:17:18.024 [DEBUG]
[org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker
[Thread[main,5,main]] finished, busy: 6.219 secs, idle: 0.003 secs
15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter]
15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build
failed with an exception.
15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter]
15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] Execution
failed for task ':ofbiz ‐‐load-data readers=seed,seed-initial'.
15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] > Process
'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero
exit value 1
15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter]
15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] Run with
--stacktrace option to get the stack trace.
15:17:18.043 [LIFECYCLE] [org.gradle.BuildResultLogger]
15:17:18.043 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED


On 04/20/2017 03:16 AM, Jacopo Cappellato wrote:

> On Thu, Apr 20, 2017 at 4:03 AM, Craig Parker <[hidden email]> wrote:
>
>> So, this (I tried them one at a time to see what happens -- and noticed
>> stopping and starting ofbiz appears to be necessary):
>>
>> ./gradlew "ofbiz --load-data readers=seed"
>> ./gradlew "ofbiz --load-data readers=seed-initial"
>> ./gradlew loadAdminUserLogin -PuserLoginId=admin
>>
>> will give me an ofbiz install ready, data-wise, to start using in a
>> production environment? At this point I'd start keying in products,
>> vendors, etc ?
>>
>> Will this:
>>
>> ./gradlew "ofbiz --load-data readers=seed,seed-initial loadAdminUserLogin
>> -PuserLoginId=admin"
>>
> The correct command is:
>
> ./gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin
> -PuserLoginId=admin
>
> the difference with your version is that the quotes ("") should only wrap
> the part:
> "ofbiz --load-data readers=seed,seed-initial"
>
>
>> Get it all done in one fell swoop?
>
> Exactly.
>
>
>> Readme wasn't clear, to me at least.
>>
>> I'm still a ways off, and hope to be helping along with docs as I go, but
>> I'm just trying to find the "you are here" sign.
>
> Thanks for your effort and feedback; it would be great to get your help
> with documentation etc..
>
> Jacopo
>

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Jacques Le Roux
Administrator
Hi Craig,

It still works here on Windows using

/gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin /

and running with

/java version "1.8.0_151"//
//Java(TM) SE Runtime Environment (build 1.8.0_151-b12)//
//Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)/

Jacques


Le 22/11/2017 à 21:22, Craig Parker a écrit :

> Did things change in the newest release? I'm running (per the discussion back in April):
>
> ./gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin
>
> and getting errors. And it's unrelated, probably, but I'm curious as to why gradle isn't using the openjava I've got installed. All my symlinks
> (/usr/bin/java*, etc) are pointing to openjava's binaries, not Oracle's.
>
> 15:17:18.024 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :ofbiz ‐‐load-data readers=seed,seed-initial FAILED
> 15:17:18.024 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :ofbiz ‐‐load-data readers=seed,seed-initial (Thread[main,5,main])
> completed. Took 0.268 secs.
> 15:17:18.024 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 6.219 secs, idle:
> 0.003 secs
> 15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter]
> 15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
> 15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter]
> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':ofbiz ‐‐load-data readers=seed,seed-initial'.
> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] > Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter]
> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
> 15:17:18.043 [LIFECYCLE] [org.gradle.BuildResultLogger]
> 15:17:18.043 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
>
>
> On 04/20/2017 03:16 AM, Jacopo Cappellato wrote:
>> On Thu, Apr 20, 2017 at 4:03 AM, Craig Parker <[hidden email]> wrote:
>>
>>> So, this (I tried them one at a time to see what happens -- and noticed
>>> stopping and starting ofbiz appears to be necessary):
>>>
>>> ./gradlew "ofbiz --load-data readers=seed"
>>> ./gradlew "ofbiz --load-data readers=seed-initial"
>>> ./gradlew loadAdminUserLogin -PuserLoginId=admin
>>>
>>> will give me an ofbiz install ready, data-wise, to start using in a
>>> production environment? At this point I'd start keying in products,
>>> vendors, etc ?
>>>
>>> Will this:
>>>
>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial loadAdminUserLogin
>>> -PuserLoginId=admin"
>>>
>> The correct command is:
>>
>> ./gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin
>> -PuserLoginId=admin
>>
>> the difference with your version is that the quotes ("") should only wrap
>> the part:
>> "ofbiz --load-data readers=seed,seed-initial"
>>
>>
>>> Get it all done in one fell swoop?
>>
>> Exactly.
>>
>>
>>> Readme wasn't clear, to me at least.
>>>
>>> I'm still a ways off, and hope to be helping along with docs as I go, but
>>> I'm just trying to find the "you are here" sign.
>>
>> Thanks for your effort and feedback; it would be great to get your help
>> with documentation etc..
>>
>> Jacopo
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Craig Parker
Something's weird then. I'm sitting down at this again, with a blank
ubuntu server (16.04) and watching

./gradlew cleanAll loadDefault

run fine. All of my attempts running this:

./gradlew "ofbiz ‐‐load-data readers=seed,seed-initial"
loadAdminUserLogin -PuserLoginId=admin

failed miserably though. You (Jacques) have a trailing forward slash in
your command. Is that a typo, or a Windows thing?

Other than dropping the databases, is there a cache anywhere I've got to
wipe out when trying the seed data load again? I've got to wait until
this default one is finished before I can post any stack traces, but in
the meantime wanted all my ducks in a row to get rid of this default
data completely.


On 11/23/2017 02:50 AM, Jacques Le Roux wrote:

> Hi Craig,
>
> It still works here on Windows using
>
> /gradlew "ofbiz --load-data readers=seed,seed-initial"
> loadAdminUserLogin -PuserLoginId=admin /
>
> and running with
>
> /java version "1.8.0_151"//
> //Java(TM) SE Runtime Environment (build 1.8.0_151-b12)//
> //Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)/
>
> Jacques
>
>
> Le 22/11/2017 à 21:22, Craig Parker a écrit :
>> Did things change in the newest release? I'm running (per the
>> discussion back in April):
>>
>> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>> loadAdminUserLogin -PuserLoginId=admin
>>
>> and getting errors. And it's unrelated, probably, but I'm curious as
>> to why gradle isn't using the openjava I've got installed. All my
>> symlinks (/usr/bin/java*, etc) are pointing to openjava's binaries,
>> not Oracle's.
>>
>> 15:17:18.024 [LIFECYCLE] [class org.gradle.TaskExecutionLogger]
>> :ofbiz ‐‐load-data readers=seed,seed-initial FAILED
>> 15:17:18.024 [INFO]
>> [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :ofbiz
>> ‐‐load-data readers=seed,seed-initial (Thread[main,5,main])
>> completed. Took 0.268 secs.
>> 15:17:18.024 [DEBUG]
>> [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker
>> [Thread[main,5,main]] finished, busy: 6.219 secs, idle: 0.003 secs
>> 15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter]
>> 15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE:
>> Build failed with an exception.
>> 15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter]
>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] * What went
>> wrong:
>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] Execution
>> failed for task ':ofbiz ‐‐load-data readers=seed,seed-initial'.
>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] > Process
>> 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with
>> non-zero exit value 1
>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter]
>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] Run with
>> --stacktrace option to get the stack trace.
>> 15:17:18.043 [LIFECYCLE] [org.gradle.BuildResultLogger]
>> 15:17:18.043 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
>>
>>
>> On 04/20/2017 03:16 AM, Jacopo Cappellato wrote:
>>> On Thu, Apr 20, 2017 at 4:03 AM, Craig Parker <[hidden email]>
>>> wrote:
>>>
>>>> So, this (I tried them one at a time to see what happens -- and
>>>> noticed
>>>> stopping and starting ofbiz appears to be necessary):
>>>>
>>>> ./gradlew "ofbiz --load-data readers=seed"
>>>> ./gradlew "ofbiz --load-data readers=seed-initial"
>>>> ./gradlew loadAdminUserLogin -PuserLoginId=admin
>>>>
>>>> will give me an ofbiz install ready, data-wise, to start using in a
>>>> production environment? At this point I'd start keying in products,
>>>> vendors, etc ?
>>>>
>>>> Will this:
>>>>
>>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial
>>>> loadAdminUserLogin
>>>> -PuserLoginId=admin"
>>>>
>>> The correct command is:
>>>
>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial"
>>> loadAdminUserLogin
>>> -PuserLoginId=admin
>>>
>>> the difference with your version is that the quotes ("") should only
>>> wrap
>>> the part:
>>> "ofbiz --load-data readers=seed,seed-initial"
>>>
>>>
>>>> Get it all done in one fell swoop?
>>>
>>> Exactly.
>>>
>>>
>>>> Readme wasn't clear, to me at least.
>>>>
>>>> I'm still a ways off, and hope to be helping along with docs as I
>>>> go, but
>>>> I'm just trying to find the "you are here" sign.
>>>
>>> Thanks for your effort and feedback; it would be great to get your help
>>> with documentation etc..
>>>
>>> Jacopo
>>>
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Jacques Le Roux
Administrator
Le 13/12/2017 à 21:51, Craig Parker a écrit :
> Something's weird then. I'm sitting down at this again, with a blank ubuntu server (16.04) and watching
>
> ./gradlew cleanAll loadDefault
>
> run fine. All of my attempts running this:
>
> ./gradlew "ofbiz ‐‐load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin
I suspect you are not using dash but another char which look like dash
Check http://markmail.org/message/wruaowwegfr47bky

>
> failed miserably though. You (Jacques) have a trailing forward slash in your command. Is that a typo, or a Windows thing?
No it's actually
gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin
and this was a Thunderbird thing

HTH

Jacques

>
> Other than dropping the databases, is there a cache anywhere I've got to wipe out when trying the seed data load again? I've got to wait until this
> default one is finished before I can post any stack traces, but in the meantime wanted all my ducks in a row to get rid of this default data
> completely.
>
>
> On 11/23/2017 02:50 AM, Jacques Le Roux wrote:
>> Hi Craig,
>>
>> It still works here on Windows using
>>
>> /gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin /
>>
>> and running with
>>
>> /java version "1.8.0_151"//
>> //Java(TM) SE Runtime Environment (build 1.8.0_151-b12)//
>> //Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)/
>>
>> Jacques
>>
>>
>> Le 22/11/2017 à 21:22, Craig Parker a écrit :
>>> Did things change in the newest release? I'm running (per the discussion back in April):
>>>
>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin
>>>
>>> and getting errors. And it's unrelated, probably, but I'm curious as to why gradle isn't using the openjava I've got installed. All my symlinks
>>> (/usr/bin/java*, etc) are pointing to openjava's binaries, not Oracle's.
>>>
>>> 15:17:18.024 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :ofbiz ‐‐load-data readers=seed,seed-initial FAILED
>>> 15:17:18.024 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :ofbiz ‐‐load-data readers=seed,seed-initial (Thread[main,5,main])
>>> completed. Took 0.268 secs.
>>> 15:17:18.024 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 6.219 secs, idle:
>>> 0.003 secs
>>> 15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter]
>>> 15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
>>> 15:17:18.040 [ERROR] [org.gradle.BuildExceptionReporter]
>>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
>>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':ofbiz ‐‐load-data readers=seed,seed-initial'.
>>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] > Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit
>>> value 1
>>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter]
>>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
>>> 15:17:18.042 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
>>> 15:17:18.043 [LIFECYCLE] [org.gradle.BuildResultLogger]
>>> 15:17:18.043 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
>>>
>>>
>>> On 04/20/2017 03:16 AM, Jacopo Cappellato wrote:
>>>> On Thu, Apr 20, 2017 at 4:03 AM, Craig Parker <[hidden email]> wrote:
>>>>
>>>>> So, this (I tried them one at a time to see what happens -- and noticed
>>>>> stopping and starting ofbiz appears to be necessary):
>>>>>
>>>>> ./gradlew "ofbiz --load-data readers=seed"
>>>>> ./gradlew "ofbiz --load-data readers=seed-initial"
>>>>> ./gradlew loadAdminUserLogin -PuserLoginId=admin
>>>>>
>>>>> will give me an ofbiz install ready, data-wise, to start using in a
>>>>> production environment? At this point I'd start keying in products,
>>>>> vendors, etc ?
>>>>>
>>>>> Will this:
>>>>>
>>>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial loadAdminUserLogin
>>>>> -PuserLoginId=admin"
>>>>>
>>>> The correct command is:
>>>>
>>>> ./gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin
>>>> -PuserLoginId=admin
>>>>
>>>> the difference with your version is that the quotes ("") should only wrap
>>>> the part:
>>>> "ofbiz --load-data readers=seed,seed-initial"
>>>>
>>>>
>>>>> Get it all done in one fell swoop?
>>>>
>>>> Exactly.
>>>>
>>>>
>>>>> Readme wasn't clear, to me at least.
>>>>>
>>>>> I'm still a ways off, and hope to be helping along with docs as I go, but
>>>>> I'm just trying to find the "you are here" sign.
>>>>
>>>> Thanks for your effort and feedback; it would be great to get your help
>>>> with documentation etc..
>>>>
>>>> Jacopo
>>>>
>>>
>>>
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Craig Parker
./gradlew "ofbiz ‐‐load-data readers=seed,seed-initial"
loadAdminUserLogin -PuserLoginId=admin\

That's pasted from Geany. I'm throwing another clean OFBiz on my laptop
-- I'll try again there. This other one appears to be running fine now.


On 12/13/2017 06:04 PM, Jacques Le Roux wrote:
> gradlew "ofbiz --load-data readers=seed,seed-initial"
> loadAdminUserLogin -PuserLoginId=admin

Reply | Threaded
Open this post in threaded view
|

Re: Clean Slate

Jacques Le Roux
Administrator
I already documented an issue with Word at https://cwiki.apache.org/confluence/display/OFBENDUSER/How+to+Install+OFBiz+without+the+Demo+Data

I have now completed with other possible cases.

I have also documented this possible issue at https://cwiki.apache.org/confluence/display/OFBIZ/From+Ant+to+Gradle+-+trunk+version

Jacques


Le 14/12/2017 à 00:48, Craig Parker a écrit :
> ./gradlew "ofbiz ‐‐load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin\
>
> That's pasted from Geany. I'm throwing another clean OFBiz on my laptop -- I'll try again there. This other one appears to be running fine now.
>
>
> On 12/13/2017 06:04 PM, Jacques Le Roux wrote:
>> gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin
>
>

12