You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Craig Parker <cr...@fossfolks.com> on 2017/12/13 20:51:11 UTC

Re: Clean Slate

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 <cr...@fossfolks.com> 
>>> 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
>>>
>>
>>
>
>


Re: Clean Slate

Posted by Jacques Le Roux <ja...@les7arts.com>.
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
>
>


Re: Clean Slate

Posted by Craig Parker <cr...@fossfolks.com>.
./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


Re: Clean Slate

Posted by Jacques Le Roux <ja...@les7arts.com>.
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 <cr...@fossfolks.com> 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
>>>>
>>>
>>>
>>
>>
>
>