# SMOKE-MOVES-communication failure

**URL:** <https://forum.cmascenter.org/t/smoke-moves-communication-failure/1469>\
**Category:** SMOKE\
**Created:** [May 2, 2020, 9:18pm UTC](https://forum.cmascenter.org/t/smoke-moves-communication-failure/1469 "2020-05-02T21:18:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![abi0010](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@abi0010](https://forum.cmascenter.org/u/abi0010)\
**Post date:** [May 2, 2020, 9:18pm UTC](https://forum.cmascenter.org/t/smoke-moves-communication-failure/1469/1 "2020-05-02T21:18:21Z")

</div>

I’ve installed MOVES using instructions from GitHub. I was not able to change my usr to root as it is due to admin. However, I did get the runspecs script to run. But I ran into a communication link failure. I’ve tried everything I can think off. Is there a way to process the EF tables from the MOVES gui into SMOKE ready EF (essentially side stepping running MOVES in Linux part).

---

<div class="post-metadata">

**Author:** ![abi0010](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@abi0010](https://forum.cmascenter.org/u/abi0010)\
**Post date:** [May 4, 2020, 1:43pm UTC](https://forum.cmascenter.org/t/smoke-moves-communication-failure/1469/2 "2020-05-04T13:43:31Z")

</div>

I got the communications error resolved it seems. However, I can not get the database open. When I initiate the runspec, it says it is unable to open the domain database.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/1X/1013e0f4ccfbd23a14af9ac3ec33b0e0eff4fcbd.png)

---

<div class="post-metadata">

**Author:** ![cseppan](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@cseppan](https://forum.cmascenter.org/u/cseppan)\
**Post date:** [May 4, 2020, 6:37pm UTC](https://forum.cmascenter.org/t/smoke-moves-communication-failure/1469/3 "2020-05-04T18:37:43Z")

</div>

The domain database is identified by the tag \<scaleinputdatabase\> in the runspec. This database should contain the county-specific inputs. Double check what database this tag is pointing to, and make sure it exists (and contains the appropriate county-specific data you want to use) before running the runspec.

Separately, yes, you can run the SMOKE-MOVES post-processing script moves2smkEF.pl using MOVES data created by the GUI. The script determines which database to connect to via a control file, specified when you run the script. For example, in the following command, the control file is config.txt.

> scripts/moves2smkEF.pl -r RPD --formulas scripts/pollutant\_formulas\_AQ.txt --proc\_agg scripts/process\_aggregation.csv config.txt scripts/pollutant\_mapping\_AQ\_CB6.csv

Usually this control file is created automatically when you generate the runspecs, but you may need to create it yourself. It simply lists the hostname for the database server, the directory where the emission factor tables should be created, and the database containing the MOVES outputs. For example:

```auto
127.0.0.1
/path/to/ef/tables
movesoutputdb

```

You may also need to specify the MySQL username and password that the script should use to connect. This is done via options on the command line. For example, if the username and password are “moves”:

> scripts/moves2smkEF.pl -u moves -p moves -r RPD …

---

<div class="post-metadata">

**Author:** ![abi0010](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@abi0010](https://forum.cmascenter.org/u/abi0010)\
**Post date:** [May 6, 2020, 9:38pm UTC](https://forum.cmascenter.org/t/smoke-moves-communication-failure/1469/4 "2020-05-06T21:38:20Z")

</div>

Hi @cseppan  
Thank you for your response. You were correct on all fronts. I found the error and yes, just as you indicated, I hadn’t uploaded one of the needed databases. After that I got things to run. But then when I tried the moves2smkEF.pl script. I got the following error

Use of implicit split to @\_ is deprecated at scripts/moves2smkEF.pl line 171.

I tried to figure it out but perl is a new language for me so not so good at debugging it at the moment. Any tips on what I can do? I am using perl/5.10.1.

---

<div class="post-metadata">

**Author:** ![cseppan](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@cseppan](https://forum.cmascenter.org/u/cseppan)\
**Post date:** [May 7, 2020, 6:59pm UTC](https://forum.cmascenter.org/t/smoke-moves-communication-failure/1469/5 "2020-05-07T18:59:16Z")

</div>

It looks like Perl’s behavior has changed between 5.10 and newer versions, so I hadn’t run into this problem before. I think I have a fix for moves2smkEF.pl. Below is the current script starting at line 171:

```auto
if ($procList && scalar split(' ', $procList) > 0)
{
  push(@{$keptPollProcMap{$pollID}}, {'name' => $pollName, 'list' => [split(' ', $procList)]});
}

```

Replace these lines with the following:

```auto
my @processes = split(' ', $procList || '');
if (scalar(@processes) > 0)
{
  push(@{$keptPollProcMap{$pollID}}, {'name' => $pollName, 'list' => \@processes});
}

```

---

<div class="post-metadata">

**Author:** ![abi0010](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@abi0010](https://forum.cmascenter.org/u/abi0010)\
**Post date:** [May 8, 2020, 9:17pm UTC](https://forum.cmascenter.org/t/smoke-moves-communication-failure/1469/6 "2020-05-08T21:17:05Z")

</div>

> [@cseppan](#):
>
> scripts/moves2smkEF.pl -r RPD --formulas scripts/pollutant\_formulas\_AQ.txt --proc\_agg

Hi, your solution worked perfectly. Thank you so very much. Could not have solved this without your input…Thank you!

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [May 12, 2020, 1:33am UTC](https://forum.cmascenter.org/t/smoke-moves-communication-failure/1469/7 "2020-05-12T01:33:13Z")

</div>

Did it generate emission factors in the database? If so, you need to run the moves2smk script to generate the emission factor tables.

![image001.jpg](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/1X/64f616983d5e1c5697da3e3dc3eb37d7d031eebf.jpeg)

---

<div class="post-metadata">

**Author:** ![abi0010](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@abi0010](https://forum.cmascenter.org/u/abi0010)\
**Post date:** [May 12, 2020, 1:26pm UTC](https://forum.cmascenter.org/t/smoke-moves-communication-failure/1469/8 "2020-05-12T13:26:29Z")

</div>

Hi @eyth.alison. Yes, after I added the modification proposed by @cseppan, it worked well and generated emission factor tables…
